* gss_libinit.c (gssint_lib_init): Initialize new keytab-name mutex, and
authorKen Raeburn <raeburn@mit.edu>
Wed, 14 Jul 2004 01:45:12 +0000 (01:45 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 14 Jul 2004 01:45:12 +0000 (01:45 +0000)
register two new key values.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16592 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/ChangeLog
src/lib/gssapi/gss_libinit.c

index 1444166f320516420a6c9d1651ff0adbeb263d97..37c40bc420ceeda0ade2df935b515fd55d999b0b 100644 (file)
@@ -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  <raeburn@mit.edu>
 
        * Makefile.in (OBJFILELIST, OBJFILEDEP) [DOS]: Depend on locally
index 70301af73fceab040d43348cf0caa6364af54e80..a43989f0cba0822eb9be5666888eff909a5f44ef 100644 (file)
@@ -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);
 }