krb5_enctype_is_disabled is the same thing as krb5_enctype_valid, so

use the later since its older and the api doesn't really need another
entry point


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14487 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-01-08 20:43:50 +00:00
parent 2e28b3c16a
commit 2d1c1063ef
3 changed files with 90 additions and 11 deletions

View File

@@ -68,7 +68,7 @@ set_etypes (krb5_context context,
krb5_enctype e;
if(krb5_string_to_enctype(context, etypes_str[j], &e) != 0)
continue;
if (krb5_enctype_is_disabled(context, e))
if (krb5_enctype_valid(context, e) != 0)
continue;
etypes[k++] = e;
}
@@ -436,7 +436,7 @@ default_etypes(krb5_context context, krb5_enctype **etype)
int i, n = 0;
for (i = 0; i < sizeof(p)/sizeof(p[0]); i++) {
if (krb5_enctype_is_disabled(context, p[i]))
if (krb5_enctype_valid(context, p[i]) != 0)
continue;
ep = realloc(e, (n + 2) * sizeof(*e));
if (ep == NULL) {