summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/krb
Commit message (Collapse)AuthorAgeFilesLines
...
* Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, LOCAL_INCLUDES suchWilfredo Sanchez1999-10-261-1/+0
| | | | | | | 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
* * conv_princ.c (sconv_list): Don't do conversion for "zephyr" principal.Ken Raeburn1999-10-123-17/+15
| | | | | | | | | | (Noticed by Derrick Brashear.) Delete about a dozen duplicate entries. * str_conv.c (dt_output_donly, dt_output_dhms, dt_output_hms, sftime_default_fmt): Replace char arrays with macros, so gcc can do better format-string checking. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11859 dc483132-0cff-0310-8789-dd5450dbe970
* copyright notice updates from 1.1 branchKen Raeburn1999-09-2473-73/+292
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
* from 1.1 branch:Ken Raeburn1999-09-017-16/+64
| | | | | | | | | | | | | | | | | | | | | | | | * init_ctx.c (get_profile_etype_list): Update name of the des3 entry in the default etype list. * init_ctx.c (get_profile_etype_list): New argument DESONLY; if set, ignore any ktype values other than NULL, DES_CBC_CRC, and DES_CBC_MD5. (krb5_get_default_in_tkt_ktypes, krb5_get_tgs_ktypes): Set it. (krb5_get_permitted_enctypes): Don't set it. * fwd_tgt.c (krb5_fwd_tgt_creds): Use KRB5_TC_SUPPORTED_KTYPES when calling krb5_cc_retrieve_cred. * gc_frm_kdc.c (krb5_get_cred_from_kdc_opt): Ditto. * get_creds.c (krb5_get_credentials_core): Set that flag. (krb5_get_credentials): Check for KRB5_CC_NOT_KTYPE error return. * t_ser.c (main): Disable eblock serialization test, since the code it tests was disabled nearly a year ago. * str_conv.c (krb5_timestamp_to_sfstring): Don't pass extra argument to sprintf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11779 dc483132-0cff-0310-8789-dd5450dbe970
* chpw.c (krb5_mk_chpw_req):Alexandra Ellwood1999-08-101-5/+14
| | | | | | | | Added call to free cipherpw.data. cipherpw.data is allocated by krb5_mk_priv and passed back. Since cipherpw is never passed back, krb5_mk_chpw_req should free it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11648 dc483132-0cff-0310-8789-dd5450dbe970
* 1999-08-10 Alexandra Ellwood <lxs@mit.edu>Alexandra Ellwood1999-08-101-0/+7
| | | | | | | | | * chpw.c (krb5_mk_chpw_req): Added call to free cipherpw.data. cipherpw.data is allocated by krb5_mk_priv and passed back. Since cipherpw is never passed back, krb5_mk_chpw_req should free it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11647 dc483132-0cff-0310-8789-dd5450dbe970
* Document why krb5_win_ccdll_load is called way early in code.Danilo Almeida1999-08-052-3/+14
| | | | | | | | (It is because we need to have the ccapi stuff loaded before trying to get the OS-specific context initialization where we figure out default cache names and such.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11625 dc483132-0cff-0310-8789-dd5450dbe970
* * init_ctx.c (get_profile_etype_list): Use profile_release_stringDanilo Almeida1999-08-054-18/+34
| | | | | | | | | | | | | | | | to free string allocated by profile_get_string. (krb5_init_context): Use a real context for krb5_win_ccdll_load. * get_in_tkt.c (krb5_appdefault_string): * conv_princ.c (krb5_425_conv_principal): Use profile_free_list to free values allocated by profile_get_values. * get_in_tkt.c (_krb5_conf_boolean, krb5_appdefault_boolean): Rename krb5_conf_boolean to _krb5_conf_boolean to denote that it is not public so that folks outside the libraries won't be tempted to use it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11624 dc483132-0cff-0310-8789-dd5450dbe970
* Intialize out_creds pointer to 0 and then check whether it is 0 beforeDanilo Almeida1999-08-042-4/+12
| | | | | | | trying to dereference it, in case lower-level routine failed to assign a value to it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11619 dc483132-0cff-0310-8789-dd5450dbe970
* Updating changelogJeffrey Altman1999-07-231-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11593 dc483132-0cff-0310-8789-dd5450dbe970
* Rename conf_boolean to krb5_conf_boolean and remove the static designationJeffrey Altman1999-07-231-3/+4
| | | | | | so that the function may be used in other modules. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11585 dc483132-0cff-0310-8789-dd5450dbe970
* * enc_helper.c (krb5_encrypt_helper): NULL out the pointer to theTom Yu1999-06-292-2/+10
| | | | | | | ciphertext if there is an error; this prevents stuff farther up from freeing freed memory. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11531 dc483132-0cff-0310-8789-dd5450dbe970
* * init_ctx.c (krb5_free_context): Set field pointers to NULL after freeingKen Raeburn1999-06-182-5/+19
| | | | | | | targets, in case higher-level code retains pointers into the context structure. From Jeffrey Altman. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11523 dc483132-0cff-0310-8789-dd5450dbe970
* init_ctx.c (krb5_init_context): Pass the context toTheodore Tso1999-05-132-2/+9
| | | | | | | kkrb5_win_ccdll_load so that it can register the FILE ccache type if using ccapi (so that the FILE ccache type will always work). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11440 dc483132-0cff-0310-8789-dd5450dbe970
* Do win32 build in subdirDanilo Almeida1999-05-102-86/+90
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11432 dc483132-0cff-0310-8789-dd5450dbe970
* kfree.c (krb5_free_sam_challenge, krb5_free_sam_challenge_contents,Theodore Tso1999-04-104-23/+154
| | | | | | | | | | | | | | | | | krb5_free_sam_response, krb5_free_sam_response_contents, krb5_free_predicted_sam_response, krb5_free_predicted_sam_response_contents, krb5_free_enc_sam_response_enc, krb5_free_enc_sam_response_enc_contents, krb5_free_pa_enc_ts): Added new functions. Part of patches from [krb5-kdc/662] gic_pwd.c (krb5_get_init_creds_password): Add new argument to calls to the prompter function. Part of patches from [krb5-kdc/662]. preauth2.c (pa_enc_timestamp, pa_sam): Update calls to new prompter function. [krb5-kdc/662]. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11349 dc483132-0cff-0310-8789-dd5450dbe970
* init_ctx.c (krb5_init_context): Call krb5_win_ccdll_load() to load theTheodore Tso1999-03-312-0/+7
| | | | | | krbcc32.dll under windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11333 dc483132-0cff-0310-8789-dd5450dbe970
* * sendauth.c (krb5_sendauth): Set credspout to NULL if it'sTom Yu1999-03-092-2/+11
| | | | | | | | | destined to be returned to avoid freeing it. Also, unconditionally free credspout if it's non-NULL so that if someone doesn't pass in a ticket and doesn't give us a non-NULL out_creds, we don't leak it. [krb5-libs/699] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11249 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.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11087 dc483132-0cff-0310-8789-dd5450dbe970
* * str_conv.c: Remove krb5_cksumtype_to_string after mergeTom Yu1998-11-032-27/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11008 dc483132-0cff-0310-8789-dd5450dbe970
* pull up 3des implementation from the marc-3des branchMarc Horowitz1998-10-3034-956/+682
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
* * conv_princ.c: Add some additional entries to sconv_list thatTom Yu1998-08-192-0/+27
| | | | | | were forgotten. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10851 dc483132-0cff-0310-8789-dd5450dbe970
* Replaced preprocessor symbol _MACINTOSH with macintosh, since macintosh is ↵Miro Jurisic1998-07-172-3/+3
| | | | | | the standard symbol defined by all Mac compiler (oh, sure, it doesn't have _. but at least it's always there) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10653 dc483132-0cff-0310-8789-dd5450dbe970
* * gic_pwd.c (krb5_get_init_creds_password): Remove unused argumentEzra Peisach1998-07-153-3/+10
| | | | | | | | | to sprintf(). * t_ref_kerb.out: Fix test case for zephyr principal to reflect addition to conv_princ.c git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10647 dc483132-0cff-0310-8789-dd5450dbe970
* conv_princ.c: Add additional commonly seen Kerberos V4 services to theTheodore Tso1998-07-072-0/+17
| | | | | | hard-coded list. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10623 dc483132-0cff-0310-8789-dd5450dbe970
* * chk_trans.c: Fix up previous fix; short-circuit out whenTom Yu1998-07-072-2/+8
| | | | | | trans->length == 0. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10622 dc483132-0cff-0310-8789-dd5450dbe970
* chk_trans.c (krb5_check_transited_list): Fix use of an uninitalizedTheodore Tso1998-07-012-2/+7
| | | | | | | variable; apparently the code was depending on the stack garbage being non-zero(!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10607 dc483132-0cff-0310-8789-dd5450dbe970
* srv_rcache.c (krb5_get_server_rcache):Theodore Tso1998-05-273-2/+8
| | | | | | auth_con.c (krb5_auth_con_setrcache): Export this function in Windows DLL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10590 dc483132-0cff-0310-8789-dd5450dbe970
* Make sure the date string printed uses 4 digit yearsTheodore Tso1998-05-142-5/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10568 dc483132-0cff-0310-8789-dd5450dbe970
* str_conv.c (krb5_string_to_timestamp, strptime): Fix routines to beTheodore Tso1998-05-094-22/+98
| | | | | | | | able to properly parse Y2K dates. t_kerb.c: Add ability to test krb5_string_to_timestamp git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10559 dc483132-0cff-0310-8789-dd5450dbe970
* t_ser.c (main): POSIX states that getopt returns -1 when it is doneTheodore Tso1998-05-063-5/+24
| | | | | | | | | | parsing options, not EOF. get_in_tkt.c (krb5_get_init_creds): If libdefaults/{REALM}/noaddresses is true, then don't put any addresses in the ticket request. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10549 dc483132-0cff-0310-8789-dd5450dbe970
* * get_in_tkt.c: Add prototype for make_preauth_listTom Yu1998-05-042-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10545 dc483132-0cff-0310-8789-dd5450dbe970
* * get_in_tkt.c (krb5_get_in_tkt): Add missing argument to call toTom Yu1998-05-032-1/+6
| | | | | | make_preauth_list to avoid stack smashing. Pointed out by lxs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10544 dc483132-0cff-0310-8789-dd5450dbe970
* * chk_trans.c (krb5_check_transited_list): Check lengths whenTom Yu1998-03-172-4/+25
| | | | | | appending to next and prev. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10501 dc483132-0cff-0310-8789-dd5450dbe970
* Collapse lib/krb5's configure.in files into a single top-levelTheodore Tso1998-02-283-9/+7
| | | | | | configure.in file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10476 dc483132-0cff-0310-8789-dd5450dbe970
* * recvauth.c (krb5_recvauth): Add some bookkeeping flags so weTom Yu1998-02-202-3/+16
| | | | | | | know how much stuff to free upon cleanup. Fix the up cleanup code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10465 dc483132-0cff-0310-8789-dd5450dbe970
* Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu1998-02-182-2/+7
| | | | | | used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
* Added new file kfree.c, which contained all of the functionsTheodore Tso1998-02-133-0/+582
| | | | | | previously in the lib/krb5/free directory. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10437 dc483132-0cff-0310-8789-dd5450dbe970
* Mass makefile/configure.in build system revampTheodore Tso1998-02-122-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10424 dc483132-0cff-0310-8789-dd5450dbe970
* rd_cred.c (krb5_rd_cred):Theodore Tso1998-02-064-6/+15
| | | | | | | | | rd_safe.c (krb5_rd_safe): rd_priv.c (krb5_rd_priv): Use the remote_subkey first, since the mk_* routines try to use their local_subkey first. Otherwise, the wrong keys will get used if subkeys are used in both directions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10415 dc483132-0cff-0310-8789-dd5450dbe970
* * preauth.c (handle_sam_labels):Tom Yu1998-01-033-0/+24
| | | | | | | | | (obtain_sam_padata): Check return of malloc. [krb5-libs/518] * chpw.c (krb5_mk_chpw_req): Check return of malloc. (krb5_rd_chpw_rep): Check return of malloc. [krb5-libs/518] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10346 dc483132-0cff-0310-8789-dd5450dbe970
* * mk_req_ext.c (krb5_mk_req_extended): Check enctype of sessionTom Yu1997-12-162-1/+6
| | | | | | key, not that of the ticket, which we really shouldn't care about. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10336 dc483132-0cff-0310-8789-dd5450dbe970
* * gic_pwd.c (krb5_get_init_creds_password): Change fourth argumentEzra Peisach1997-12-072-1/+6
| | | | | | in call to prompter (which is an int) from NULL to 0. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10329 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Add files chpw.c, gic_*, preauth2.c, vfy_increds.c,Tom Yu1997-12-0612-35/+2067
| | | | | | | | | | | | | | | | | | | | | | | | | | | vic_opt.c. * chpw.c: New file; implement Cygnus chpw. * get_in_tkt.c: Implement support for Cygnus initial credentials API. * gic_keytab.c: New file; Cygnus initial creds. * gic_opt.c: New file; Cygnus initial creds. * gic_pwd.c: New file; Cygnus initial creds. * preauth.c: Add more SAM support (from Cygnus). * preauth2.c: New file; additional SAM support from Cygnus. * send_tgs.c: Account for additional parameter to sendto_kdc. * vfy_increds.c: New file; Cygnus initial creds. * vic_opt.c: New file; Cygnus initial creds. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10321 dc483132-0cff-0310-8789-dd5450dbe970
* send_tgs.c (krb5_send_tgs): Don't send a zero endtime; if theTheodore Tso1997-11-112-1/+7
| | | | | | requested endtime is zero, set it equal to the TGT endtime. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10271 dc483132-0cff-0310-8789-dd5450dbe970
* * set_realm.c (krb5_set_principal_realm): Allocate extra byte for nul inEzra Peisach1997-10-062-1/+6
| | | | | | strcpy git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10208 dc483132-0cff-0310-8789-dd5450dbe970
* * rd_cred.c (krb5_rd_cred_basic): Fix swapped args to memsetTom Yu1997-09-022-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10188 dc483132-0cff-0310-8789-dd5450dbe970
* * get_in_tkt.c (krb5_get_in_tkt): Move nulling out ofTom Yu1997-08-292-1/+7
| | | | | | | request.padata before the os_localaddr call in order to avoid freeing a null pointer in the cleanup code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10186 dc483132-0cff-0310-8789-dd5450dbe970
* * init_ctx.c (krb5_init_context): Initialize local variable ctxEzra Peisach1997-08-122-1/+6
| | | | | | | | before calling krb5_init_ets. This keeps purify happy as we are not using a variable before setting it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10172 dc483132-0cff-0310-8789-dd5450dbe970
* * rd_cred.c (krb5_rd_cred_basic): Check remote_addr andTom Yu1997-08-082-1/+7
| | | | | | | encpart.s_address before calling krb5_address_compare. Fixes krb5-libs/456. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10166 dc483132-0cff-0310-8789-dd5450dbe970