(krb5_build_authenticator): enctype as a parameter instead of guessing

it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4013 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-11-16 06:24:48 +00:00
parent 718de3288f
commit 4bdc982dc6

View File

@@ -43,6 +43,7 @@ RCSID("$Id$");
krb5_error_code
krb5_build_authenticator (krb5_context context,
krb5_auth_context auth_context,
krb5_enctype enctype,
krb5_creds *cred,
Checksum *cksum,
Authenticator **auth_result,
@@ -52,17 +53,6 @@ krb5_build_authenticator (krb5_context context,
unsigned char buf[1024];
size_t len;
krb5_error_code ret;
krb5_enctype enctype;
if (auth_context->enctype)
enctype = auth_context->enctype;
else {
ret = krb5_keytype_to_etype(context,
cred->session.keytype,
&enctype);
if (ret)
return ret;
}
auth = malloc(sizeof(*auth));
if (auth == NULL)