aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanilo Almeida <dalmeida@mit.edu>1999-08-05 20:36:27 +0000
committerDanilo Almeida <dalmeida@mit.edu>1999-08-05 20:36:27 +0000
commitfb112355a2d57fffc76e66437083f9c6261acfd1 (patch)
treec569bb31dd4518c8c8640a35fc589ed3e04a0c11
parent74cab5052fd1b9ac4b053e0f1281572465c2bbf8 (diff)
downloadkrb5-fb112355a2d57fffc76e66437083f9c6261acfd1.zip
krb5-fb112355a2d57fffc76e66437083f9c6261acfd1.tar.gz
krb5-fb112355a2d57fffc76e66437083f9c6261acfd1.tar.bz2
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
-rw-r--r--src/lib/krb5/krb/ChangeLog7
-rw-r--r--src/lib/krb5/krb/init_ctx.c10
2 files changed, 14 insertions, 3 deletions
diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog
index f2cac0a..3377f5f 100644
--- a/src/lib/krb5/krb/ChangeLog
+++ b/src/lib/krb5/krb/ChangeLog
@@ -1,5 +1,12 @@
1999-08-05 Danilo Almeida <dalmeida@mit.edu>
+ * 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 <dalmeida@mit.edu>
+
* init_ctx.c (get_profile_etype_list): Use profile_release_string
to free string allocated by profile_get_string.
(krb5_init_context): Use a real context for krb5_win_ccdll_load.
diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c
index 10ba78e..2ddd2d0 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;