From: Ken Raeburn Date: Wed, 14 Jul 2004 01:45:12 +0000 (+0000) Subject: * gss_libinit.c (gssint_lib_init): Initialize new keytab-name mutex, and X-Git-Tag: krb5-1.4-beta1~215 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=60fa275402f76ae8fdce04f20b658d6e47a1fd4b;p=krb5.git * 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 --- diff --git a/src/lib/gssapi/ChangeLog b/src/lib/gssapi/ChangeLog index 1444166f3..37c40bc42 100644 --- a/src/lib/gssapi/ChangeLog +++ b/src/lib/gssapi/ChangeLog @@ -3,6 +3,9 @@ * Makefile.in (SHLIB_EXPDEPS): Use _DEPLIB variables. (SHLIB_EXPLIBS): Add $(SUPPORT_LIB). + * gss_libinit.c (gssint_lib_init): Initialize new keytab-name + mutex, and register two new key values. + 2004-06-18 Ken Raeburn * Makefile.in (OBJFILELIST, OBJFILEDEP) [DOS]: Depend on locally diff --git a/src/lib/gssapi/gss_libinit.c b/src/lib/gssapi/gss_libinit.c index 70301af73..a43989f0c 100644 --- a/src/lib/gssapi/gss_libinit.c +++ b/src/lib/gssapi/gss_libinit.c @@ -16,10 +16,20 @@ MAKE_FINI_FUNCTION(gssint_lib_fini); int gssint_lib_init(void) { + int err; #if !USE_BUNDLE_ERROR_STRINGS add_error_table(&et_k5g_error_table); add_error_table(&et_ggss_error_table); #endif + err = k5_mutex_finish_init(&gssint_krb5_keytab_lock); + if (err) + return err; + err = k5_key_register(K5_KEY_GSS_KRB5_SET_CCACHE_OLD_NAME, free); + if (err) + return err; + err = k5_key_register(K5_KEY_GSS_KRB5_CCACHE_NAME, free); + if (err) + return err; return k5_mutex_finish_init(&kg_vdb.mutex); }