From: Sam Hartman Date: Thu, 1 Feb 1996 22:01:13 +0000 (+0000) Subject: Remove check to make sure ticket enctype X-Git-Tag: krb5-1.0-beta6~534 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=88e2cb936470abacee1c70fd52b34ccaa7180855;p=krb5.git Remove check to make sure ticket enctype is in the tgs enctypes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7431 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/memory/ChangeLog b/src/lib/krb5/ccache/memory/ChangeLog index 2064c8c39..7ea831a2a 100644 --- a/src/lib/krb5/ccache/memory/ChangeLog +++ b/src/lib/krb5/ccache/memory/ChangeLog @@ -1,3 +1,8 @@ +Thu Feb 1 15:47:25 1996 Sam Hartman + + * mcc_retrv.c (ktype_reasonable): removed. + (krb5_mcc_retrieve): Accept any enctype unless matching spefic enctype match. + Thu Jan 25 14:50:51 1996 Sam Hartman * mcc_retrv.c (ktype_reasonable): Rename ktype_match diff --git a/src/lib/krb5/ccache/memory/mcc_retrv.c b/src/lib/krb5/ccache/memory/mcc_retrv.c index 9280c73b7..582157904 100644 --- a/src/lib/krb5/ccache/memory/mcc_retrv.c +++ b/src/lib/krb5/ccache/memory/mcc_retrv.c @@ -64,29 +64,7 @@ register const krb5_data *data1, *data2; return memcmp(data1->data, data2->data, data1->length) ? FALSE : TRUE; } -static krb5_boolean -ktype_reasonable(context, creds) - register krb5_context context; - register krb5_creds *creds; -{ - register int i; - krb5_enctype * ktypes = (krb5_enctype *) NULL; - krb5_enctype enctype = creds->keyblock.enctype; - krb5_principal princ = creds->server; - - if (krb5_get_tgs_ktypes(context, princ, &ktypes)) - return FALSE; - for (i=0; ktypes[i]; i++) { - if (ktypes[i] == enctype) { - free(ktypes); - return TRUE; - } - } - - free(ktypes); - return FALSE; -} /* * Effects: @@ -153,8 +131,7 @@ krb5_mcc_retrieve(context, id, whichfields, mcreds, creds) (! set(KRB5_TC_MATCH_2ND_TKT) || data_match (&mcreds->second_ticket, &fetchcreds.second_ticket)) && - ((! set(KRB5_TC_MATCH_KTYPE) && - ktype_reasonable (context, &fetchcreds))|| + ((! set(KRB5_TC_MATCH_KTYPE))|| (mcreds->keyblock.enctype == fetchcreds.keyblock.enctype)) ) { diff --git a/src/lib/krb5/ccache/stdio/ChangeLog b/src/lib/krb5/ccache/stdio/ChangeLog index 1b3e55b97..072fe2b24 100644 --- a/src/lib/krb5/ccache/stdio/ChangeLog +++ b/src/lib/krb5/ccache/stdio/ChangeLog @@ -1,3 +1,7 @@ +Thu Feb 1 15:50:29 1996 Sam Hartman + + * scc_retrv.c (krb5_scc_retrieve): Accept any enctype unless doing a specific match. + Thu Jan 25 14:44:48 1996 Sam Hartman * scc_retrv.c (ktype_reasonable): Rename ktype_match; see fcc for explanation. diff --git a/src/lib/krb5/ccache/stdio/scc_retrv.c b/src/lib/krb5/ccache/stdio/scc_retrv.c index 0c905d7c9..9b91a685e 100644 --- a/src/lib/krb5/ccache/stdio/scc_retrv.c +++ b/src/lib/krb5/ccache/stdio/scc_retrv.c @@ -134,29 +134,6 @@ register const krb5_data *data1, *data2; return memcmp(data1->data, data2->data, data1->length) ? FALSE : TRUE; } -static krb5_boolean -ktype_reasonable(context, creds) - register krb5_context context; - register krb5_creds *creds; -{ - register int i; - krb5_enctype * ktypes = (krb5_enctype *) NULL; - krb5_enctype enctype = creds->keyblock.enctype; - krb5_principal princ = creds->server; - - if (krb5_get_tgs_ktypes(context, princ, &ktypes)) - return FALSE; - - for (i=0; ktypes[i]; i++) { - if (ktypes[i] == enctype) { - free(ktypes); - return TRUE; - } - } - - free(ktypes); - return FALSE; -} /* * Effects: @@ -223,8 +200,7 @@ krb5_scc_retrieve(context, id, whichfields, mcreds, creds) (! set(KRB5_TC_MATCH_2ND_TKT) || data_match (&mcreds->second_ticket, &fetchcreds.second_ticket)) && - ((! set(KRB5_TC_MATCH_KTYPE)&& - ktype_reasonable (context, &fetchcreds))|| + ((! set(KRB5_TC_MATCH_KTYPE))|| (mcreds->keyblock.enctype == fetchcreds.keyblock.enctype)) ) {