From 4bdc982dc6b41bde917bfa35129bf9ca5edba071 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 16 Nov 1997 06:24:48 +0000 Subject: [PATCH] (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 --- lib/krb5/build_auth.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/krb5/build_auth.c b/lib/krb5/build_auth.c index f94a9d1bd..8357fc9c8 100644 --- a/lib/krb5/build_auth.c +++ b/lib/krb5/build_auth.c @@ -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)