Use published interface to call krb5_random_key()
authorTheodore Tso <tytso@mit.edu>
Tue, 8 Nov 1994 03:13:58 +0000 (03:13 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 8 Nov 1994 03:13:58 +0000 (03:13 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4633 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/do_as_req.c

index c9564d2475100347fd1b5e9eece21a44452a0662..4915b5e529783bf44de7bb7255199d8b7de7a0fe 100644 (file)
@@ -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
index 138bdcebf11fed665a69eab9defe327635077add..62e260915957895a78b388fbd0ec24da5ae726e0 100644 (file)
@@ -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);