(krb5_build_authenticator): use krb5_{free,copy}_keyblock instead of

the _contents versions


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4183 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-12-11 06:34:57 +00:00
parent d1b888c879
commit 01b88fdcf4

View File

@@ -70,9 +70,9 @@ krb5_build_authenticator (krb5_context context,
auth->cusec = usec;
}
krb5_generate_subkey (context, &cred->session, &auth->subkey);
krb5_free_keyblock_contents(context, auth_context->local_subkey);
krb5_copy_keyblock_contents(context, auth->subkey,
auth_context->local_subkey);
krb5_free_keyblock(context, auth_context->local_subkey);
krb5_copy_keyblock(context, auth->subkey,
&auth_context->local_subkey);
if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_SEQUENCE) {
krb5_generate_seq_number (context,