From: Ken Raeburn Date: Thu, 27 Jan 2000 21:05:59 +0000 (+0000) Subject: * init_ctx.c (get_profile_etype_list): Discard DESONLY changes from 1999-09-01, X-Git-Tag: krb5-1.2-beta1~147 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1b25d6fee272f8961e37ff77062fd218acc69a7b;p=krb5.git * init_ctx.c (get_profile_etype_list): Discard DESONLY changes from 1999-09-01, and revert call sites. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11970 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 2ce212922..be1b18041 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2000-01-27 Ken Raeburn + + * init_ctx.c (get_profile_etype_list): Discard DESONLY changes + from 1999-09-01, and revert call sites. + 1999-12-02 Ken Raeburn * init_ctx.c (get_profile_etype_list): Report an error if no diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 6fa773f73..9159a3717 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -272,13 +272,12 @@ krb5_set_default_in_tkt_ktypes(context, ktypes) } static krb5_error_code -get_profile_etype_list(context, ktypes, profstr, ctx_count, ctx_list, desonly) +get_profile_etype_list(context, ktypes, profstr, ctx_count, ctx_list) krb5_context context; krb5_enctype **ktypes; char *profstr; int ctx_count; krb5_enctype FAR *ctx_list; - int desonly; { krb5_enctype *old_ktypes; @@ -336,21 +335,8 @@ get_profile_etype_list(context, ktypes, profstr, ctx_count, ctx_list, desonly) j = 0; i = 1; while (1) { - if (! krb5_string_to_enctype(sp, &old_ktypes[j])) { - switch (old_ktypes[j]) { - default: - if (desonly) - /* Other types not supported yet. */ - break; - /* else fall through */ - - case ENCTYPE_NULL: - case ENCTYPE_DES_CBC_CRC: - case ENCTYPE_DES_CBC_MD5: + if (! krb5_string_to_enctype(sp, &old_ktypes[j])) j++; - break; - } - } if (i++ >= count) break; @@ -381,7 +367,7 @@ krb5_get_default_in_tkt_ktypes(context, ktypes) { return(get_profile_etype_list(context, ktypes, "default_tkt_enctypes", context->in_tkt_ktype_count, - context->in_tkt_ktypes, 1)); + context->in_tkt_ktypes)); } krb5_error_code @@ -424,7 +410,7 @@ krb5_get_tgs_ktypes(context, princ, ktypes) { return(get_profile_etype_list(context, ktypes, "default_tgs_enctypes", context->tgs_ktype_count, - context->tgs_ktypes, 1)); + context->tgs_ktypes)); } krb5_error_code @@ -434,7 +420,7 @@ krb5_get_permitted_enctypes(context, ktypes) { return(get_profile_etype_list(context, ktypes, "permitted_enctypes", context->tgs_ktype_count, - context->tgs_ktypes, 0)); + context->tgs_ktypes)); } krb5_boolean