summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * init_os_ctx.c: Added changes for the Mac for limited support of ↵Marshall Vale2000-02-081-0/+10
| | | | | | Application Support folder as a location for the krb5 configuration file git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12027 dc483132-0cff-0310-8789-dd5450dbe970
* Limited support for Applicaiton Support folder as location for krb5.ini on ↵Marshall Vale2000-02-081-8/+24
| | | | | | the Mac added git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12026 dc483132-0cff-0310-8789-dd5450dbe970
* * api.1/lock.exp: Since a "wait" directive to the command list ofTom Yu2000-02-082-0/+12
| | | | | | | | | | | the lock_test procedures does not wait for any synchronization, change lock9 to acquire and release a lock before the "wait" directive in order to avoid a race condition where lock9 spawns the ./lock-test but the program has not opened the database prior to lock9_1 acquiring a permanent lock. This was causing difficult-to-reproduce failures. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12025 dc483132-0cff-0310-8789-dd5450dbe970
* * lib/lib.t: Call kinit and kdestroy with -5 flag to accomodateTom Yu2000-02-082-2/+7
| | | | | | new behavior. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12022 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
* changepw.c (krb5_locate_kpasswd): fixed memory trashing caused by incorrect ↵Scott McGuire2000-02-072-1/+7
| | | | | | pointer arithmetic when assigning DEFAULT_KPASSWD_PORT in DNS code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12019 dc483132-0cff-0310-8789-dd5450dbe970
* * gic_pwd.c (krb5_get_as_key_password): If the as_key enctype is already set toKen Raeburn2000-02-073-15/+35
| | | | | | | | | | | | | | the correct type, do continue and ask for the password anyways. (Patch from Chas Williams, PR krb5-libs/730.) * preauth2.c (pa_sam): If no sam_flags were set, return KRB5_PREAUTH_BAD_TYPE, because we don't currently handle that case. * preauth2.c (pa_sam): Remove unused variable use_sam_key. (SAMDATA): Cast first result to int, which is what sprintf needs. (pa_salt): Delete unused variable ret. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12012 dc483132-0cff-0310-8789-dd5450dbe970
* updated some comments (fcusack)Ken Raeburn2000-02-072-6/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12009 dc483132-0cff-0310-8789-dd5450dbe970
* added flags field to predicted_sam_response (fcusack)Ken Raeburn2000-02-073-11/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12008 dc483132-0cff-0310-8789-dd5450dbe970
* more fcusack changes - rest of first setKen Raeburn2000-02-074-2/+19
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12006 dc483132-0cff-0310-8789-dd5450dbe970
* Frank Cusack changes, set 1, diffs 1-3 of 4Ken Raeburn2000-02-077-11/+30
| | | | | | | | Rename "sam_passcode" field to "sam_sad". Add data to predicted-sam-response structure, in part to (prepare to) help with replay detection. Fix some memory allocation problems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12005 dc483132-0cff-0310-8789-dd5450dbe970
* (krb5_locate_kpasswd): fixed memory trashing caused by incorrect pointer ↵Scott McGuire2000-02-042-1/+7
| | | | | | arithmetic when assigning DEFAULT_KPASSWD_PORT in non-DNS code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11997 dc483132-0cff-0310-8789-dd5450dbe970
* Removed calls that destroyed and recreated ccapi_data->NamedCache if it ↵Scott McGuire2000-02-042-8/+9
| | | | | | exists in krb5_stdcc_initialize(); instead close and call create on it again git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11994 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_32.def: Replace decode_krb5_ticket with krb5_decode_ticket.Danilo Almeida2000-02-022-11/+30
| | | | | | Add documentation about adding things to DEF file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11984 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode.c (krb5_decode_ticket): Add function to provideDanilo Almeida2000-02-022-0/+14
| | | | | | decode_krb5_ticket functionality as part of krb5 API. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11983 dc483132-0cff-0310-8789-dd5450dbe970
* * kts_g_ent.c, ktsrvtab.h (krb5_ktsrvtab_get_entry): Change theEzra Peisach2000-01-293-2/+9
| | | | | | | | | third argument to krb5_const_principal (from krb5_principal) to agree with krb5_kts_ops entries. gcc warning about incompatible pointer types. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11980 dc483132-0cff-0310-8789-dd5450dbe970
* limit kadm5 net interface to des for now until gssapi mech is fixedKen Raeburn2000-01-272-2/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11971 dc483132-0cff-0310-8789-dd5450dbe970
* * init_ctx.c (get_profile_etype_list): Discard DESONLY changes from 1999-09-01,Ken Raeburn2000-01-272-19/+10
| | | | | | and revert call sites. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11970 dc483132-0cff-0310-8789-dd5450dbe970
* * init_sec_context.c (krb5_gss_init_sec_context): Default to des-cbc-crcKen Raeburn2000-01-272-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11969 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
* * krb5_libinit.c: Conditionalize call to stdcc_shutdown()Tom Yu2000-01-242-5/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11965 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Fix to build library objects in this directoryTom Yu2000-01-244-5/+16
| | | | | | | | * Makefile.in (STOBJLISTS): Fix to actually build krb5_libinit.o. * krb5_libinit.c: Fix to use 0 and 1 instead of false and true. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11964 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (STLIBOBJS): Properly add gss_libinit.o to permitTom Yu2000-01-244-6/+20
| | | | | | | | | | | compiling. * configure.in: Add libobj to Makefile frags. * gss_libinit.c: Add terminating newline. Use 0 and 1 instead of false and true. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11963 dc483132-0cff-0310-8789-dd5450dbe970
* * crypto_libinit.c: Add terminating newline; use 0 and 1 insteadTom Yu2000-01-242-4/+9
| | | | | | of false and true. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11962 dc483132-0cff-0310-8789-dd5450dbe970
* Moved krb5, gss, and crypto library initialization/cleanup code into new ↵Miro Jurisic2000-01-2213-0/+183
| | | | | | dedicated functions; added code to release global state allocated in prng.c git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11960 dc483132-0cff-0310-8789-dd5450dbe970
* Various changes to:Ken Raeburn2000-01-2245-143/+203
| | | | | | | | | | | | | | * make most non-changing data const * silence "gcc -Wall -Werror" complaints on sparc-solaris2.6 ** delete unused functions and variables ** change if(a=b) ... to if((a=b)) or if((a=b)!=0) [yeah, kinda gratuitous] ** insert extra braces for 2-D arrays * some basic thread safety checks Not changing afsstring2key.c until I make sure I've got some tests for it. Currently, prng.c and afsstring2key.c, at least, still aren't thread-safe. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11959 dc483132-0cff-0310-8789-dd5450dbe970
* * prng.c (enc): Now static and const, and points to constKen Raeburn2000-01-222-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11958 dc483132-0cff-0310-8789-dd5450dbe970
* Avoid non-const static data, and gcc warnings Solaris, except afsstring2key.c:Ken Raeburn2000-01-224-15/+42
| | | | | | | | | | * f_sched.c (PC2_C, PC2_D): Put braces around sub-arrays. * f_tables.c (des_SP_table): Ditto. * weak_key.c (weak): Now const. (mit_des_is_weak_key): Adjust pointer type accordingly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11957 dc483132-0cff-0310-8789-dd5450dbe970
* * logger.c (klog_vsyslog): Convert pid_t to long for printingKen Raeburn1999-12-063-3/+12
| | | | | | | * alt_prof.c (kadm5_get_config_params): Fix bug in direction of test while walking through whitespace. Thanks to Matt Crawford. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11951 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LIBMINOR): Update to 2Ken Raeburn1999-12-062-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11950 dc483132-0cff-0310-8789-dd5450dbe970
* * init_ctx.c (get_profile_etype_list): Report an error if noKen Raeburn1999-12-062-0/+11
| | | | | | recognized enctypes are found in the config file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11949 dc483132-0cff-0310-8789-dd5450dbe970
* merge 1.1 branch, to 12/1/99Ken Raeburn1999-12-0613-398/+2450
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11948 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_err.et (KRB5_OBSOLETE_FN): New error codeKen Raeburn1999-12-062-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11947 dc483132-0cff-0310-8789-dd5450dbe970
* * mcc.h (mcc_head): Define as macro to give exported name a krb5 prefixKen Raeburn1999-12-062-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11946 dc483132-0cff-0310-8789-dd5450dbe970
* merge from 1.1 branchKen Raeburn1999-12-064-10/+44
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11945 dc483132-0cff-0310-8789-dd5450dbe970
* Pull changes from krb5-1-1 branchDanilo Almeida1999-12-0410-795/+23
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11940 dc483132-0cff-0310-8789-dd5450dbe970
* Replaced Kerberos5GlobalsLib calls with CCAPI v3 calls on MacOSMiro Jurisic1999-11-222-6/+34
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11907 dc483132-0cff-0310-8789-dd5450dbe970
* Use CCache2.h under MacOS for CCAPI v2 compatibilityMiro Jurisic1999-11-223-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11904 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_err.et (KRB5_CONFIG_ETYPE_NOSUPP): New error codeKen Raeburn1999-11-032-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11901 dc483132-0cff-0310-8789-dd5450dbe970
* * t_ref_kerb.out: Fix expected zephyr/zephyr outputKen Raeburn1999-11-032-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11900 dc483132-0cff-0310-8789-dd5450dbe970
* * localaddr.c (krb5_os_localaddr): Conditionalize INET6 support on newKen Raeburn1999-11-022-2/+7
| | | | | | KRB5_USE_INET6 macro. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11895 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode.c (begin_structure): Update to deal with indefiniteTom Yu1999-11-017-20/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | encodings better; also call asn1_get_sequence(). * asn1_k_decode.c (sequence_of): Update to deal with indefinite encodings better. (begin_structure): Update to deal with indefinite encodings better; also call asn1_get_sequence(). * asn1_get.h: Update prototypes for asn1_get_tag_indef(), asn1_get_tag(), asn1_get_sequence(), asn1_get_length(). * asn1_get.c (asn1_get_tag_indef): New function; get tag info, lengths, etc. as well as flag indicating whether the length is indefinite. (asn1_get_tag): Modify to just call asn1_get_tag_indef(). (asn1_get_sequence): Call asn1_get_tag_indef() in order to determine whether encoding is indefinite length. (asn1_get_length): Add "indef" arg to indicate whether an encoding has an indefinite length. * asn1buf.h: Update asn1buf_imbed() prototype. * asn1buf.c (asn1buf_imbed): Add "indef" arg so that we don't treat a definite zero-length encoding as an indefinite encoding. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11890 dc483132-0cff-0310-8789-dd5450dbe970
* * accept_sec_context.c (krb5_gss_accept_sec_context): get rid of unused varsKen Raeburn1999-10-272-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11884 dc483132-0cff-0310-8789-dd5450dbe970
* * k5seal.c (make_integ_token_v2): Set 'code' when malloc failsKen Raeburn1999-10-262-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11882 dc483132-0cff-0310-8789-dd5450dbe970
* log tritan's changesTom Yu1999-10-2641-0/+287
| | | | 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-2641-61/+35
| | | | | | | 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
* * asn1_decode.c (asn1_decode_integer): Initialize "n", to keep gcc happyKen Raeburn1999-10-222-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11875 dc483132-0cff-0310-8789-dd5450dbe970
* fix typos in commentsKen Raeburn1999-10-221-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11874 dc483132-0cff-0310-8789-dd5450dbe970
* Silence gcc longjmp warnings:Ken Raeburn1999-10-225-7/+38
| | | | | | | | | | | | * prompter.c (krb5_prompter_posix): Make ointrfunc, fd, and errcode volatile. * promptusr.c (krb5_os_get_tty_uio): Make ointrfunc and retval volatile. * read_pwd.c (krb5_read_password): Make ointrfunc volatile. Fix volatile decl for readin_string (pointer is volatile, doesn't point to volatile). * changepw.c (krb5_change_password): Wait only two minutes, not indefinitely, for a response from the kpasswd server. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11873 dc483132-0cff-0310-8789-dd5450dbe970
* * localaddr.c (krb5_os_localaddr): Don't bother trying to create inet6 ↵Ken Raeburn1999-10-182-10/+6
| | | | | | socket; any socket type will do git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11866 dc483132-0cff-0310-8789-dd5450dbe970