(_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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user