Use the published interface to call krb5_string_to_key()
authorTheodore Tso <tytso@mit.edu>
Tue, 8 Nov 1994 22:54:25 +0000 (22:54 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 8 Nov 1994 22:54:25 +0000 (22:54 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4648 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/hammer/ChangeLog
src/tests/hammer/kdc5_hammer.c

index 5b4e86ebab7a559e8f521122ffeafff5dda46869..be5d863b1e6e2e62be8542c36b2d2013e1b3c82c 100644 (file)
@@ -1,3 +1,8 @@
+Tue Nov  8 17:53:40 1994  Theodore Y. Ts'o  (tytso@dcl)
+
+       * kdc5_hammer.c (get_server_key): Use the published interface to
+               call krb5_string_to_key().
+
 Sun Oct 23 01:44:37 1994    (tytso@rsx-11)
 
        * kdc5_hammer.c (main): Allow kdc_hammer to be called on an
index 2dbd7fd02917b3aa10979c0e6289fab4091f067d..0fcf4d0991f5b7fc8df7c69652213f5ab2c5065b 100644 (file)
@@ -263,6 +263,7 @@ OLDDECLARG(krb5_kvno,vno)
 OLDDECLARG(krb5_keyblock **,key)
 #include <krb5/narrow.h>
 {
+  krb5_encrypt_block eblock;
   krb5_data pwd, salt;
   char *princ_str, *at;
   krb5_error_code code;
@@ -294,11 +295,9 @@ OLDDECLARG(krb5_keyblock **,key)
     com_err(prog, code, "while allocating key for server %s", princ_str);
     goto errout;
   }    
-  if (code = (*krb5_keytype_array[keytype]->system->
-               string_to_key)(keytype,
-                              *key,
-                              &pwd,
-                              &salt))
+  krb5_use_keytype(&eblock, keytype);
+  code = krb5_string_to_key(&eblock, keytype, *key, &pwd, &salt);
+  if (code)
     goto errout;
 
 out: