+Thu Feb 1 15:47:25 1996 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * 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 <hartmans@tertius.mit.edu>
* mcc_retrv.c (ktype_reasonable): Rename ktype_match
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:
(! 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))
)
{
+Thu Feb 1 15:50:29 1996 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * scc_retrv.c (krb5_scc_retrieve): Accept any enctype unless doing a specific match.
+
Thu Jan 25 14:44:48 1996 Sam Hartman <hartmans@tertius.mit.edu>
* scc_retrv.c (ktype_reasonable): Rename ktype_match; see fcc for explanation.
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:
(! 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))
)
{