summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2006-11-30 22:42:16 +0000
committerTom Yu <tlyu@mit.edu>2006-11-30 22:42:16 +0000
commit17d690492927ad2134f68ba317fb7f5a8a726b7f (patch)
tree8f87129c050611026568fa282d77c25965d8d941 /src/lib/gssapi
parentda53cb8872f6bd46d99e0a8742abf05e1e0e9f06 (diff)
downloadkrb5-17d690492927ad2134f68ba317fb7f5a8a726b7f.tar.gz
krb5-17d690492927ad2134f68ba317fb7f5a8a726b7f.tar.xz
krb5-17d690492927ad2134f68ba317fb7f5a8a726b7f.zip
* src/lib/krb5/krb/vfy_increds.c (krb5_verify_init_creds): Use
krb5_cc_new_unique(). * src/lib/gssapi/krb5/accept_sec_context.c: (rd_and_store_for_creds): Use krb5_cc_new_unique(). ticket: 4805 tags: pullup component: krb5-libs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18887 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi')
-rw-r--r--src/lib/gssapi/krb5/accept_sec_context.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/lib/gssapi/krb5/accept_sec_context.c b/src/lib/gssapi/krb5/accept_sec_context.c
index 618b012f98..7dcdd1a51a 100644
--- a/src/lib/gssapi/krb5/accept_sec_context.c
+++ b/src/lib/gssapi/krb5/accept_sec_context.c
@@ -93,7 +93,6 @@ rd_and_store_for_creds(context, auth_context, inbuf, out_cred)
{
krb5_creds ** creds = NULL;
krb5_error_code retval;
- krb5_ccache template_ccache = NULL;
krb5_ccache ccache = NULL;
krb5_gss_cred_id_t cred = NULL;
krb5_auth_context new_auth_ctx = NULL;
@@ -134,18 +133,11 @@ rd_and_store_for_creds(context, auth_context, inbuf, out_cred)
goto cleanup;
}
- /* Lots of kludging going on here... Some day the ccache interface
- will be rewritten though */
-
- if ((retval = krb5_cc_resolve(context, "MEMORY:GSSAPI", &template_ccache)))
- goto cleanup;
-
- ccache = template_ccache; /* krb5_cc_gen_new will replace so make a copy */
- if ((retval = krb5_cc_gen_new(context, &ccache))) {
+ if ((retval = krb5_cc_new_unique(context, "MEMORY", NULL, &ccache))) {
ccache = NULL;
goto cleanup;
}
-
+
if ((retval = krb5_cc_initialize(context, ccache, creds[0]->client)))
goto cleanup;
@@ -200,9 +192,6 @@ cleanup:
if (creds)
krb5_free_tgt_creds(context, creds);
- if (template_ccache)
- (void)krb5_cc_close(context, template_ccache);
-
if (ccache)
(void)krb5_cc_destroy(context, ccache);