diff options
author | Theodore Tso <tytso@mit.edu> | 1994-11-08 03:13:58 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1994-11-08 03:13:58 +0000 |
commit | 9f7761b49a2fbfe0d633d1bec14789e2834609c4 (patch) | |
tree | c2b8a4241ba75a65d711268cf661b0aef198cda5 /src/kdc | |
parent | e9f3b506a40b94b0e114f5e5a4fa98c90be949bc (diff) | |
download | krb5-9f7761b49a2fbfe0d633d1bec14789e2834609c4.tar.gz krb5-9f7761b49a2fbfe0d633d1bec14789e2834609c4.tar.xz krb5-9f7761b49a2fbfe0d633d1bec14789e2834609c4.zip |
Use published interface to call krb5_random_key()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4633 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kdc')
-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); |