Ken Raeburn [Fri, 16 Jul 2004 22:15:14 +0000 (22:15 +0000)]
update dependencies
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16611
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 16 Jul 2004 21:56:10 +0000 (21:56 +0000)]
update dependencies
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16610
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 16 Jul 2004 21:55:12 +0000 (21:55 +0000)]
* pty-int.h: Include port-sockets.h instead of netdb.h and netinet/in.h
ticket: 2379
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16609
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 16 Jul 2004 21:12:30 +0000 (21:12 +0000)]
* fake-addrinfo.h: Don't include netdb.h, since port-sockets.h already does.
* port-sockets.h: Define _XOPEN_SOURCE_EXTENDED around inclusion of netdb.h if
it's not defined and not Windows, as fake-addrinfo.h used to do; otherwise just
include it normally.
ticket: 2379
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16608
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 16 Jul 2004 21:07:42 +0000 (21:07 +0000)]
* kadmin.M: Put space after ".B" directive
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16606
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 16 Jul 2004 20:53:46 +0000 (20:53 +0000)]
* compat_recv.c: Only include sys/select.h if it's available
ticket: 2592
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16605
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 16 Jul 2004 20:50:40 +0000 (20:50 +0000)]
* port-sockets.h (inet_ntop): Cast NULL to desired return pointer type
ticket: 2592
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16604
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Thu, 15 Jul 2004 20:05:06 +0000 (20:05 +0000)]
Added thread support code to project
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16603
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Thu, 15 Jul 2004 17:45:04 +0000 (17:45 +0000)]
Remove use of client principal from krb5_context (default_ccprincipal) and default principal from v4 CCAPI glue code
ticket: 2634
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16602
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Thu, 15 Jul 2004 07:39:14 +0000 (07:39 +0000)]
fix previous commit
ticket: 2637
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16601
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Thu, 15 Jul 2004 07:38:09 +0000 (07:38 +0000)]
* k5-int.h: define for WIN32 the macro krb5int_zap_data to
utilize the Win32 API SecureZeroMemory which is guaranteed
by Microsoft not to be optimized out by the compiler.
Both memset and ZeroMemory will be optimized out by the
compiler when possible.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16600
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 15 Jul 2004 01:12:26 +0000 (01:12 +0000)]
* Makefile.in (MLIBS): Add $(LIBS)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16599
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 15 Jul 2004 01:11:24 +0000 (01:11 +0000)]
* libprofile.exports: Don't try to export krb5int_profile_shared_data
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16598
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 15 Jul 2004 01:00:54 +0000 (01:00 +0000)]
Get rid of the global krb5 context used by the GSSAPI Kerberos mechanism. I
*think* I've gotten all the places where a ccache or keytab name that's been
stored gets applied to whichever context needs it.
* gssapi_krb5.c (kg_sync_ccache_name): Add context argument instead of calling
kg_get_context.
(kg_get_ccache_name): Use a locally created krb5 context instead of calling
kg_get_context.
(kg_get_context): Deleted.
* acquire_cred.c (acquire_init_cred): Pass current context.
(krb5_gss_acquire_cred): Use a locally created krb5 context instead of calling
kg_get_context.
* add_cred.c (krb5_gss_add_cred): Call kg_sync_ccache_name.
* init_sec_context.c (krb5_gss_init_sec_context): Likewise.
* gssapiP_krb5.h (kg_sync_ccache_name): Update prototype.
(kg_get_context): Delete declaration.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16597
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 14 Jul 2004 21:14:51 +0000 (21:14 +0000)]
* t_cc.c (cc_test): Rename one of the "resolve" cases so the messages can be
distinguished.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16596
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 14 Jul 2004 21:06:22 +0000 (21:06 +0000)]
* recvauth.c (krb_recvauth): Initialize cp and tmp_buf. Check length of data
read before evaluating the value.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16595
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 14 Jul 2004 01:54:16 +0000 (01:54 +0000)]
* set_ccache.c (gss_krb5_ccache_name): Check thread-specific data for the saved
"old" name to free. Save the new old name in thread-specific data.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16594
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 14 Jul 2004 01:46:36 +0000 (01:46 +0000)]
* gssapiP_krb5.h (gssint_krb5_keytab_lock): Declare
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16593
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 14 Jul 2004 01:45:12 +0000 (01:45 +0000)]
* gss_libinit.c (gssint_lib_init): Initialize new keytab-name mutex, and
register two new key values.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16592
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 14 Jul 2004 01:44:50 +0000 (01:44 +0000)]
* Makefile.in (SHLIB_EXPDEPS): Use _DEPLIB variables.
(SHLIB_EXPLIBS): Add $(SUPPORT_LIB).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16591
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 14 Jul 2004 01:40:52 +0000 (01:40 +0000)]
* acquire_cred.c: Include gss_libinit.h.
(gssint_krb5_keytab_lock): New mutex.
(krb5_gss_register_acceptor_identity, acquire_accept_cred): Lock the mutex
while manipulating krb5_gss_keytab.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16590
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 14 Jul 2004 01:33:35 +0000 (01:33 +0000)]
* k5-platform.h (k5_call_init_function) [DELAY_INITIALIZER] [__GNUC__]: Use a
statement expression so any line number info printed by assertion failures is
useful.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16589
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 14 Jul 2004 01:31:28 +0000 (01:31 +0000)]
* k5-thread.h (k5_key_t): Add a couple new values for GSSAPI ccache name manipulation
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16588
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 14 Jul 2004 00:15:23 +0000 (00:15 +0000)]
* k5-thread.h (k5_os_mutex_init, k5_os_mutex_destroy): If
USE_PTHREAD_LOCK_ONLY_IF_LOADED is defined, use pthread_mutex_init and _destroy
only if pthread support is loaded.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16587
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 12 Jul 2004 21:08:14 +0000 (21:08 +0000)]
* krb5-config.in: Substitute $(PTHREAD_CFLAGS)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16586
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 12 Jul 2004 01:41:27 +0000 (01:41 +0000)]
* shlib.conf (alpha*-dec-osf*): Use $(PTHREAD_CFLAGS) in CC_LINK_SHARED and
CC_LINK_STATIC.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16585
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 11 Jul 2004 20:17:45 +0000 (20:17 +0000)]
* aclocal.m4 (KRB5_AC_ENABLE_THREADS): Fix typo that caused some code to be
omitted.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16584
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 11 Jul 2004 17:28:15 +0000 (17:28 +0000)]
* configure.in: Use KRB5_AC_INET6
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16583
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 11 Jul 2004 08:00:33 +0000 (08:00 +0000)]
* configure.in: Use KRB5_AC_INET6
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16582
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 11 Jul 2004 07:44:24 +0000 (07:44 +0000)]
* klist.c: Include autoconf.h before network headers
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16581
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 11 Jul 2004 07:00:03 +0000 (07:00 +0000)]
* k5-thread.h (k5_os_mutex_lock, k5_os_mutex_unlock, k5_os_mutex_assert_locked,
k5_os_mutex_assert_unlocked) [USE_PTHREAD_LOCK_ONLY_IF_LOADED]: Fix typo in
accessing non-pthread versions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16580
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 11 Jul 2004 06:55:16 +0000 (06:55 +0000)]
* fake-addrinfo.h (in6addr_any): If we need to define a static copy, rename it
with a macro first.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16579
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 11 Jul 2004 06:53:32 +0000 (06:53 +0000)]
* configure.in: Check krb5_cv_inet6_with_dinet6 as well as krb5_cv_inet6 when
deciding whether to test for in6addr_any. If gcc is in use, suppress pedantic
warnings about "inline".
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16578
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 11 Jul 2004 06:05:24 +0000 (06:05 +0000)]
* aclocal.m4 (KRB5_AC_ENABLE_THREADS): Use PTHREAD_CFLAGS and PTHREAD_LIBS when
checking for pthread_mutexattr_setrobust_np availability with thread support
enabled.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16577
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 9 Jul 2004 23:50:35 +0000 (23:50 +0000)]
* aclocal.m4 (KRB5_AC_ENABLE_THREADS): Always include the thread library on
Tru64 UNIX.
(KRB5_AC_CHECK_INET6): If the first test fails, try adding -DINET6 and test
again; if it works, define INET6 for the build.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16576
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 9 Jul 2004 23:40:35 +0000 (23:40 +0000)]
* shlib.conf (alpha*-dec-osf*): Use $(PTHREAD_CFLAGS) in LDCOMBINE
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16575
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 9 Jul 2004 17:46:46 +0000 (17:46 +0000)]
* aclocal.m4 (KRB5_AC_ENABLE_THREADS): Don't test for pthread.h specifically
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16574
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 9 Jul 2004 17:45:33 +0000 (17:45 +0000)]
* k5-thread.h: Test HAVE_PTHREAD instead of HAVE_PTHREAD_H
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16573
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 9 Jul 2004 17:44:13 +0000 (17:44 +0000)]
* kdb_db2.c (krb5_db2_db_get_principal): Rename local variable "try"
to "trynum" because some systems (*cough*Tru64*cough*) turn on some
exception handling support when thread support is enabled.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16572
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Fri, 9 Jul 2004 14:32:34 +0000 (14:32 +0000)]
forgot the changelog
ticket: 2629
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16571
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Fri, 9 Jul 2004 14:31:02 +0000 (14:31 +0000)]
osconf.h:
< #if !!defined(_WIN32)
---
> #if !defined(_WIN32)
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16570
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 9 Jul 2004 14:18:13 +0000 (14:18 +0000)]
* win-mac.h (KRB5_USE_INET6, ENABLE_THREADS): Define
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16569
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 8 Jul 2004 20:58:31 +0000 (20:58 +0000)]
* aclocal.m4 (KRB5_AC_ENABLE_THREADS): Default to enabling support
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16568
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Thu, 8 Jul 2004 05:25:16 +0000 (05:25 +0000)]
* cc_mslsa.c: Fix thread safety
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16562
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Thu, 8 Jul 2004 05:00:57 +0000 (05:00 +0000)]
kfw-fixed.nsi: Add registry keys to allow KFW executables to access the
krb5.ini and other config files in the %WINDIR% directory
instead of the per-user WINDOWS directory created in the
user's profile
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16561
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 8 Jul 2004 04:24:03 +0000 (04:24 +0000)]
* Makefile.in (LOCALINCLUDES): Add $(srcdir)/.. to the list
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16560
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 7 Jul 2004 21:41:53 +0000 (21:41 +0000)]
* disp_status.c: Include gss_libinit.h.
(init_et): Variable deleted.
(krb5_gss_display_status): Don't use init_et; instead, call
gssint_initialize_library.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16558
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Wed, 7 Jul 2004 12:05:03 +0000 (12:05 +0000)]
2004-07-07 Jeffrey Altman <jaltman@mit.edu>
* cc_mslsa.c: When obtaining a TGT from the MSLSA, do not ignore the
cache when the requested enctype is the NULL enctype. This means to
accept any enctype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16554
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Wed, 7 Jul 2004 11:59:13 +0000 (11:59 +0000)]
* kfw-fixed.nsi: Microsoft did not place the AllowTGTSessionKey in
the same location within the registry on the XP client platform as
they did on the 2000 SP4 and 2003 Servers. Modify the installer to
set both locations.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16553
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 7 Jul 2004 06:17:28 +0000 (06:17 +0000)]
* k5-thread.h [! HAVE_PTHREAD_H]: Don't explicitly disable thread support when
pthread.h is missing.
(k5_os_mutex, K5_OS_MUTEX_PARTIAL_INITIALIZER, k5_os_mutex_finish_init,
k5_os_mutex_init, k5_os_mutex_destroy, k5_os_mutex_lock, k5_os_mutex_unlock,
k5_os_mutex_assert_unlocked, k5_os_mutex_assert_locked) [_WIN32]: Define
Windows versions; still not enabled by default.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16552
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 7 Jul 2004 01:34:08 +0000 (01:34 +0000)]
Make thread-specific data support build under Windows (but don't enable it yet)
* threads.c (struct tsd_block) [_WIN32]: Define.
(k5_setspecific) [_WIN32]: Don't fill in a 'next' field. Fix variable
reference for TSD key.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16551
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 7 Jul 2004 00:34:49 +0000 (00:34 +0000)]
* k5-thread.h: Use K5_THREAD_H for multiple inclusion protection.
(k5_debug_mutex_stats, k5_mutex_init_stats, k5_mutex_finish_init_stats,
K5_MUTEX_STATS_INIT): Add some dummy support for recording statistics on how
long mutexes are held, etc. Incomplete implementation started, but code not
enabled.
(k5_mutex_t): Add statistics field.
(K5_MUTEX_PARTIAL_INITIALIZER, k5_mutex_init_1, k5_mutex_init): Initialize it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16550
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 7 Jul 2004 00:30:08 +0000 (00:30 +0000)]
* configure.in: Check for getpwuid_r
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16549
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 7 Jul 2004 00:29:31 +0000 (00:29 +0000)]
* import_name.c (krb5_gss_import_name) [HAVE_GETPWUID_R]: Use getpwuid_r
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16548
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 6 Jul 2004 23:37:22 +0000 (23:37 +0000)]
* configure.in: Check for pthread_rwlock_init
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16547
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 6 Jul 2004 23:34:43 +0000 (23:34 +0000)]
* configure.in: Fix bug in last change that caused a variable to be used before set
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16546
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 4 Jul 2004 08:52:45 +0000 (08:52 +0000)]
* aclocal.m4 (AC_LIBRARY_NET): Look for res_nsearch.
* 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
Ken Raeburn [Sun, 4 Jul 2004 08:48:21 +0000 (08:48 +0000)]
* dnssrv.c (krb5int_make_srv_query_realm) [HAVE_RES_NSEARCH]: Use res_nsearch
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
Ken Raeburn [Sun, 4 Jul 2004 00:37:55 +0000 (00:37 +0000)]
* error_message.c (remove_error_table) [!ENABLE_THREADS && DEBUG_THREADS]: Update test for "initialized" field in mutex
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16540
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 2 Jul 2004 22:16:56 +0000 (22:16 +0000)]
* k5-thread.h: Restructured mutex code.
(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
Ken Raeburn [Fri, 2 Jul 2004 21:32:17 +0000 (21:32 +0000)]
* an_to_ln.c: Include string.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16538
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 1 Jul 2004 21:02:45 +0000 (21:02 +0000)]
* kinit.c (k5_kinit): Don't free addresses after calling
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
Ken Raeburn [Thu, 1 Jul 2004 19:39:39 +0000 (19:39 +0000)]
* configure.in: Test for 'inline' support.
* 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
Ken Raeburn [Thu, 1 Jul 2004 01:22:47 +0000 (01:22 +0000)]
* k5-thread.h (K5_MUTEX_DEBUG_INITIALIZER): Use current file and line.
(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
Ken Raeburn [Wed, 30 Jun 2004 23:24:42 +0000 (23:24 +0000)]
Thread-safety for file-based credentials caches
* 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
Ken Raeburn [Wed, 30 Jun 2004 21:21:56 +0000 (21:21 +0000)]
* k5-thread.h (k5_debug_assert_locked, k5_debug_assert_unlocked): New macros.
(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
Ken Raeburn [Wed, 30 Jun 2004 20:30:54 +0000 (20:30 +0000)]
* libkadm5clnt.exports: Export kadm5_get_admin_service_name
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16532
dc483132-0cff-0310-8789-
dd5450dbe970
Jeffrey Altman [Wed, 30 Jun 2004 05:00:25 +0000 (05:00 +0000)]
* cc_mslsa.c:
- 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
Ken Raeburn [Tue, 29 Jun 2004 13:15:20 +0000 (13:15 +0000)]
* cc_memory.c (krb5_mcc_free): Don't free the mutex here
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16527
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Mon, 28 Jun 2004 22:47:11 +0000 (22:47 +0000)]
Lots of signedness and argument-casting fixes. Some arithmetic
paranoia for seasoning.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16526
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 28 Jun 2004 19:02:51 +0000 (19:02 +0000)]
Missed some log data with last checkin:
* 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
Ken Raeburn [Mon, 28 Jun 2004 18:58:53 +0000 (18:58 +0000)]
* cc_memory.c: Include k5-thread.h.
(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
Tom Yu [Sat, 26 Jun 2004 19:08:46 +0000 (19:08 +0000)]
* ovsec_kadmd.c (log_badverf): Fix a missed rpc_u_int32
ticket: 2601
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16523
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 25 Jun 2004 23:23:36 +0000 (23:23 +0000)]
more namespace cleanup: remove uses of rpc_int32 and rpc_u_int32
ticket: 2601
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16522
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 25 Jun 2004 19:42:10 +0000 (19:42 +0000)]
* k5-platform.h (JOIN4, JOIN4_2, JOIN3, JOIN3_2): Unused macros deleted.
(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
Alexandra Ellwood [Fri, 25 Jun 2004 12:12:13 +0000 (12:12 +0000)]
gssapi_krb5.h is autogenerated in krb5-1.4 and later (don't pull up)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16520
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Fri, 25 Jun 2004 12:11:40 +0000 (12:11 +0000)]
Updated for krb5-1.4 file changes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16519
dc483132-0cff-0310-8789-
dd5450dbe970
Alexandra Ellwood [Fri, 25 Jun 2004 12:10:48 +0000 (12:10 +0000)]
gssapi_krb5.h is autogenerated in krb5-1.4 and later (don't pull up)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16518
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 25 Jun 2004 00:54:23 +0000 (00:54 +0000)]
* configure.in: Fix typo in setting krb5_cv_header_sys_param_h_maxhostnamelen
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16517
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 25 Jun 2004 00:07:18 +0000 (00:07 +0000)]
* kpasswd.c (P1, P2): Cosmetic fix for prompts to avoid
double colons.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16516
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 24 Jun 2004 23:15:55 +0000 (23:15 +0000)]
Use null pointer as service name to request host-based service name
ticket: 2613
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16515
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 24 Jun 2004 22:46:21 +0000 (22:46 +0000)]
update copyright, fix comment typo
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16514
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 24 Jun 2004 22:43:58 +0000 (22:43 +0000)]
* cc_file.c (krb5_fcc_read_data): Combine stdio and posix versions of code with
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
Ken Raeburn [Thu, 24 Jun 2004 22:31:45 +0000 (22:31 +0000)]
typo in last change
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16512
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 24 Jun 2004 22:30:16 +0000 (22:30 +0000)]
* threads.c: Reorganize code: One definition of each function, with
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
Tom Yu [Thu, 24 Jun 2004 20:10:05 +0000 (20:10 +0000)]
use host-based service name for kadmin client
* 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
Tom Yu [Thu, 24 Jun 2004 20:08:30 +0000 (20:08 +0000)]
* alt_prof.c (kadm5_get_admin_service_name): Fix call to
kadm5_get_config_params().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16509
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 24 Jun 2004 20:07:29 +0000 (20:07 +0000)]
* client_init.c (_kadm5_init_any)[DEBUG]: Print error from
clnttcp_create().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16508
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 22 Jun 2004 18:18:04 +0000 (18:18 +0000)]
* cc_file.c (my_fopen): Function deleted.
(krb5_fcc_open_file): Use fopen, not my_fopen.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16507
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 22 Jun 2004 18:14:15 +0000 (18:14 +0000)]
Delete preprocessor tests for macintosh, __MWERKS__, applec, and THINK_C, all
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
Jeffrey Altman [Tue, 22 Jun 2004 06:39:43 +0000 (06:39 +0000)]
cc_mslsa.c: Comment out calls to FormatMessage and do not terminate
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
Ken Raeburn [Mon, 21 Jun 2004 20:58:34 +0000 (20:58 +0000)]
* threads.c (key_lock): Change to a k5_mutex_t.
(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
Jeffrey Altman [Sat, 19 Jun 2004 04:40:58 +0000 (04:40 +0000)]
* cc_mslsa.c: Enforce acceptable enctypes by checking against
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
Tom Yu [Sat, 19 Jun 2004 02:11:58 +0000 (02:11 +0000)]
fix some 64-bit bugs in RPCSEC_GSS
* 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
Ken Raeburn [Sat, 19 Jun 2004 00:31:47 +0000 (00:31 +0000)]
ignore generated timestamp file autoconf.stmp
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16498
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 19 Jun 2004 00:30:55 +0000 (00:30 +0000)]
ignore generated file krb5support32.def
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16497
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 19 Jun 2004 00:30:11 +0000 (00:30 +0000)]
ignore generated file gssapi_krb5.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16496
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 19 Jun 2004 00:28:06 +0000 (00:28 +0000)]
* mpool/mpool.c (mpool_get, mpool_write): Check that the offset calculation
didn't overflow.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16495
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 19 Jun 2004 00:25:02 +0000 (00:25 +0000)]
* Makefile.in (SHLIB_EXPLIBS): Add $(LIBS)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16494
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 19 Jun 2004 00:21:48 +0000 (00:21 +0000)]
* aclocal.m4 (WITH_CC): Use -Wl,-search_paths_first for linking on Darwin.
(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