From fb112355a2d57fffc76e66437083f9c6261acfd1 Mon Sep 17 00:00:00 2001 From: Danilo Almeida Date: Thu, 5 Aug 1999 20:36:27 +0000 Subject: [PATCH] Document why krb5_win_ccdll_load is called way early in code. (It is because we need to have the ccapi stuff loaded before trying to get the OS-specific context initialization where we figure out default cache names and such.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11625 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 7 +++++++ src/lib/krb5/krb/init_ctx.c | 10 +++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index f2cac0a2a..3377f5fe2 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,10 @@ +1999-08-05 Danilo Almeida + + * init_ctx.c (krb5_init_context): Document why krb5_win_ccdll_load + is called way early in code. (It is because we need to have the + ccapi stuff loaded before trying to get the OS-specific context + initialization where we figure out default cache names and such.) + 1999-08-05 Danilo Almeida * init_ctx.c (get_profile_etype_list): Use profile_release_string diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 10ba78e8f..2ddd2d0c5 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -72,6 +72,13 @@ krb5_init_context(context) krb5_init_ets(ctx); #if (defined(_MSDOS) || defined(_WIN32)) + /* + * Load the krbcc32.dll if necessary. We do this here so that + * we know to use API: later on during initialization. + * The context being NULL is ok. + */ + krb5_win_ccdll_load(ctx); + /* * krb5_vercheck() is defined in win_glue.c, and this is * where we handle the timebomb and version server checks. @@ -168,9 +175,6 @@ krb5_init_context(context) ctx->fcc_default_format = tmp + 0x0500; ctx->scc_default_format = tmp + 0x0500; -#if (defined(_MSDOS) || defined(_WIN32)) - krb5_win_ccdll_load(ctx); /* Load the krbcc32.dll if necessary */ -#endif *context = ctx; return 0; -- 2.26.2