summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * sendauth.c (krb5_sendauth): Instead of casting second argumentEzra Peisach2001-07-302-3/+22
| | | | | | | to getpeername() and getsockname() to "struct sockaddr *", cast to system specific type as determined by autoconf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13656 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add KRB5_GETSOCKNAME_ARGS and KRB5_GETPEERNAME_ARGSEzra Peisach2001-07-302-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13655 dc483132-0cff-0310-8789-dd5450dbe970
* Unmark gss_mech_krb5 variable as an importDanilo Almeida2001-07-282-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13651 dc483132-0cff-0310-8789-dd5450dbe970
* Do no export gss_mech_krb5Danilo Almeida2001-07-282-4/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13650 dc483132-0cff-0310-8789-dd5450dbe970
* Export gss_mech_krb5 as DATA. Mark all exported variables as DATADanilo Almeida2001-07-272-4/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13648 dc483132-0cff-0310-8789-dd5450dbe970
* Mark gss_mech_krb5 variable as an importDanilo Almeida2001-07-272-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13647 dc483132-0cff-0310-8789-dd5450dbe970
* * gen_port.c (krb5_gen_portaddr): Add const to cast ofEzra Peisach2001-07-272-1/+6
| | | | | | krb5_const_pointer to maintain const status. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13646 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
* * kdb_xdr.c (krb5_dbe_update_mod_princ_data,Ezra Peisach2001-07-273-4/+14
| | | | | | | | | krb5_encode_princ_contents): Delcare local variable unsigned. * kdb_cpw.c (add_key_pwd): Declare local variable unsigned based on use. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13644 dc483132-0cff-0310-8789-dd5450dbe970
* * adb_xdr.c (xdr_krb5_key_data): Use xdr_krb5_ui_2 instead ofEzra Peisach2001-07-252-2/+7
| | | | | | xdr_krb5_int16 for key_data_length field. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13643 dc483132-0cff-0310-8789-dd5450dbe970
* * kadm_rpc_xdr.c: Add xdr_krb5_ui_2.Ezra Peisach2001-07-253-57/+33
| | | | | | | | (xdr_krb5_tl_data): Change local variable from int to unsigned int. * admin_xdr.h: Add prototype for xdr_krb5_ui_2. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13642 dc483132-0cff-0310-8789-dd5450dbe970
* * import_sec_context.c (krb5_gss_import_sec_context): Get rid ofEzra Peisach2001-07-253-5/+8
| | | | | | | variable set but never used. * ser_sctx.c (kg_queue_internalize): Ditto git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13640 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
* * rc_dfl.c (krb5_rc_io_fetch): Once length element read fromEzra Peisach2001-07-252-5/+16
| | | | | | | cache, and verified to be positive, put into unsigned int variable for passing to other functions that expect such. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13638 dc483132-0cff-0310-8789-dd5450dbe970
* * sn2princ.c: Do not cast away const char * in call to strdupEzra Peisach2001-07-252-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13637 dc483132-0cff-0310-8789-dd5450dbe970
* * in_tkt_sky.c (krb5_get_in_tkt_with_skey): Change cast fromEzra Peisach2001-07-254-3/+16
| | | | | | | | | | | | | krb5_pointer to krb5_const_pointer to ensure const integrity of parameter. * in_tkt_ktb.c (keytab_keyproc): Add const argument to cast of keyseed to struct keytab_keyproc_arg to maintain const status. * conv_princ.c (krb5_524_conv_principal): Cast argument to memcpy to size_t. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13636 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_k_encode.c: (asn1_encode_predicted_sam_response): UseEzra Peisach2001-07-252-1/+7
| | | | | | | asn1_encode_charstring() instead of asn1_decode_octetstring() for krb5_data. (signed vs. unsigned) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13635 dc483132-0cff-0310-8789-dd5450dbe970
* 2001-07-24 Jeffrey Altman <jaltman@columbia.edu>Jeffrey Altman2001-07-242-14/+22
| | | | | | | | * def_realm.c: krb5_get_default_realm() required a profile file even when KRB5_DNS_LOOKUP was defined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13634 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
* * hostaddr.c: Include fake-addrinfo.h.Ken Raeburn2001-07-192-18/+81
| | | | | | | | (FAI_PREFIX): Define macro. (krb5_os_hostaddr): Use getaddrinfo, to get ipv6 support and thread safety. Support numeric addresses as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13617 dc483132-0cff-0310-8789-dd5450dbe970
* New utility program.Ken Raeburn2001-07-193-0/+119
| | | | | | | * t_locate_kdc.c: New file. * Makefile.in (t_locate_kdc.o, t_locate_kdc): New targets. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13614 dc483132-0cff-0310-8789-dd5450dbe970
* * locate_kdc.c: Include fake-addrinfo.h.Ken Raeburn2001-07-192-58/+25
| | | | | | | | | | | (FAI_PREFIX, FAI_IMPLEMENTATION): Define macros. (get_port, add_sockaddr_to_list, add_host_to_list): Drop gethostbyname/getservbyname support, always use getnameinfo, which should be thread-safe. (translate_ai_error, set_port_num): Now always defined. (set_port_num): Only check for AF_INET6 if KRB5_USE_INET6. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13613 dc483132-0cff-0310-8789-dd5450dbe970
* * des.c (des_ecb_encrypt): Put "static" before "const" for local variable "iv"Ken Raeburn2001-07-192-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13607 dc483132-0cff-0310-8789-dd5450dbe970
* * t_shs3.c: New test file from Marcus Watts.Ken Raeburn2001-07-164-13/+614
| | | | | | | | | | | | | | (longReverse): Resurrected function long since deleted from shs.c. * Makefile.in (check-unix, check-windows): Use t_shs3 test. (clean): Delete it. * shs.c (SHSTransform): Make input data pointer point to const. (SHSUpdate): Bugfixes suggested by Marcus Watts, to fix buffer overruns, bugs with small or odd block sizes. [mostly pr krb5-libs/626] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13605 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
* * setenv.c: Include pos-obsolete.hEzra Peisach2001-07-093-0/+19
| | | | | | | * pos-obsolete.h: Add for obsolete functions until they can be removed from the library. Contains setenv functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13592 dc483132-0cff-0310-8789-dd5450dbe970
* * logger.c (severity2string): Declare as returning const char *.Ezra Peisach2001-07-092-5/+10
| | | | | | | (klog_com_err_proc): Do not discard const status of format string. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13591 dc483132-0cff-0310-8789-dd5450dbe970
* * fgetst.c: Include krb4int.hEzra Peisach2001-07-083-0/+11
| | | | | | * krb4int.h: Add fgetst prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13588 dc483132-0cff-0310-8789-dd5450dbe970
* * server_internal.h: Add prototype forEzra Peisach2001-07-082-0/+7
| | | | | | krb5_copy_key_data_contents. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13587 dc483132-0cff-0310-8789-dd5450dbe970
* * svr_iters.c: Declare kadm5_get_either staticEzra Peisach2001-07-082-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13586 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
* * crypto_libinit.c: Include crypto_libinit.h for prototypesEzra Peisach2001-07-082-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13584 dc483132-0cff-0310-8789-dd5450dbe970
* * sn2princ.c (krb5_sname_to_principal): Cast tolower argument to intEzra Peisach2001-07-063-3/+10
| | | | | | | * hst_realm.c (krb5_get_host_realm): Cast argument to toupper and tolower to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13576 dc483132-0cff-0310-8789-dd5450dbe970
* * conv_princ.c (krb5_425_conv_principal): Cast argument to tolowerEzra Peisach2001-07-062-1/+4
| | | | | | to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13575 dc483132-0cff-0310-8789-dd5450dbe970
* * get_in_tkt.c: Include os-proto.h for _krb5_conf_boolean prototypeEzra Peisach2001-07-063-0/+10
| | | | | | | * Makefile.in (LOCALINCLUDES): Add -I$(srcdir)/../os so os-proto.h can be included. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13574 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
* * shs.h, shs.c, t_shs.c: Fix sha1 on Windows by renaming LONG toDanilo Almeida2001-07-064-51/+53
| | | | | | | | SHS_LONG to avoid problem with LONG being signed on Windows. Rename BYTE to SHS_BYTE to avoid any name colisions with Windows (where BYTE and LONG are types defined in the Platform SDK). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13568 dc483132-0cff-0310-8789-dd5450dbe970
* vectors.c: fix some compiler complaintsKen Raeburn2001-07-052-34/+76
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13566 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
* * rc_io.c: Declare krb5_rc_io_open_internal staticEzra Peisach2001-07-052-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13557 dc483132-0cff-0310-8789-dd5450dbe970
* * ser_sctx.c: Declare kg_oid_size and kg_queue_size staticEzra Peisach2001-07-052-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13556 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
* * init_ctx.c (get_profile_etype_list): Fix etype-counting loop soTom Yu2001-06-302-4/+10
| | | | | | | | | that trailing separator characters (as in the DEFAULT_ETYPE_LIST) don't cause another iteration, which was causing the following loop to fall off the end of the string due to count being one too great. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13532 dc483132-0cff-0310-8789-dd5450dbe970
* * chk_trans.c (foreach_realm): Cleanup loal variable set but neverEzra Peisach2001-06-282-3/+6
| | | | | | used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13529 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
* * krb4int.h: Provide prototype for krb_get_default_user andEzra Peisach2001-06-282-1/+10
| | | | | | | krb_set_default_user if _WINDOWS is not defined. There is a conditional prototype in krb.h for them. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13527 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