summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* * compat_recv.c: Flush out prototype for static krb_v4_recvauthEzra Peisach2001-06-272-1/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13518 dc483132-0cff-0310-8789-dd5450dbe970
* * krb4int.h: Add prototypes for ad_print, krb_svc_init,Ezra Peisach2001-06-2713-10/+77
| | | | | | | | | | | | | | | | | krb_svc_init_preauth, krb_get_svc_in_tkt_preauth, kset_logfile, krb_log, krb_set_logfile, krb_set_lifetime, month_sname, krb_rd_preauth, krb_net_rd_preauth, krb_net_rd_sendauth, krb_stime, krb_start_session, krb_end_session, krb_get_default_user, krb_set_default_user. * ad_print.c, g_svc_in_tkt.c, klog.c, log.c, mk_req.c, month_sname.c, rd_preauth.c, sendauth.c, stime.c, unix_glue.c: Include krb4int.h for prototypes. * decomp_tkt.c: Include krb54proto.h for decomp_tkt_krb5() prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13517 dc483132-0cff-0310-8789-dd5450dbe970
* * gssapi.hin, gssapi_generic.h, gssapi_generic.c:Tom Yu2001-06-274-33/+217
| | | | | | | added oids from rfc 2744. Kept old oids for compatibility. [pullup of lxs's changes] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13515 dc483132-0cff-0310-8789-dd5450dbe970
* * krb4int.h: Add prototypes for krb__get_realmsfile(),Ezra Peisach2001-06-2610-7/+37
| | | | | | | | | | | | | | | | | krb5 prototypes are declarted from krb.hkrb__get_cnffile() and krb5 prototypes are declarted from krb.hk_gethostname(). * g_pw_in_tkt.c: Declare passwd_to_key() static. * cr_tkt.c: Move krb5.h inclusion before krb.h so that certain krb5 prototypes are declarted from krb.h. * g_admhost.c, g_cnffile.c, g_krbhst.c, g_krbrlm.c, gethostname.c krb5 prototypes are declarted from krb.hrealmofhost.c: Include krb4int.h and remove prototypes included in there. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13512 dc483132-0cff-0310-8789-dd5450dbe970
* * str_conv.c (krb5_string_to_keysalts): When parsing string, allowEzra Peisach2001-06-262-1/+21
| | | | | | for extra separator characters (like spaces) between keysalts. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13507 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
* * accept_sec_context.c (krb5_gss_accept_sec_context): Do notEzra Peisach2001-06-222-4/+9
| | | | | | shadow local variable ptr. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13484 dc483132-0cff-0310-8789-dd5450dbe970
* * util_validate.c (g_save): Cleanup extraneous variable fromEzra Peisach2001-06-222-1/+5
| | | | | | last change. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13483 dc483132-0cff-0310-8789-dd5450dbe970
* Cleanup usage of memory free routines:Danilo Almeida2001-06-229-41/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * util_crypt.c (kg_encrypt, kg_decrypt): Use free() instead of krb5_free_data_contents(). * util_cksum.c (kg_checksum_channel_bindings): Make sure that returned memory is allocated with xmalloc() so that caller can use xfree() on it. * k5unseal.c (kg_unseal_v1): Use krb5_free_data_contents() instead of xfree(). * k5seal.c (make_seal_token_v1): Use krb5_free_data_contents() instead of xfree(). * init_sec_context.c (make_ap_req_v1): Use xfree() instead of free() to be consistent with xmalloc() usage. Use krb5_free_data_contents() instead of xfree(). * disp_name.c (krb5_gss_display_name): Use krb5_free_unparsed_name() instead of xfree(). * add_cred.c (krb5_gss_add_cred): Use xfree() instead of free() to be consistent with xmalloc() usage. * accept_sec_context.c (krb5_gss_accept_sec_context): Remove variables that were effectively unused. Use krb5_free_data_contents() instead of xfree() where appropriate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13482 dc483132-0cff-0310-8789-dd5450dbe970
* * string2key.c (mit_des_string_to_key_int): Undo last changeKen Raeburn2001-06-222-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13480 dc483132-0cff-0310-8789-dd5450dbe970
* new fileKen Raeburn2001-06-221-0/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13479 dc483132-0cff-0310-8789-dd5450dbe970
* vectors.c: New file. Test vectors, submitted for inclusion in RFC1510bisKen Raeburn2001-06-222-0/+472
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13478 dc483132-0cff-0310-8789-dd5450dbe970
* * destest.c (value): Now signed int, since some entries are negative.Ken Raeburn2001-06-222-5/+12
| | | | | | | (convert): Do bounds checking on character values used as indices into value array. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13477 dc483132-0cff-0310-8789-dd5450dbe970