Pass keytype to string_to_key

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3535 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-09-22 18:38:36 +00:00
parent a888c4e3ac
commit c4125f8ac4
2 changed files with 5 additions and 3 deletions

View File

@@ -62,7 +62,8 @@ set_keys(hdb_entry *ent, char *password)
memset(&salt, 0, sizeof(salt));
krb5_get_salt(ent->principal, &salt);
for(i = 0; i < ent->keys.len; i++) {
krb5_string_to_key(password, &salt, &ent->keys.val[i].key); /* XXX */
krb5_string_to_key(password, &salt, ent->keys.val[i].key.keytype,
&ent->keys.val[i].key); /* XXX */
seal_key(&ent->keys.val[i]);
}
krb5_data_free(&salt);