From: Danilo Almeida Date: Thu, 5 Aug 1999 20:36:27 +0000 (+0000) Subject: Document why krb5_win_ccdll_load is called way early in code. X-Git-Tag: krb5-1.1-beta1~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fb112355a2d57fffc76e66437083f9c6261acfd1;p=krb5.git 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 --- 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;