summaryrefslogtreecommitdiffstats
path: root/src/lib/rpc
Commit message (Collapse)AuthorAgeFilesLines
* fix last change, it was very brokenKen Raeburn2001-03-082-15/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13060 dc483132-0cff-0310-8789-dd5450dbe970
* use strerror when available, for sparcv9-solaris2.8Ken Raeburn2001-03-083-4/+21
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13059 dc483132-0cff-0310-8789-dd5450dbe970
* * xdr.h: Flush out prototypes for xdrmem_create(),Ezra Peisach2001-02-186-18/+69
| | | | | | | | | | | | | | | | | | | xdrstdio_create(), xdrrec_create(), xdralloc_create(), xdralloc_release(), xdrrec_endofrecord(), xdrrec_skiprecord(), xdrrec_eof(), xdralloc_getdata(). Add prototype for gssrpc_xdr_fre(). * xdr.c: Argument to gssrpc_xdr_free(0 changed from char * to void *. xdr_u_char() changed to take unsigned char * instead of char *. * auth_unix.c: Include unistd.h and string.h for prototypes. Declare marshal_new_auth() as static void instead of static bool_t based on usage. * auth.h, svc_auth.h: Provide full prototypes for a number of functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13010 dc483132-0cff-0310-8789-dd5450dbe970
* Run RPC tests with one invocation of DejaGnu rather than twoKen Raeburn2000-07-014-15/+23
| | | | | | | | | | | | * Makefile.in (unit-test-body): Combine -tcp and -udp versions, setting PASS instead of PROT. * configure.in: Set and substitute PASS instead of UDP_TEST. * config/unix.exp: Don't invoke rpc_test_start. Set MULTIPASS, including a setting for PROT and a dummy to trigger rpc_test_start invocation. (rpc_test_start): If a server has already been started, call rpc_test_exit to verify that it's still running. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12503 dc483132-0cff-0310-8789-dd5450dbe970
* pullup from 1.2.1 releaseKen Raeburn2000-07-014-1/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12502 dc483132-0cff-0310-8789-dd5450dbe970
* * rpc_test_setup.sh: Error out if server_handle doesn't get set in the Tcl ↵Ken Raeburn2000-06-302-0/+11
| | | | | | script git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12495 dc483132-0cff-0310-8789-dd5450dbe970
* pullup from 1.2 branchKen Raeburn2000-06-2711-57/+124
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12442 dc483132-0cff-0310-8789-dd5450dbe970
* Change wsanchez@apple -> tritan@mitWilfredo Sanchez2000-06-012-4/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12331 dc483132-0cff-0310-8789-dd5450dbe970
* fix for vpath and du4.0 makeKen Raeburn2000-02-222-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12063 dc483132-0cff-0310-8789-dd5450dbe970
* * svc_auth_gssapi.c (_svcauth_gssapi): Don't explicitly freeTom Yu2000-02-189-9/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | call_arg on error, since svc_getargs should do that now. * svc_udp.c (svcudp_getargs): Free args on xdr decode error to avoid leaks. * svc_tcp.c (svctcp_getargs): Free args on xdr decode error to avoid leaks. * svc_raw.c (svcraw_getargs): Free args on xdr decode error to avoid leaks. * auth_gssapi.c (auth_gssapi_create): Don't explicitly free call_res anymore, since clnt_call should deal now. * clnt_udp.c (clntudp_call): Free stuff on error from xdr_replymsg() to prevent leaking. * clnt_tcp.c (clnttcp_call): Free stuff on error from xdr_replymsg() to avoid leaking. * clnt_raw.c (clntraw_call): Free stuff on error from xdr_replymsg() to avoid leaking. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12052 dc483132-0cff-0310-8789-dd5450dbe970
* * auth_gssapi.c (auth_gssapi_create): Free call_res becauseTom Yu2000-02-174-37/+43
| | | | | | | | | | | | | | | | | | | | | xdr_authgssapi_init_res can potentially allocate memory. Perhaps clnt_call should really deal with this, though. It is not at all clear whether clnt_call or svc_getargs should actually end up freeing allocated memory themselves. * svc_auth_gssapi.c (_svcauth_gssapi): Call gssrpc_xdr_free() if xdr_authgssapi_creds() or xdr_authgssapi_init_arg() fails. * auth_gssapi_misc.c (xdr_authgssapi_creds): (xdr_authgssapi_init_arg): (xdr_authgssapi_init_res): Revert prior change. The caller should be the one dealing. Additionally, it was probably wrong to unconditionally free the object regardless of whether the mode is XDR_DECODE. (auth_gssapi_unwrap_data): Use temp_xdrs rather than in_xdrs to force XDR_FREE operation. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12051 dc483132-0cff-0310-8789-dd5450dbe970
* * server.c: Add code to set a signal handler for SIGHUP and a fewTom Yu2000-02-153-0/+29
| | | | | | | | others so that purify will actually generate memory leak reports. * configure.in: Add CHECK_SIGNALS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12042 dc483132-0cff-0310-8789-dd5450dbe970
* * svc.c (xprt_register): Zero out xports after allocatingTom Yu2000-02-153-16/+51
| | | | | | | | | | * auth_gssapi_misc.c (xdr_authgssapi_creds): (xdr_authgssapi_init_arg): (xdr_authgssapi_init_res): (auth_gssapi_unwrap_data): If xdr_gss_buf or xdr_bytes fails, call again with XDR_FREE set so that allocated memory doesn't leak. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12041 dc483132-0cff-0310-8789-dd5450dbe970
* * config/unix.exp: Call send_error instead of fail to preventTom Yu2000-02-073-7/+16
| | | | | | | | | | referencing variables not yet set up by the test framework. * lib/helpers.exp: Call kinit and kdestroy with the -5 flag to deal with new program behavior. Also call perror rather than error to avoid spewing a stack trace. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12021 dc483132-0cff-0310-8789-dd5450dbe970
* * get_myaddress.c (gssrpc_get_myaddress): Copy in from NetBSD;Tom Yu2000-01-242-26/+10
| | | | | | use loopback address only. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11966 dc483132-0cff-0310-8789-dd5450dbe970
* log tritan's changesTom Yu1999-10-262-0/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11877 dc483132-0cff-0310-8789-dd5450dbe970
* Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, LOCAL_INCLUDES suchWilfredo Sanchez1999-10-262-2/+2
| | | | | | | that one can override CFLAGS from the command line without losing CPP search patchs and defines. Some associated Makefile cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11876 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (unit-test-body-tcp, unit-test-body-udp): Pass $(RUNTESTFLAGS) toKen Raeburn1999-09-212-2/+7
| | | | | | runtest. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11834 dc483132-0cff-0310-8789-dd5450dbe970
* * svc.c: Fix to reference the correct xprt because we're no longerTom Yu1999-04-242-4/+6
| | | | | | calling ffs(); also remove some unused variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11392 dc483132-0cff-0310-8789-dd5450dbe970
* * svc.c (xprt_unregister): Fix typoTom Yu1999-04-212-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11371 dc483132-0cff-0310-8789-dd5450dbe970
* svc.c (svc_getreq, svc_getreqset): Avoid using internal, privateTheodore Tso1999-04-142-7/+20
| | | | | | fd_set structure elements (Needed for Linux/glibc 2.1) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11360 dc483132-0cff-0310-8789-dd5450dbe970
* * rpc_commondata.c: Add initializers to prevent lossage on systemsTom Yu1999-04-022-5/+13
| | | | | | that don't deal with common blocks in libraries. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11339 dc483132-0cff-0310-8789-dd5450dbe970
* Change K5_OUTPUT_FILES to be K5_AC_OUTPUTTheodore Tso1999-03-121-2/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11265 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-12-052-1/+10
| | | | | | to buildtop and thisconfigdir, respectively.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11087 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-12-052-0/+7
| | | | | | | | to buildtop and thisconfigdir, respectively.) configure.in: Use K5_AC_OUTPUT isntead of K5_OUTPUT_FILES git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11086 dc483132-0cff-0310-8789-dd5450dbe970
* pull up 3des implementation from the marc-3des branchMarc Horowitz1998-10-304-10/+50
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SHLIB_EXPDEPS):Tom Yu1998-04-152-2/+7
| | | | | | (SHLIB_EXPLIBS): Rename libcrypto -> libk5crypto. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10532 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (includes): Don't mkdir unless the directory doesn'tTom Yu1998-04-062-1/+6
| | | | | | exist yet. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10522 dc483132-0cff-0310-8789-dd5450dbe970
* Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu1998-02-183-3/+8
| | | | | | used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
* * client.c: Update header locations. Rename of xdr_freeTom Yu1998-02-144-8/+23
| | | | | | | | * rpc_test.h: Update header locations. * server.c: Update header locations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10448 dc483132-0cff-0310-8789-dd5450dbe970
* "Renames" in the following refer to renaming of various exportedTom Yu1998-02-1459-589/+337
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | functions and global variables to prefix them with "gssrpc_" or "_gssrpc" as might be appropriate. Some symbols which are unlikely to occur in vendor rpc implementations have retained their old names (notably the gssapi specific ones). * auth.h: Renames. * auth_any.c: Update header locations. * auth_gssapi.c: Punt naughty RCS keywords. Update header locations. Remove explicit extern decl of rpc_createrr (clnt.h gets it). Renames. * auth_gssapi.h: Punt naughty RCS keywords. * auth_gssapi_misc.c: Punt naught RCS keywords. Update header locations. * auth_none.c: Update header locations. Renames. * auth_unix.c: Update header locations. Renames. * auth_unix.h: Renames. * authunix_prot.c: Update header locations. * bindresvport.c: Renames. * clnt.h: Renames. * clnt_generic.c: Update header locations. * clnt_perror.c: Update header locations. * clnt_raw.c: Update header locations. Renames. * clnt_simple.c: Update header locations. Renames. * clnt_tcp.c: Update header locations. Renames. * clnt_udp.c: Upate header loations. Renames. * get_myaddress.c: Update header locations. Renames. * getrpcent.c: Update header locations. * getrpcport.c: Update header locations. Renames. * netdb.h: Update header locations. * pmap_clnt.c: Update header locations. Renames. * pmap_clnt.h: Renames. * pmap_getmaps.c: Update header locations. * pmap_getport.c: Update header locations. * pmap_prot.c: Update header locations. * pmap_prot.h: Renames. * pmap_prot2.c: Update header locations. * pmap_rmt.c: Update header locations. Renames. * pmap_rmt.h: Renames. * rpc.h: Update header locations. No longer include rpc/netdb.h. * rpc_callmsg.c: Update header locations. Renames. * rpc_commondata.c: Update header locations. * rpc_dtablesize.c: Renames. * rpc_msg.h: Renames. * rpc_prot.c: Update header locations. Renames. * svc.c: Update header locations. Renames. * svc.h: Renames. * svc_auth.c: Update header locations. Renames. * svc_auth.h: Renames. * svc_auth_any.c: Update header locations. * svc_auth_gssapi.c: Punt naughty RCS keywords. Update header locations. Renames. * svc_auth_unix.c: Renames. * svc_raw.c: Update header locations. * svc_run.c: Update header locations. Renames. * svc_simple.c: Update header locations. Renames. Make pl static. * svc_tcp.c: Update header locations. Renames. * svc_udp.c: Update header locations. Renames. * xdr.c: Update header locations. Renames. * xdr.h: Renames. * xdr_alloc.c: Punt naughty RCS keywords. Update header locations. * xdr_array.c: Update header locations. * xdr_float.c: Update header locations. * xdr_mem.c: Update header locations. * xdr_rec.c: Update header locations. * xdr_reference.c: Update header locations. * xdr_stdio.c: Update header locations. * Makefile.in: Bump major version due to changes. Don't build getrpcent.o, since we don't use it, and dealing with the rpc/netdb.h lossage was a major pain. Also, rename HDRDIR to $(BUILDTOP)/gssrpc in order to avoid problems with system headers including rpc/*.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10447 dc483132-0cff-0310-8789-dd5450dbe970
* * client.c (main): Tweak the kludge variableTom Yu1998-02-122-0/+14
| | | | | | | krb5_gss_dbg_clietn_expcreds so we can send expired creds to the server. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10427 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add commented out AC_OUTPUT to force autoreconf toTom Yu1998-02-122-0/+6
| | | | | | rebuild the configure script. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10425 dc483132-0cff-0310-8789-dd5450dbe970
* Mass makefile/configure.in build system revampTheodore Tso1998-02-125-20/+48
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10424 dc483132-0cff-0310-8789-dd5450dbe970
* * bindresvport.c: Include string.h for memset prototypeEzra Peisach1998-01-212-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10367 dc483132-0cff-0310-8789-dd5450dbe970
* * svc_auth_gssapi.c (_svcauth_gssapi): When looping over services,Ezra Peisach1997-12-162-0/+14
| | | | | | free previous output_tokens. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10339 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (types.h): Add rules to generate file by runningEzra Peisach1997-11-212-0/+19
| | | | | | config.status. Remove on make clean. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10306 dc483132-0cff-0310-8789-dd5450dbe970
* Fix to not lose entries in the chain linked client listEzra Peisach1997-10-212-1/+16
| | | | | | | | | A pointer was not being updated resulting in the situation where random clients would sudenly fail with a misc. rpc. error as the client handle could not be found. The scenario required three active clients to trigger the problem. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10241 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in, Makefile.in: Add test to disable udp test underTom Yu1997-10-103-2/+19
| | | | | | | Solaris 2.0 thru 2.5; a getsockname() bug prevents channel bindings from working. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10221 dc483132-0cff-0310-8789-dd5450dbe970
* * get_myaddress.c: Include string.h for memcpy prototypeEzra Peisach1997-10-072-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10214 dc483132-0cff-0310-8789-dd5450dbe970
* * Make shared libs work on AIXSam Hartman1997-02-222-5/+9
| | | | | | * Fix dependencies for library git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9952 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for sys/uio.hEzra Peisach1997-02-103-0/+10
| | | | | | | | | * svc_udp.c: Include sys/uio.h is available for struct iovec. Needed for Irix 5.3 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9836 dc483132-0cff-0310-8789-dd5450dbe970
* * svc_udp.c (svcudp_recv): Avoid coredumps under Solaris (andTom Yu1997-02-102-0/+11
| | | | | | | possibly other systems) by passing in a non-NULL iovec to recvmsg(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9834 dc483132-0cff-0310-8789-dd5450dbe970
* Merge of libhack_branchTom Yu1997-02-096-76/+90
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9831 dc483132-0cff-0310-8789-dd5450dbe970
* Merge V1_0_FREEZE_3 into the mainline. (Note this merge does *not*Theodore Tso1996-12-139-9/+74
| | | | | | include the doc subtree!!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9632 dc483132-0cff-0310-8789-dd5450dbe970
* * Various changes to allow channel bindings to work with both UDPBarry Jaspan1996-12-047-25/+82
| | | | | | | | | | | | | | | | | | | | | | and TCP cleanly [krb5-libs/180]: * auth_gssapi.c: remove the special-case exception to channel bindings failure added in the previous revision, since we now solve the problem by making channel bindings not fail * clnt_udp.c: use a connected socket so that the client can determine its own source address with getsockname * svc.h: add xp_laddr and xp_laddrlen fields to SVCXPRT structure * svc_tcp.c: set xp_laddr and xp_laddrlen when a connection is established * svc_udp.c (svcudp_recv): use recvmsg with MSG_PEEK followed by recvfrom in order to determine both source and dest address on unconnected UDP socket, set xp_laddr and xp_laddrlen git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9600 dc483132-0cff-0310-8789-dd5450dbe970
* * server.c (main): Add declaration of optind for systems thatTom Yu1996-11-152-0/+6
| | | | | | don't have it in stdio.h or the like. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9419 dc483132-0cff-0310-8789-dd5450dbe970
* * rpc_test_setup.sh: VERBOSE is now inherited from env-setup.shBarry Jaspan1996-11-142-8/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9416 dc483132-0cff-0310-8789-dd5450dbe970
* clean: Remove test programs and objectsEzra Peisach1996-11-132-0/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9404 dc483132-0cff-0310-8789-dd5450dbe970
* * auth_gssapi.c (auth_gssapi_create): handle channel bindingsBarry Jaspan1996-11-122-2/+13
| | | | | | failure so UDP connections can work [krb5-libs/180] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9390 dc483132-0cff-0310-8789-dd5450dbe970