(valid_etype): remove
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3944 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -93,19 +93,6 @@ krb5_free_context(krb5_context context)
|
|||||||
free(context);
|
free(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* XXX - This information needs to be coordinated with encrypt.c
|
|
||||||
*/
|
|
||||||
|
|
||||||
static krb5_boolean
|
|
||||||
valid_etype(krb5_context context, krb5_enctype e)
|
|
||||||
{
|
|
||||||
krb5_keytype thrash;
|
|
||||||
|
|
||||||
return e != ETYPE_NULL
|
|
||||||
&& krb5_etype_to_keytype(context, e, &thrash) == 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static krb5_error_code
|
static krb5_error_code
|
||||||
default_etypes(krb5_enctype **etype)
|
default_etypes(krb5_enctype **etype)
|
||||||
{
|
{
|
||||||
@@ -134,7 +121,7 @@ krb5_set_default_in_tkt_etypes(krb5_context context,
|
|||||||
if(etypes) {
|
if(etypes) {
|
||||||
i = 0;
|
i = 0;
|
||||||
while(etypes[i])
|
while(etypes[i])
|
||||||
if(!valid_etype(context, etypes[i++]))
|
if(!krb5_etype_valid(context, etypes[i++]))
|
||||||
return KRB5_PROG_ETYPE_NOSUPP;
|
return KRB5_PROG_ETYPE_NOSUPP;
|
||||||
++i;
|
++i;
|
||||||
ALLOC(p, i);
|
ALLOC(p, i);
|
||||||
|
Reference in New Issue
Block a user