summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* This should be all that remains of the 1-2-2-branch merge; someTom Yu2003-01-132-191/+180
| | | | | | | | | | | additional sanity-checking of merge needed though. * krb5_32.def: Merge from 1-2-2-branch. ticket: 1177 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15117 dc483132-0cff-0310-8789-dd5450dbe970
* kadm5_get_either leaks memoryEzra Peisach2003-01-122-0/+8
| | | | | | | | | * svr_iters.c (kadm5_get_either): For POSIX_REGEXPS (i.e. regcomp), call regfree() to cleanup memory. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15116 dc483132-0cff-0310-8789-dd5450dbe970
* Memory leak in krb5_send_tgs()Ezra Peisach2003-01-122-0/+6
| | | | | | | | * send_tgs.c (krb5_send_tgs): Free memory leak of TGS_REQ. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15115 dc483132-0cff-0310-8789-dd5450dbe970
* * svc_auth_gssapi.c (_svcauth_gssapi_unset_names): If invoked moreEzra Peisach2003-01-123-1/+13
| | | | | | | | | than once, do not double free memory. * clnt_perror.c (clnt_sperror): Do not write past end of allocated buffer. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15114 dc483132-0cff-0310-8789-dd5450dbe970
* Search for ar, ranlib, install in KRB5_BUILD_LIBRARY* macros rather thanKen Raeburn2003-01-1016-41/+23
| | | | | | explicitly in directories using those macros. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15111 dc483132-0cff-0310-8789-dd5450dbe970
* Use markers in Makefile.in rather than rules in configure.in to indicate whenKen Raeburn2003-01-1071-37/+258
| | | | | | | | to use the lib.in and libobj.in makefile fragments. Pushing this per-directory info into Makefile.in will make it a little easier to work on combining configure scripts for multiple directories. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15107 dc483132-0cff-0310-8789-dd5450dbe970
* Patch to get new service tickets in preference to using expiredSam Hartman2003-01-102-1/+15
| | | | | | | | service tickets in krb5_get_credentials. Ticket: 1260 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15106 dc483132-0cff-0310-8789-dd5450dbe970
* Previously fwd_tgt_creds required either that the hostname be passedSam Hartman2003-01-082-14/+25
| | | | | | | | | | | in or that the principal be a host-based service. This means you cannot for example forward tickets to a GSSAPI user-based service. The requirement to get the hostname is only needed in cases where addressless tickets are not used. So when addressless tickets are used, do not require the hostname. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15099 dc483132-0cff-0310-8789-dd5450dbe970
* More const for ops tablesKen Raeburn2003-01-085-6/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15096 dc483132-0cff-0310-8789-dd5450dbe970
* * sendto_kdc.c (state_strings): Now constKen Raeburn2003-01-082-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15095 dc483132-0cff-0310-8789-dd5450dbe970
* More const for ops tablesKen Raeburn2003-01-085-6/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15094 dc483132-0cff-0310-8789-dd5450dbe970
* * appdefault.c (conf_yes, conf_no): Now constKen Raeburn2003-01-082-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15093 dc483132-0cff-0310-8789-dd5450dbe970
* Make ccache and rcache ops tables constKen Raeburn2003-01-086-7/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15092 dc483132-0cff-0310-8789-dd5450dbe970
* For new encryption types and for RC4, encrypt the krb_cred message inSam Hartman2003-01-084-60/+103
| | | | | | | | | | the initial gssapi token if credentials are being delegated. For consistency with Microsoft, we encrypt the credentials using the session key not the subsession key. Ticket: 1054 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15091 dc483132-0cff-0310-8789-dd5450dbe970
* Log entries for Makefile.ov deletionKen Raeburn2003-01-084-0/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15090 dc483132-0cff-0310-8789-dd5450dbe970
* Nuke some old .orig filesKen Raeburn2003-01-086-197/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15089 dc483132-0cff-0310-8789-dd5450dbe970
* nuke old OV makefile stuffKen Raeburn2003-01-074-368/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15088 dc483132-0cff-0310-8789-dd5450dbe970
* Fix logic error in previous patch that broke gss_init_sec_contextSam Hartman2003-01-072-9/+14
| | | | | | | ticket: 1054 Status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15087 dc483132-0cff-0310-8789-dd5450dbe970
* Implement krb5_auth_con_set_checksum_func, an API for setting aSam Hartman2003-01-066-0/+55
| | | | | | | | | | callback to specify the data to be checksummed by krb5_mk_req after the auth_context has been set up. Mainly useful for GSSAPI. Ticket: 1054 Status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15084 dc483132-0cff-0310-8789-dd5450dbe970
* Only system headers should declare errnoSam Hartman2003-01-0515-12/+30
| | | | | | | | | | | | | Many parts of krb5 declare errno in source files using extern int errno. This has not been needed in ANSI C for a long time, and actively breaks modern versions of glibc. So these declarations are removed and errno.h included where necessary. Ticket: new Component: krb5-build git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15082 dc483132-0cff-0310-8789-dd5450dbe970
* Remove files that haven't been used since 1995Ken Raeburn2003-01-014-219/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15074 dc483132-0cff-0310-8789-dd5450dbe970
* Replace dependencies on generated krb524 and krb4 headers withTom Yu2002-12-232-118/+106
| | | | | | | | | variables, to allow correct behavior when krb4 is disabled. ticket: 1276 owner: tlyu git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15070 dc483132-0cff-0310-8789-dd5450dbe970
* * setup_mkey.c (krb5_db_setup_mkey_name): Use size_t instead ofEzra Peisach2002-12-232-2/+7
| | | | | | int for lengths. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15069 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_k_decode.c (asn1_decode_sam_challenge_2_body): AddEzra Peisach2002-12-232-3/+12
| | | | | | | unused_var declaration to cleanup warnings. Signed/unsigned fix as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15068 dc483132-0cff-0310-8789-dd5450dbe970
* * t_kerb.c: Include string.h for strcmp prototypeEzra Peisach2002-12-232-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15067 dc483132-0cff-0310-8789-dd5450dbe970
* Cleanup unusedEzra Peisach2002-12-239-146/+98
| | | | | | | variables. Signed vs unsigned cleanup. Ensure variables set before use. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15065 dc483132-0cff-0310-8789-dd5450dbe970
* * t_crc.c: Declare local functions staticEzra Peisach2002-12-232-5/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15064 dc483132-0cff-0310-8789-dd5450dbe970
* * t_cksum.c: Cleanup (potential) variable used before set warningEzra Peisach2002-12-232-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15063 dc483132-0cff-0310-8789-dd5450dbe970
* Ignore some new generated filesKen Raeburn2002-12-191-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15059 dc483132-0cff-0310-8789-dd5450dbe970
* Clean up some broken uses of "const" in function interfacesKen Raeburn2002-12-194-15/+26
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15058 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (check): Remove test_db before running testsKen Raeburn2002-12-192-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15057 dc483132-0cff-0310-8789-dd5450dbe970
* * api.2/init-v2.exp (test150, test151, test153): Don't try to set KRB5CCNAME;Ken Raeburn2002-12-193-3/+10
| | | | | | | | | | only the fact that it wasn't being done correctly prevented it from causing test failures. * lib/lib.t (kinit): If kinit reports a problem initializing the credentials cache, raise an error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15056 dc483132-0cff-0310-8789-dd5450dbe970
* * RealmsConfig-glue.c: Fix up KRB5_CALLCONVTom Yu2002-12-183-3/+9
| | | | | | * win_store.c (krb__get_srvtabname): Add const to parameter. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15053 dc483132-0cff-0310-8789-dd5450dbe970
* Fix some 64-bit problemsKen Raeburn2002-12-182-8/+23
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15052 dc483132-0cff-0310-8789-dd5450dbe970
* * tkt_string.c (krb5_set_tkt_string): Add KRB5_CALLCONVTom Yu2002-12-163-2/+8
| | | | | | * win_glue.c (krb_set_tkt_string): Add KRB5_CALLCONV. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15050 dc483132-0cff-0310-8789-dd5450dbe970
* Changes to allow compilation --with-system-db and --enable-sharedEzra Peisach2002-12-164-6/+23
| | | | | | (Do not depend on lib/db.so being present) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15049 dc483132-0cff-0310-8789-dd5450dbe970
* * ad_print.c, g_in_tkt.c, g_pw_in_tkt.c, kadm_net.c, klog.c:Tom Yu2002-12-1415-78/+225
| | | | | | | | | | * kuserok.c, log.c, memcache.c, netread.c, netwrite.c: * password_to_key.c, recvauth.c, stime.c, tkt_string.c: Change _WINDOWS to _WIN32 in many places. Update copyright notices. Remove _WINDOWS handling completely in a few places where it's not needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15048 dc483132-0cff-0310-8789-dd5450dbe970
* More KfM merge workTom Yu2002-12-1219-881/+1704
| | | | | | | | | | | | | | | | | | | | | | | | Create new file FSp-glue.c including KfM functions that had previously been scattered through various other files. Port RealmsConfig-glue.c from KfM, including old Unix-ish krb4 configuration code as fallback. Remove other files containing old realm/config file support. Add KRB5_CALLCONV to krb_get_in_tkt_creds. Fix various functions to take const char* as arguments now that tkt_string() returns const. Assorted minor cleanup. Implement krb_get_err_text in terms of com_err. Implement gross kludge to force krb_err_txt to remain in sync with com_err. ticket: 1189 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15046 dc483132-0cff-0310-8789-dd5450dbe970
* Fix depend rules to keep state about whether verification of variousTom Yu2002-12-124-4/+14
| | | | | | | | things succeeded. Change some double colons to single colons. Add a new depend-dependencies target to allow Makefile.in to specify things that must be built for depend to work. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15045 dc483132-0cff-0310-8789-dd5450dbe970
* Fix some KRB5_CALLCONV botches that were causing trouble for Windows buildTom Yu2002-12-0712-293/+132
| | | | | | | | | | | | | | Update send_to_kdc() to use various krb5 internals to talk to the krb4 KDC. Add a new internal function to optionally return the local address used to talk to the KDC. Many changes to lib/krb5/os to support this. Fix bug in krb5int_sendto() that prevented correct UDP length from being returned. Update callers of internal locate_* and sendto_* functions. ticket: 1189 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15038 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (clean): Clean up more test executables and objectEzra Peisach2002-12-063-3/+9
| | | | | | files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15034 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesTom Yu2002-12-061-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15031 dc483132-0cff-0310-8789-dd5450dbe970
* * kname_parse.c (kname_unparse): Add new function ported fromTom Yu2002-12-062-0/+141
| | | | | | KfM, including support functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15030 dc483132-0cff-0310-8789-dd5450dbe970
* 2002-12-05 Sam Hartman <hartmans@mit.edu>Sam Hartman2002-12-062-23/+28
| | | | | | | | | * util_token.c (g_verify_token_header g_make_token_header): Accept -1 to mean that no token type is expected; the token type is purely an RFC 1964 artifact and is not used in other mechanisms such as SPNEGO. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15029 dc483132-0cff-0310-8789-dd5450dbe970
* * decomp_tkt.c (decomp_ticket): Add KRB5_CALLCONVTom Yu2002-12-052-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15028 dc483132-0cff-0310-8789-dd5450dbe970
* * krb4int.h: Remove now conflicting prototype forTom Yu2002-12-052-3/+3
| | | | | | krb_set_lifetime(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15027 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Fix up includes handling somewhatTom Yu2002-12-042-14/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15024 dc483132-0cff-0310-8789-dd5450dbe970
* Update Windows build for kadm_err.*Tom Yu2002-12-032-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15023 dc483132-0cff-0310-8789-dd5450dbe970
* * change_password.c: Remove netdb.h inclusionTom Yu2002-12-032-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15021 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SRCS): Add kadm_err.c. It was missingTom Yu2002-11-272-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15018 dc483132-0cff-0310-8789-dd5450dbe970