summaryrefslogtreecommitdiffstats
path: root/src/lib/rpc
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/helpers.exp (setup_database): Use "!=" instead of "ne" for string ↵Ken Raeburn2002-09-162-1/+6
| | | | | | comparisons git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14870 dc483132-0cff-0310-8789-dd5450dbe970
* * lib/helpers.exp (expect_tcl_prompt): Use the "-re" flag, andTom Yu2002-09-152-3/+15
| | | | | | | | | match end of output. (expect_kadm_ok): s/error/perror. (setup_database): Work around tcl 8.4's (incorrect?) output EOL translation. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14867 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Revert $(S)=>/ change, for Windows supportKen Raeburn2002-08-294-2/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14786 dc483132-0cff-0310-8789-dd5450dbe970
* Ignore a bunch of files generated by building in the source tree, excludingKen Raeburn2002-08-292-0/+5
| | | | | | | those covered by CVSROOT/cvsignore patterns. Static UNIX build only, at the moment, may need updates for other configurations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14783 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use $krb5_cv_host instead of $hostEzra Peisach2002-08-262-4/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14768 dc483132-0cff-0310-8789-dd5450dbe970
* Change $(S)=>/ and $(U)=>.. globallyKen Raeburn2002-08-234-2/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14761 dc483132-0cff-0310-8789-dd5450dbe970
* * xdr.c (xdr_string): Fix off-by-one error; we're not vulnerable,Tom Yu2002-08-122-1/+6
| | | | | | since we don't call it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14701 dc483132-0cff-0310-8789-dd5450dbe970
* * xdr_array.c (xdr_array): Account for elsize when checkingTom Yu2002-08-022-1/+7
| | | | | | encoded array count. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14681 dc483132-0cff-0310-8789-dd5450dbe970
* fold libdyn into librpcKen Raeburn2002-07-177-5/+976
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14656 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2002-06-151-5/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14522 dc483132-0cff-0310-8789-dd5450dbe970
* * config/unix.exp (top level): Load helpers.exp here, to make sure databaseKen Raeburn2002-06-092-0/+8
| | | | | | setup happens properly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14485 dc483132-0cff-0310-8789-dd5450dbe970
* do database expansion from tcl driver codeKen Raeburn2002-01-093-1/+109
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14097 dc483132-0cff-0310-8789-dd5450dbe970
* * svc_auth_gssapi.c (_gssrpc_svcauth_gssapi): Local returnEzra Peisach2001-12-142-1/+7
| | | | | | variable declared enum auth_stat instead of int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14072 dc483132-0cff-0310-8789-dd5450dbe970
* * clnt_raw, clnt_tcp.c, clnt_udp.c: Use a union structure toEzra Peisach2001-12-0716-48/+83
| | | | | | | | | | | | | | | | | | | | | | | | | ensure argument alignment. * pmap_clnt.c, pmap_clnt.h (pmap_set): Change port argument to int to avoid width warnings. * rpc_callmsg.c (xdr_callmsg): Cast argument to XDR_INLINE to avoid signed vs. unsigned warning. * svc.c: Cast assignment to avoid signed warning. * xdr.c (xdr_u_short, xdr_u_long): cast pointers to long * in invocation of XDR_PUTLONG. * xdr_alloc.c (xdralloc_putbytes): Cast argument to DynInsert to avoid signed/unsigned warning. * auth_gssapi.c, svc_auth_gssapi, xdr_rec.c: Cast arguments to avoid alignment warnings. * svc_tcp.c, xdr_stdio.c: Cast argument to fread/fwrite/read/write. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14054 dc483132-0cff-0310-8789-dd5450dbe970
* In directories building libraries, generate dependencies for .so/.po files tooKen Raeburn2001-10-201-43/+43
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13828 dc483132-0cff-0310-8789-dd5450dbe970
* Update automatic dependencies to work on Windows by using $(OUTPRE) andKen Raeburn2001-10-111-64/+70
| | | | | | | $(OBJEXT). Change a couple of UNIX rules to not trigger incorrectly on Windows. Rebuild dependencies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13801 dc483132-0cff-0310-8789-dd5450dbe970
* Don't conditionalize prototypes; delete macros supporting it. (Maybe overdone;Ken Raeburn2001-10-106-105/+75
| | | | | | don't worry about restoring them when importing new versions of code.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13792 dc483132-0cff-0310-8789-dd5450dbe970
* Danilo also says we can get rid of _MSDOS (Win16) tests, and explicit ↵Ken Raeburn2001-10-064-3/+7
| | | | | | FAR/NEAR specs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13786 dc483132-0cff-0310-8789-dd5450dbe970
* dependenciesKen Raeburn2001-09-011-0/+197
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13725 dc483132-0cff-0310-8789-dd5450dbe970
* * clnt_udp.c (clntudp_call): Do not assume that select will notEzra Peisach2001-08-105-6/+24
| | | | | | | | | | | | | change the timeout struct timeval. Under Linux, this reflects the time left available - which might result in 0 in the case of a timeout. When attempting to resend a request, this may results in a timeout of zero - flooding the server with replay requests. * clnt_tcp.c (readtcp): Same. * pmap_rmt.c (clnt_broadcast): Same * svc_tcp.c (readtcp): Same git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13679 dc483132-0cff-0310-8789-dd5450dbe970
* * xdr_reference.c (xdr_reference): Remove cast in argument to memsetEzra Peisach2001-07-2712-11/+45
| | | | | | | | | | | | | | | | | | | | | | | | * svc_auth_gssapi.c: In call to gss_accept_sec_context, pass OM_uint32 * instead of int *; * pmap_clnt.h, pmap_getport.c (pmap_getport): Prototype changed for protocol from unsigned int to rpc_u_int32 to match struct pmap. * getrpcport.c (gssrpc_getrpcport): Update to reflect proper calling conventions. * rpc.h (callrpc): Change prototype from expecting ints for prognum, versnum and procnum to rpc_u_int32 for consistancy. (getrpcport): Update arguments in similar fashion. * clnt_simple.c (gssrpc_callrpc): Update to reflect prototype change. * auth_gssapi_misc.c (auth_gssapi_display_status_1): Local variable msg_ctx should be OM_uint32 instead of int as argument to gss_display_status. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13645 dc483132-0cff-0310-8789-dd5450dbe970
* * auth_gssapi.c (auth_gssapi_create): Change calling conventionEzra Peisach2001-07-254-7/+19
| | | | | | | | | | | | from passing ints as arguments to OM_uint32 to match spec for gss_init_sec_context. * auth_gssapi.h: Update prototype for auth_gssapi_create. * svc.h (struct svc_req): The rq_clntcred and rq_svccred elements are now void *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13639 dc483132-0cff-0310-8789-dd5450dbe970
* * xdr_mem.c: Do not assume that XDR x_private field is char *Ezra Peisach2001-07-192-6/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13621 dc483132-0cff-0310-8789-dd5450dbe970
* * auth.h: AUTH ah_private structure element changed to void *Ezra Peisach2001-07-1910-13/+31
| | | | | | | | | | | | | | | | | | * clnt.h: CLIENT cl_private structure element changed to type void *. * svc.h: SVCXRPT elements xp_p1 and xp_p2 changed to void * from caddr_t. * svc_udp.c: su_cache element of svcudp_data from caddr_t to void *. * clnt_tcp.c, svc_tcp.c (writetcp, readtcp): Cleanup alignment warning in casts. * types.hin (mem_alloc): Do not cast type of malloc to char *. * xdr.h: Change type of x_private of XDR from caddr_t to void *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13620 dc483132-0cff-0310-8789-dd5450dbe970
* Include string.h for memset prototypeEzra Peisach2001-07-091-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13596 dc483132-0cff-0310-8789-dd5450dbe970
* * pmap_rmt.c, svc.c, svc_simple.c, svc_udp.c, svc_tcp.c,Ezra Peisach2001-07-0910-8/+22
| | | | | | | | | | xdr_array.c, xdr_reference.c : Include string.h for memset and memcmp prototypes. * auth_gssapi.c, auth_gssapi_misc.c, svc_auth_gssapi.c: Cast argment to PRINTF to match format. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13595 dc483132-0cff-0310-8789-dd5450dbe970
* * rpc_test_clnt.c, rpc_test_svc.c: Include string.h for memsetEzra Peisach2001-07-093-0/+7
| | | | | | prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13594 dc483132-0cff-0310-8789-dd5450dbe970
* * svc.c (xprt_register): If svc_fdset has not been initilized,Ezra Peisach2001-07-083-1/+16
| | | | | | | | | | FD_ZERO it. * rpc_commondata.c: Do not assume what the structure of an fd_set looks like. Add variable gssrpc_svc_fdset_init to determine if initialized. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13585 dc483132-0cff-0310-8789-dd5450dbe970
* * auth_unix.c: In case GETGROUPS_T is not defined, default to intEzra Peisach2001-07-062-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13569 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add AC_TYPE_GETGROUPS to determine argument toEzra Peisach2001-07-0511-30/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | getgroups. * auth_unix.c (authunix_create_default): Use GETGROUPS_T array in call to getgroups. Copy into array of int for call to authunix_create. Note: If auth_unix protection ever used with this code, we will need to cleanup assumptions in int being 32 bits in OTW transfer of gids. * clnt_tcp.c, svc_tcp.c: Change writetcp and readtcp to take char * as first argument to be compatible with xdrrec_create. * xdr.c (xdr_opaque): Cast argument in call to XDR_GETBYTES. * svc.h: Add prototype for gssrpc_svcudp_enablecache. * svc_auth_gssapi.c (_gssrpc_svcauth_gssapi): Change _svcauth_gssapi to _gssrpc_svcauth_gssapi for consistancy. * svc_auth.c: Move prototypes for _gssrpc_svcauth_{unix, null, short, gssapi} to: * svc_auth.h: here. * svc_auth_unix.c: Update _gssrpc_svcauth_short and _gssrpc_svcauth_unix to match prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13563 dc483132-0cff-0310-8789-dd5450dbe970
* * rpc_test_svc.c: Change rpc_test_prog_1 toEzra Peisach2001-07-024-11/+22
| | | | | | | | | | | | | rpc_test_prog_1_svc. * rpc_test.h: Create prototypes for rpc_test_echo_1_svc and rpc_test_prog_1_svc. * server.c: Declare usage and handlesig static. Change rpc_test_echo_1 to rpc_test_echo_1_svc and rpc_test_prog_1 to rpc_test_prog_1_svc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13547 dc483132-0cff-0310-8789-dd5450dbe970
* * auth.h: Provide full prototype for xdr_des_blockEzra Peisach2001-06-2833-231/+469
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * auth_gssapi.h: Complete prototypes for _svcauth_gssapi_unset_names(). * clnt.h: Prototype dispatch functions and all functions. * clnt_perror.c: Prototype static auth_errmsg(). * clnt_raw.h clnt_tcp.c, clnt_udp.c: Provide prototypes to static functions and match dispatch table prototypes. control function takes void * instead of caddr_t. * pmap_rmt.c: Move prototype for resultproc_t to pmap_clnt.h. * rpc.h: get_myaddress returns int. Add prototypes for callrpc and getrpcport. * rpc_commondata.c (rpc_createerr): When initializing rpc_creaerr use RPC_SUCCESS instead of 0. * get_myaddress.c, rpc_dtablesize.c: Include gssrpc/rpc.h for prototype. * pmap_clnt.h, pmap_prot.h, pmap_rmt.h, rpc_msg.h: Full prototypes for all functions. * svc.c: Provide full prototype for static function. * svc.h: Prototypes for dispatch functions added. Flushed out prototypes for all functions missing prototypes. Added prototype for svcfd_create. * svc_auth.c: Prototypes for all functions referenced. * svc_auth.h: Prototype dispatch functions to svc_auth_ops. * svc_auth_any.c: Replace use of authany_wrap() with a new local function that matches svc_auth_ops dispatch table. * svc_simple.c: Provide prototype for static function universal. Fill in missing types of parameters to gssrpc_registerrpc. * svc_raw.c svc_tcp.c, svc_udp.c: Provide prototypes for static functions and match prototypes in dispatch table. Change getargs and freeargs argument to void * from caddr_t. * xdr.c (xdr_void): Function to match prototype of arguments given. * xdr.h: Provide full prototypes for xdr_ops dispatch table and xdr_void(). * svc_auth_gssapi.c, xdr_alloc.c, xdr_mem.c, xdr_rec.c, xdr_stdio.c: Provide protypes for static functions and match dispatch tables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13528 dc483132-0cff-0310-8789-dd5450dbe970
* *bindresvport.c: Include gssrpc/rpc.h for prototypeEzra Peisach2001-06-278-44/+88
| | | | | | | | | | | | | | | | | | | | * auth_unix.h: Expand prototype for xdr_authunix_params to include arguments. * auth_gssapi.h: Give full prototypes for xdr_gss_buf, xdr_authgssapi_creds, xdr_authgssapi_init_arg and xdr_authgssapi_init_res. * auth_gssapi.c, auth_none.c, auth_unix.c: For struct AUTH disptach functions, provide full prototypes and ensure consistant usage in functions * auth.h: Provide prototypes dispatch functions in struct AUTH. Give a forward declaration of struct rpc_msg. Change duplicate definitions of AUTH_WRAP and AUTH_UNWRAP into auth_wrap and auth_unwrap. Give full prototype for authany_wrap. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13521 dc483132-0cff-0310-8789-dd5450dbe970
* * svc_simple.c (universal): Change transp to s_transp to notEzra Peisach2001-06-227-38/+52
| | | | | | | | | | | | | | | shadow filewide static definition of name. Move file wide definition of "pl" into respective functions. * pmap_rmt.c: Change sin->sockin and socket->sock. * pmap_getmaps.c, pmap_getport.c: Change socket to sock to not shadow network function. * bindresvport.c, clnt_generic.c: Change sin to sockin to not shadow function declaration. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13486 dc483132-0cff-0310-8789-dd5450dbe970
* pmap_prot2.c (xdr_pmaplist): Ensure variable set before useEzra Peisach2001-06-192-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13387 dc483132-0cff-0310-8789-dd5450dbe970
* * auth_gssapi.c (auth_gssapi_create): Cast const gss_OID toEzra Peisach2001-06-183-1/+14
| | | | | | | | | | gss_OID for gssapi functions. * xdr.c (xdr_u_int, xdr_int32, xdr_u_int32): If enumerated operation is not XDR_ENCODE, XDR_DECODE or XDR_FREE - return FALSE instead falling off end of function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13361 dc483132-0cff-0310-8789-dd5450dbe970
* * client.c: Include unistd.h for getopt() prototypeEzra Peisach2001-06-084-95/+25
| | | | | | | | | | | * configure.in: Check for unistd.h. * server.c: Include unistd.h for getopt() prototype. Fix rpc_test_badauth() prototype to be consistant with error handler. Declare main as returning int. If POSIX_SIGNALS is defined, the handler expects an argument. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13312 dc483132-0cff-0310-8789-dd5450dbe970
* * auth_gssapi.h: Rename prototypes from _svcauth_set_log_XXX_func toEzra Peisach2001-06-082-3/+8
| | | | | | _svcauth_gssapi_set_log_XXX_func to match code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13311 dc483132-0cff-0310-8789-dd5450dbe970
* * server.c (log_badauth_display_status_1): Do not assume thatEzra Peisach2001-06-072-6/+12
| | | | | | gss_buffer_desc strings are '\0' terminated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13301 dc483132-0cff-0310-8789-dd5450dbe970
* * server.c (log_badauth_display_status_1): Need value element ofEzra Peisach2001-06-052-3/+6
| | | | | | gss_buffer_desc for printf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13271 dc483132-0cff-0310-8789-dd5450dbe970
* * client.c (main): Missing arguments to printf fixedEzra Peisach2001-06-052-2/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13270 dc483132-0cff-0310-8789-dd5450dbe970
* * clnt_perror.c (clnt_spcreateerror): Enumerate missing cases inEzra Peisach2001-06-0530-12/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | switch. * getrpcport.c: Include string.h for memmove() prototype and pmap_clnt.h for pmap_getport() prototype. * rpc_dtablesize.c (_gssrpc_rpc_dtablesize): Declare as returning int. * get_myaddress.c (gssrpc_get_myaddress): Likewise. * rpc_prot.c (gssrpc_xdr_accepted_reply, sunrpc_seterr_reply): Enumerate missing cases for switch. (rejected): Fix typo: RPC_VERMISMATCH -> RPC_MISMATCH for enumerated switch. * svc_auth.c: Add braces to svcauthsw[] initialization. * svc_simple.c: Include pmap_clnt.h for pmap_unset prototype. * bindresvport.c, clnt_simple.c, clnt_tcp.c, clnt_udp.c, pmap_clnt.c, pmap_getmaps.c, pmap_gtport.c, pmap_rmt.c, svc_tcp.c, svc_udp.c: Include unistd.h for close() prototype. * xdr.c (xdr_opaque): Specify internal buffer as ints. (xdr_u_int32): Declare as returning bool_t. * clnt_generic.c, rpc_callmsg.c, svc_auth_unix.c, xdr_mem.c: Include string.h for memmove() prototype. * xdr_rec.c: Include string.h for memmove() prototype. Add dummy XDR_FREE cases for switches. * xdr_reference.c (xdr_reference): Add XDR_ENCODE case. (gcc warning). * xdr_array.c (xdr_array): Likewise. * auth.h: Include gssrpc/xdr.h and provide prototype for gssrpc_xdr_opaque_auth(). * auth_gssapi.h: Add prototypes for auth_gssapi_seal_seq() and auth_gssapi_unseal_seq(). * clnt.h: Add prototype for _gssrpc_rpc_dtablesize(). * rpc.h: Add prototypes for gssrpc_get_myaddress() and gssrpc_bindresvport(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13269 dc483132-0cff-0310-8789-dd5450dbe970
* * client.c (main): Ensure that end of string is NULL terminatedEzra Peisach2001-04-242-9/+22
| | | | | | | instead of assuming buffer initialized to 0. Include <string.h> for memset prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13187 dc483132-0cff-0310-8789-dd5450dbe970
* 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