From 9f7761b49a2fbfe0d633d1bec14789e2834609c4 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 8 Nov 1994 03:13:58 +0000 Subject: [PATCH] Use published interface to call krb5_random_key() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4633 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/ChangeLog | 5 +++++ src/kdc/do_as_req.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index c9564d247..4915b5e52 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,8 @@ +Fri Nov 4 17:47:46 1994 Theodore Y. Ts'o (tytso@dcl) + + * do_as_req.c (process_as_req): Use published interface to call + krb5_random_key(). + Fri Oct 14 00:31:14 1994 Theodore Y. Ts'o (tytso@dcl) * main.c (process_args): Select the cryptosystem to be used using diff --git a/src/kdc/do_as_req.c b/src/kdc/do_as_req.c index 138bdcebf..62e260915 100644 --- a/src/kdc/do_as_req.c +++ b/src/kdc/do_as_req.c @@ -134,6 +134,7 @@ krb5_data **response; /* filled in with a response packet */ krb5_data salt_data; static krb5_principal cpw = 0; char *status; + krb5_encrypt_block eblock; register int i; @@ -248,8 +249,11 @@ krb5_data **response; /* filled in with a response packet */ goto errout; } useetype = request->etype[i]; - - if (retval = (*(krb5_csarray[useetype]->system->random_key))(krb5_csarray[useetype]->random_sequence, &session_key)) { + krb5_use_cstype(&eblock, useetype); + + if (retval = krb5_random_key(eblock, + krb5_csarray[useetype]->random_sequence, + &session_key)) { /* random key failed */ syslog(LOG_INFO, "AS_REQ: RANDOM KEY FAILED: host %s, %s for %s", fromstring, cname, sname); -- 2.26.2