+Tue Nov 8 17:09:48 1994 Theodore Y. Ts'o (tytso@dcl)
+
+ * in_tkt_pwd.c (pwd_keyproc): Use the documented interface for
+ calling krb5_string_to_key().
+
Tue Oct 25 23:34:57 1994 Theodore Y. Ts'o (tytso@dcl)
* srv_rcache.c (krb5_get_server_rcache): Added missing continue so
{
krb5_data salt;
krb5_error_code retval;
+ krb5_encrypt_block eblock;
const struct pwd_keyproc_arg *arg;
struct pwd_keyproc_arg arg2;
char pwdbuf[BUFSIZ];
if (!valid_keytype(type))
return KRB5_PROG_KEYTYPE_NOSUPP;
+ krb5_use_keytype(&eblock, type);
+
if (padata) {
krb5_pa_data **ptr;
if (!*key) {
if (f_salt) krb5_xfree(salt.data);
return ENOMEM;
- }
- if (retval = (*krb5_keytype_array[type]->system->
- string_to_key)(type,
- *key,
- &arg->password,
- &salt)) {
+ }
+ retval = krb5_string_to_key(&eblock, type, *key, &arg->password, &salt);
+ if (retval) {
krb5_xfree(*key);
if (f_salt) krb5_xfree(salt.data);
return(retval);