Make authcontext->keyblock a pointer.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3916 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-11-11 01:51:35 +00:00
parent b0f33bd5de
commit fb0f4ca9c3
8 changed files with 19 additions and 20 deletions

View File

@@ -66,21 +66,20 @@ krb5_mk_req_extended(krb5_context context,
if(r)
return r;
free_EncryptionKey (&ac->key);
copy_EncryptionKey (&in_creds->session,
&ac->key);
krb5_free_keyblock(context, ac->keyblock);
krb5_copy_keyblock(context, &in_creds->session, &ac->keyblock);
if (ac->cksumtype)
cksumtype = ac->cksumtype;
else
krb5_keytype_to_cksumtype (context, ac->key.keytype, &cksumtype);
krb5_keytype_to_cksumtype (context, ac->keyblock->keytype, &cksumtype);
if (in_data) {
r = krb5_create_checksum (context,
cksumtype,
in_data->data,
in_data->length,
&ac->key,
ac->keyblock,
&c);
c_opt = &c;
} else {