+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
OLDDECLARG(krb5_keyblock **,key)
#include <krb5/narrow.h>
{
+ krb5_encrypt_block eblock;
krb5_data pwd, salt;
char *princ_str, *at;
krb5_error_code code;
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: