winccld.c (krb5_win_ccdll_load): Register the FILE ccache type if we
authorTheodore Tso <tytso@mit.edu>
Thu, 13 May 1999 22:03:48 +0000 (22:03 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 13 May 1999 22:03:48 +0000 (22:03 +0000)
are using ccapi, so that we make sure the FILE ccache type will work
if the user specifies it in an environment variable.

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

src/lib/krb5/ccache/ccapi/ChangeLog
src/lib/krb5/ccache/ccapi/winccld.c

index 1e152d98bcd8f81b0416cc15875b5f59a0503cf7..ff4afb173c3c275a196e2def552ed3d675d731ba 100644 (file)
@@ -1,3 +1,10 @@
+Thu May 13 18:01:58 1999  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * winccld.c (krb5_win_ccdll_load): Register the FILE ccache type
+               if we are using ccapi, so that we make sure the FILE
+               ccache type will work if the user specifies it in an
+               environment variable.
+
 Mon May 10 15:24:36 1999  Danilo Almeida  <dalmeida@mit.edu>
 
        * Makefile.in: Do win32 build in subdir.
index 5b9789611846279a6421da46229286e6290da0d9..2792ceeda4f01f25c6791c40afe523620273d9dd 100644 (file)
@@ -8,6 +8,9 @@
 #include <stdio.h>
 #include "stdcc.h"
 
+/* from fcc-proto.h */
+KRB5_DLLIMP extern krb5_cc_ops krb5_fcc_ops;
+
 #define KRB5_WINCCLD_C_
 #include "winccld.h"
 
@@ -70,8 +73,10 @@ static int LoadFuncs(const char* dll_name, FUNC_INFO fi[],
     return LF_OK;
 }
 
-void krb5_win_ccdll_load()
+void krb5_win_ccdll_load(context)
+       krb5_context    context;
 {
+       krb5_cc_register(context, &krb5_fcc_ops, 0);
        if (krb5_win_ccdll_loaded)
                return;
        if (LoadFuncs(KRBCC_DLL, krbcc_fi, 0, 0))