From 586312d142a5d4f92f97ef6b18e6a15bf6b7b02f Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 6 Apr 1990 16:13:40 +0000 Subject: [PATCH] use krb5_keytype_array[] instead of fiction git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@478 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/rd_req_dec.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/lib/krb5/krb/rd_req_dec.c b/src/lib/krb5/krb/rd_req_dec.c index c11042db3..330f49c58 100644 --- a/src/lib/krb5/krb/rd_req_dec.c +++ b/src/lib/krb5/krb/rd_req_dec.c @@ -180,19 +180,16 @@ krb5_authenticator **authpp; krb5_error_code retval; krb5_encrypt_block eblock; krb5_data scratch; - krb5_enctype etype; krb5_keyblock *sesskey; sesskey = request->ticket->enc_part2->session; - etype = keytype_to_etype(sesskey->keytype); - - if (!valid_etype(etype)) - return KRB5_PROG_ETYPE_NOSUPP; + if (!valid_keytype(sesskey->keytype)) + return KRB5_PROG_KEYTYPE_NOSUPP; /* put together an eblock for this encryption */ - eblock.crypto_entry = krb5_csarray[etype]->system; + eblock.crypto_entry = krb5_keytype_array[sesskey->keytype]->system; scratch.length = request->authenticator.length; if (!(scratch.data = malloc(scratch.length))) -- 2.26.2