+2000-4-13 Alexandra Ellwood <lxs@mit.edu>
+
+ * init_os_ctx.c: Added support to store a krb5_principal in the os_context
+ along with the default ccache name (if known, this principal is the same
+ as the last time we looked at the ccache.
+
2000-03-20 Miro Jurisic <meeroh@mit.edu>
* def_realm.c (krb5_free_default_realm): Added, use to free
os_ctx->usec_offset = 0;
os_ctx->os_flags = 0;
os_ctx->default_ccname = 0;
-
+ os_ctx->default_ccprincipal = 0;
+
krb5_cc_set_default_name(ctx, NULL);
retval = os_init_paths(ctx);
if (!os_ctx)
return;
- if (os_ctx->default_ccname) {
+ if (os_ctx->default_ccname) {
free(os_ctx->default_ccname);
- os_ctx->default_ccname = 0;
- }
+ os_ctx->default_ccname = 0;
+ }
+
+ if (os_ctx->default_ccprincipal) {
+ krb5_free_principal (ctx, os_ctx->default_ccprincipal);
+ os_ctx->default_ccprincipal = 0;
+ }
os_ctx->magic = 0;
free(os_ctx);
ctx->os_context = 0;
- if (ctx->profile) {
- profile_release(ctx->profile);
- ctx->profile = 0;
- }
+ if (ctx->profile) {
+ profile_release(ctx->profile);
+ ctx->profile = 0;
+ }
}