diff options
-rw-r--r-- | src/kdc/ChangeLog | 5 | ||||
-rw-r--r-- | 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 c9564d2475..4915b5e529 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 138bdcebf1..62e2609159 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); |