+Thu Nov 09 17:05:57 1995 Chris Provenzano (proven@mit.edu)
+
+ * fetch_mkey.c, kdb_cpw.c, t_kdb.c :
+ Remove krb5_enctype from krb5_string_to_key() args.
+
Tue Nov 7 16:35:03 1995 Theodore Y. Ts'o <tytso@dcl>
* kdb_xdr.c (krb5_dbe_search_enctype): Make a more general version
if ((retval = krb5_read_password(context, krb5_mkey_pwd_prompt1,
twice ? krb5_mkey_pwd_prompt2 : 0,
- password,
- &size)))
+ password, &size)))
return(retval);
pwd.data = password;
if (retval)
return retval;
}
- retval = krb5_string_to_key(context, eblock, key->enctype, key, &pwd,
+ retval = krb5_string_to_key(context, eblock, key, &pwd,
salt ? salt : &scratch);
if (!salt)
krb5_xfree(scratch.data);
pwd.data = passwd;
pwd.length = strlen(passwd);
- if (retval = krb5_string_to_key(context, &key_eblock,
- ks_tuple[i].ks_enctype,
- &key, &pwd, &key_salt.data))
+ if (retval = krb5_string_to_key(context, &key_eblock, &key, &pwd,
+ &key_salt.data))
return(retval);
if (retval = krb5_dbekd_encrypt_key_data(context, master_eblock, &key,
master_keyblock.enctype = DEFAULT_KDC_ENCTYPE;
passwd.length = strlen(master_passwd);
passwd.data = master_passwd;
- if (kret = krb5_string_to_key(kcontext,
- &master_encblock,
- master_keyblock.enctype,
- &master_keyblock,
- &passwd,
- &salt_data))
+ if (kret = krb5_string_to_key(kcontext, &master_encblock, &master_keyblock,
+ &passwd, &salt_data))
goto goodbye;
/* Clean up */
free(salt_data.data);