From 1aa7bb2d38db8adb81d3943fb5da887be25ad193 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 13 May 1999 22:03:48 +0000 Subject: [PATCH] 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11441 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/ccapi/ChangeLog | 7 +++++++ src/lib/krb5/ccache/ccapi/winccld.c | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/ccache/ccapi/ChangeLog b/src/lib/krb5/ccache/ccapi/ChangeLog index 1e152d98b..ff4afb173 100644 --- a/src/lib/krb5/ccache/ccapi/ChangeLog +++ b/src/lib/krb5/ccache/ccapi/ChangeLog @@ -1,3 +1,10 @@ +Thu May 13 18:01:58 1999 Theodore Y. Ts'o + + * 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 * Makefile.in: Do win32 build in subdir. diff --git a/src/lib/krb5/ccache/ccapi/winccld.c b/src/lib/krb5/ccache/ccapi/winccld.c index 5b9789611..2792ceeda 100644 --- a/src/lib/krb5/ccache/ccapi/winccld.c +++ b/src/lib/krb5/ccache/ccapi/winccld.c @@ -8,6 +8,9 @@ #include #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)) -- 2.26.2