From 54678b91930b9bb8e6345b14b81c7782f28faf0b Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 10 Feb 1995 19:39:18 +0000 Subject: [PATCH] krb5_use_keytype() was being called when the argument was a encryption type. Change use to krb5_use_cstype(). Actually, any use of krb5_use_keytype() is a bug by definition. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4935 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/ChangeLog | 7 +++++++ src/kdc/do_tgs_req.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index c69c7d07e..c9d2e00e7 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,10 @@ +Fri Feb 10 14:35:42 1995 Theodore Y. Ts'o + + * do_tgs_req.c (process_tgs_req): krb5_use_keytype() was being + called when the argument was a encryption type. Change + use to krb5_use_cstype(). Actually, any use of + krb5_use_keytype() is a bug by definition. + Wed Feb 01 21:07:03 1995 Chris Provenzano (proven@mit.edu) * kdc_util.c (kdc_rdreq_keyproc()) Add krb5_keytype() arg. diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c index 54e6c368e..489a30677 100644 --- a/src/kdc/do_tgs_req.c +++ b/src/kdc/do_tgs_req.c @@ -238,7 +238,7 @@ tgt_again: goto cleanup; } useetype = request->etype[i]; - krb5_use_keytype(kdc_context, &eblock, useetype); + krb5_use_cstype(kdc_context, &eblock, useetype); retval = krb5_random_key(kdc_context, &eblock, krb5_csarray[useetype]->random_sequence, &session_key); -- 2.26.2