summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* * import_name.c (krb5_gss_import_name) [HAVE_GETPWUID_R]: Use getpwuid_rKen Raeburn2004-07-072-5/+32
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16548 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for pthread_rwlock_initKen Raeburn2004-07-062-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16547 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Fix bug in last change that caused a variable to be used ↵Ken Raeburn2004-07-062-1/+6
| | | | | | before set git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16546 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (AC_LIBRARY_NET): Look for res_nsearch.Ken Raeburn2004-07-043-5/+18
| | | | | | | * configure.in: If thread support is enabled and res_nsearch isn't found, issue a warning. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16542 dc483132-0cff-0310-8789-dd5450dbe970
* * dnssrv.c (krb5int_make_srv_query_realm) [HAVE_RES_NSEARCH]: Use res_nsearchKen Raeburn2004-07-043-0/+63
| | | | | | | instead of res_search. * hst_realm.c (krb5_try_realm_txt_rr) [HAVE_RES_NSEARCH]: Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16541 dc483132-0cff-0310-8789-dd5450dbe970
* * error_message.c (remove_error_table) [!ENABLE_THREADS && DEBUG_THREADS]: ↵Ken Raeburn2004-07-042-1/+6
| | | | | | Update test for "initialized" field in mutex git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16540 dc483132-0cff-0310-8789-dd5450dbe970
* * k5-thread.h: Restructured mutex code.Ken Raeburn2004-07-022-175/+292
| | | | | | | | | | | | | | | (k5_debug_loc): New type, may contain file/line info if DEBUG_THREADS_LOC is defined. (k5_os_nothread_*): Dummy implementation of mutex lock for a single-threded process. Uses a flag and assert() if DEBUG_THREADS is defined, does nothing interesting otherwise. (k5_os_mutex*, k5_once*): General implementations, with dummy or POSIX or POSIX-if-loaded-otherwise-dummy variants. (k5_mutex_*): Combine OS-specific mutex implementation with optional file/line tracking, and provide a place to instrument for other debugging or performance data. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16539 dc483132-0cff-0310-8789-dd5450dbe970
* * an_to_ln.c: Include string.hKen Raeburn2004-07-022-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16538 dc483132-0cff-0310-8789-dd5450dbe970
* * kinit.c (k5_kinit): Don't free addresses after callingKen Raeburn2004-07-012-1/+5
| | | | | | krb5_get_init_creds_opt_set_address_list; it doesn't make a copy. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16537 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Test for 'inline' support.Ken Raeburn2004-07-014-17/+10
| | | | | | | * k5-platform.h (inline): Don't define here. * win-mac.h (inline): Define as __inline. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16536 dc483132-0cff-0310-8789-dd5450dbe970
* * k5-thread.h (K5_MUTEX_DEBUG_INITIALIZER): Use current file and line.Ken Raeburn2004-07-012-10/+23
| | | | | | | | | | | | | (k5_mutex_debug_finish_init, k5_mutex_debug_init, k5_mutex_debug_destroy): Save current file and line. (k5_mutex_debug_lock): Verify that the lock was unlocked before, and set the state to locked. (k5_mutex_debug_unlock): Verify that the mutex was locked before, and set the state to unlocked. (k5_debug_assert_locked, k5_debug_assert_unlocked): Use k5_mutex_debug_check_init instead of checking initialized==1. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16535 dc483132-0cff-0310-8789-dd5450dbe970
* Thread-safety for file-based credentials cachesKen Raeburn2004-06-302-74/+195
| | | | | | | | | | | | | | | | | | * cc_file.c (krb5_fcc_data): Added a mutex. (krb5_fcc_read*, krb5_fcc_write, krb5_fcc_store_*, krb5_fcc_open_file, krb5_fcc_skip_header, krb5_fcc_skip_principal): Verify that the mutex is locked. (MAYBE_OPEN): Verify that the mutex is locked; unlock it if returning an error. (krb5_fcc_initialize, krb5_fcc_start_seq_get, krb5_fcc_get_principal, krb5_fcc_store, krb5_fcc_set_flags): Lock and unlock the mutex. (krb5_fcc_close): Likewise. Destroy the mutex when done. (krb5_fcc_destroy): Merge stdio and non-stdio versions a little more. Destroy the mutex when done. (krb5_fcc_resolve): Initialize and lock the mutex. (krb5_fcc_next_cred): Lock and unlock the mutex. Merge the stdio and non-stdio branches a little more. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16534 dc483132-0cff-0310-8789-dd5450dbe970
* * k5-thread.h (k5_debug_assert_locked, k5_debug_assert_unlocked): New macros.Ken Raeburn2004-06-302-0/+22
| | | | | | | (k5_assert_locked, k5_assert_unlocked): New macros, may or may not call the debug macros. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16533 dc483132-0cff-0310-8789-dd5450dbe970
* * libkadm5clnt.exports: Export kadm5_get_admin_service_nameKen Raeburn2004-06-302-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16532 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_mslsa.c:Jeffrey Altman2004-06-302-63/+358
| | | | | | | | | | | | | | | | | | | | | | | | - is_windows_2000() indicates the OS is Windows 2000 or higher - is_windows_xp() indicates the OS is Windows XP or higher which indicates that PKERB_QUERY_TKT_CACHE_EX_RESPONSE and PKERB_TICKET_CACHE_INFO_EX are available. - does_retrieve_ticket_cache_ticket() checks to see if a Microsoft private fix is available which adds a new Cache Flag, KERB_RETRIEVE_TICKET_CACHE_TICKET, which when set causes the requested ticket to be stored in the LSA cache even when the TicketFlags and EncType are not set to 0. - KerbExternalTicketMatch() is a test to determine if two Microsoft External Tickets are identical + use the KerbQueryTicketCacheExMessage LSA call on XP or higher + specify the KERB_RETRIEVE_TICKET_CACHE_TICKET flag when it is available = The combination of both + items will cause the ClientRealm to be displayed properly for all cross realm tickets obtained via the MSLSA ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16528 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_memory.c (krb5_mcc_free): Don't free the mutex hereKen Raeburn2004-06-292-2/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16527 dc483132-0cff-0310-8789-dd5450dbe970
* Lots of signedness and argument-casting fixes. Some arithmeticTom Yu2004-06-2812-53/+118
| | | | | | paranoia for seasoning. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16526 dc483132-0cff-0310-8789-dd5450dbe970
* Missed some log data with last checkin:Ken Raeburn2004-06-281-0/+5
| | | | | | | | | | * cc_memory.c (struct _krb5_mcc_data): Delete 'next' pointer. Add a mutex. (krb5_mcc_*): Lock and unlock the mutex as appropriate. (struct krb5_mcc_list_node): New type, separates the linked-list container from the data for individual nodes. (mcc_head): Now points to krb5_mcc_list_node. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16525 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_memory.c: Include k5-thread.h.Ken Raeburn2004-06-284-173/+231
| | | | | | | | | | | (krb5int_mcc_mutex): New lock. (krb5_mcc_store): Rewrite. (NEED_WINDOWS): Don't define. (krb5_mcc_*): All functions now static. * cc-int.h (krb5int_mcc_mutex): Declare. * ccbase.c (krb5int_cc_initialize): Initialize it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16524 dc483132-0cff-0310-8789-dd5450dbe970
* * ovsec_kadmd.c (log_badverf): Fix a missed rpc_u_int32Tom Yu2004-06-262-1/+5
| | | | | | | ticket: 2601 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16523 dc483132-0cff-0310-8789-dd5450dbe970
* more namespace cleanup: remove uses of rpc_int32 and rpc_u_int32Tom Yu2004-06-257-18/+29
| | | | | | | ticket: 2601 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16522 dc483132-0cff-0310-8789-dd5450dbe970
* * k5-platform.h (JOIN4, JOIN4_2, JOIN3, JOIN3_2): Unused macros deleted.Ken Raeburn2004-06-252-32/+36
| | | | | | | | | | | (JOIN__2, JOIN__2_2): Renamed from JOIN2 and JOIN2_2. Insert two underscores between the tokens supplied. All uses changed to use new macros, and not use identifiers with leading underscores. ticket: 2603 status: resolved git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16521 dc483132-0cff-0310-8789-dd5450dbe970
* gssapi_krb5.h is autogenerated in krb5-1.4 and later (don't pull up)Alexandra Ellwood2004-06-251-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16520 dc483132-0cff-0310-8789-dd5450dbe970
* Updated for krb5-1.4 file changesAlexandra Ellwood2004-06-251-43/+1161
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16519 dc483132-0cff-0310-8789-dd5450dbe970
* gssapi_krb5.h is autogenerated in krb5-1.4 and later (don't pull up)Alexandra Ellwood2004-06-251-4/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16518 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Fix typo in setting krb5_cv_header_sys_param_h_maxhostnamelenKen Raeburn2004-06-252-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16517 dc483132-0cff-0310-8789-dd5450dbe970
* * kpasswd.c (P1, P2): Cosmetic fix for prompts to avoidTom Yu2004-06-252-2/+7
| | | | | | double colons. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16516 dc483132-0cff-0310-8789-dd5450dbe970
* Use null pointer as service name to request host-based service nameTom Yu2004-06-243-10/+18
| | | | | | ticket: 2613 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16515 dc483132-0cff-0310-8789-dd5450dbe970
* update copyright, fix comment typoKen Raeburn2004-06-241-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16514 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_file.c (krb5_fcc_read_data): Combine stdio and posix versions of code withKen Raeburn2004-06-242-32/+24
| | | | | | | | | | | gratuitous minor differences. (krb5_fcc_read_int32, krb5_fcc_next_cred): Likewise. (krb5_fcc_read_addr): Likewise. Check that filled-in length field matches the value we tried to store (i.e., that type conversion didn't throw away information). (krb5_fcc_read_authdatum): Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16513 dc483132-0cff-0310-8789-dd5450dbe970
* typo in last changeKen Raeburn2004-06-241-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16512 dc483132-0cff-0310-8789-dd5450dbe970
* * threads.c: Reorganize code: One definition of each function, withKen Raeburn2004-06-242-181/+177
| | | | | | | per-platform conditional tests inside, instead of per-platform definitions for each function. Combine common aspects of each function across platforms. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16511 dc483132-0cff-0310-8789-dd5450dbe970
* use host-based service name for kadmin clientTom Yu2004-06-242-3/+22
| | | | | | | | | | | * kadmin.c (kadmin_startup): Use host-based service name from kadm5_get_admin_service_name() for SEAM compatibility when old AUTH_GSSAPI not requested. ticket: new component: krb5-admin git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16510 dc483132-0cff-0310-8789-dd5450dbe970
* * alt_prof.c (kadm5_get_admin_service_name): Fix call toTom Yu2004-06-242-3/+15
| | | | | | kadm5_get_config_params(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16509 dc483132-0cff-0310-8789-dd5450dbe970
* * client_init.c (_kadm5_init_any)[DEBUG]: Print error fromTom Yu2004-06-242-0/+8
| | | | | | clnttcp_create(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16508 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_file.c (my_fopen): Function deleted.Ken Raeburn2004-06-222-9/+3
| | | | | | (krb5_fcc_open_file): Use fopen, not my_fopen. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16507 dc483132-0cff-0310-8789-dd5450dbe970
* Delete preprocessor tests for macintosh, __MWERKS__, applec, and THINK_C, allKen Raeburn2004-06-2246-188/+96
| | | | | | | part of the pre-Mac OS X support. (Except the bits in the Yarrow code, where it was part of the upstream source.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16506 dc483132-0cff-0310-8789-dd5450dbe970
* cc_mslsa.c: Comment out calls to FormatMessage and do not terminateJeffrey Altman2004-06-222-0/+17
| | | | | | | | | | | | the program on a failure to generate a message. The existing code fails on non-English systems. We do not need this code in a library unless we are logging to the Event Log which is currently not done. Ignore this for the time being until such time as we decide Event Log entries are important to us. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16503 dc483132-0cff-0310-8789-dd5450dbe970
* * threads.c (key_lock): Change to a k5_mutex_t.Ken Raeburn2004-06-212-21/+72
| | | | | | | | | | | | | | | (k5_key_register): Use k5_ lock routines. (pthread_getspecific, pthread_setspecific, pthread_key_create, pthread_key_delete) [HAVE_PRAGMA_WEAK_REF]: Declare weak. (tsd_if_single) [HAVE_PRAGMA_WEAK_REF]: New variable. (krb5int_thread_support_init): Do pthread key creation only if pthread code is loaded. (krb5int_thread_support_fini): Do pthread key deletion only if pthread code is loaded. (k5_key_register, k5_getspecific, k5_setspecific): Use tsd_if_single when pthread code is not loaded. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16502 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_mslsa.c: Enforce acceptable enctypes by checking againstJeffrey Altman2004-06-192-56/+121
| | | | | | | | | | | | | | the default_tgs_enctypes list instead of the permitted_enctypes list; only enforce the desired enctype when retrieving tickets to deliver to an application. do not enforce when attempting to determine the current principal name. this is important because specifying an enctype results in a TGS_REQ being sent to the KDC; close memory leak of krb5_cred objects in krb5_lcc_retrieve(). ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16500 dc483132-0cff-0310-8789-dd5450dbe970
* fix some 64-bit bugs in RPCSEC_GSSTom Yu2004-06-196-23/+63
| | | | | | | | | | | | | | | | | | | | | | | * auth_gss.h: Add prototype for xdr_rpc_gss_buf. * authgss_prot.c (xdr_rpc_gss_buf): New function. (xdr_rpc_gss_cred, xdr_rpc_gss_init_args, xdr_rpc_gss_init_res): (xdr_rpc_gss_wrap_data, xdr_rpc_gss_unwrap_data): Use xdr_rpc_gss_buf, to avoid passing a (size_t *) to a xdr_bytes(), which expects (u_int *). (xdr_rpc_gss_wrap_data): Use tmplen to avoid passing (size_t *) to xdr_u_int. * libgssrpc.exports: * rename.h: Add xdr_rpc_gss_buf. * xdr.c (xdr_enum): Fix (kind of) for 64-bit. Still inherently bogus, due to casting of (enum foo *) to (enum_t *) by callers. ticket: new component: krb5-libs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16499 dc483132-0cff-0310-8789-dd5450dbe970
* ignore generated timestamp file autoconf.stmpKen Raeburn2004-06-191-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16498 dc483132-0cff-0310-8789-dd5450dbe970
* ignore generated file krb5support32.defKen Raeburn2004-06-191-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16497 dc483132-0cff-0310-8789-dd5450dbe970
* ignore generated file gssapi_krb5.hKen Raeburn2004-06-191-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16496 dc483132-0cff-0310-8789-dd5450dbe970
* * mpool/mpool.c (mpool_get, mpool_write): Check that the offset calculationKen Raeburn2004-06-192-0/+17
| | | | | | didn't overflow. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16495 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SHLIB_EXPLIBS): Add $(LIBS)Ken Raeburn2004-06-194-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16494 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (WITH_CC): Use -Wl,-search_paths_first for linking on Darwin.Ken Raeburn2004-06-192-3/+18
| | | | | | | | (KRB5_AC_ENABLE_THREADS): On AIX, add PTHREAD_LIBS to LIBS; don't do it on other platforms. Override CC with PTHREAD_CC only if CC is not gcc. Don't add PTHREAD_CFLAGS to CFLAGS; substitute PTHREAD_CFLAGS separately. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16493 dc483132-0cff-0310-8789-dd5450dbe970
* * shlib.conf (*-*-darwin*, *-*-rhapsody*): Don't set PICFLAGS or LDFLAGS.Ken Raeburn2004-06-192-9/+18
| | | | | | | | Force static libraries only always, instead of just as the default. (*-*-aix*): The initfini argument should be "-binitfini". Use -bernotok, not -berok. Do use the INIT_FINI_PREP command in constructing MAKE_SHLIB_COMMAND. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16492 dc483132-0cff-0310-8789-dd5450dbe970
* * pre.in (PTHREAD_CFLAGS): New variable.Ken Raeburn2004-06-192-1/+7
| | | | | | (ALL_CFLAGS): Include it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16491 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (all-windows): Make autoconf.h in include\krb5 before buildingKen Raeburn2004-06-192-1/+26
| | | | | | | | | | anything else. (WINMAKEFILES): Add util\support\Makefile. (util\support\Makefile) [DOS]: New target. (CE): New variable. ($(CE)test1.h, $(CE)test2.h, $(CE)test1.c, $(CE)test2.c): New targets. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16490 dc483132-0cff-0310-8789-dd5450dbe970