(_kadm5_set_keys_randomly): set enctypes correctly in the copied keys

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7299 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-11-04 01:55:50 +00:00
parent e0bbe59f41
commit 11c284c11e

View File

@@ -260,11 +260,13 @@ _kadm5_set_keys_randomly (kadm5_server_context *context,
&keys[i]);
if (ret)
goto out;
keys[i].keytype = des_types[i];
ret = krb5_copy_keyblock_contents (context->context,
&keys[0],
&hkeys[i].key);
if (ret)
goto out;
hkeys[i].key.keytype = des_types[i];
}
ret = krb5_generate_random_keyblock (context->context,