Use krb5_auth_con_getkey.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3919 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-11-11 02:02:34 +00:00
parent b7b3289d29
commit 74dc9c65d3
2 changed files with 20 additions and 10 deletions

View File

@@ -168,11 +168,16 @@ init_auth
goto failure;
}
(*context_handle)->auth_context->key.keytype = cred->session.keytype;
krb5_data_copy (&(*context_handle)->auth_context->key.keyvalue,
cred->session.keyvalue.data,
cred->session.keyvalue.length);
{
/* XXX ugly */
krb5_keyblock *c;
krb5_auth_con_getkey(gssapi_krb5_context,
(*context_handle)->auth_context,
&c);
cred->session = *c;
free(c);
}
kret = gssapi_krb5_create_8003_checksum (input_chan_bindings,
flags,
&cksum);

View File

@@ -168,11 +168,16 @@ init_auth
goto failure;
}
(*context_handle)->auth_context->key.keytype = cred->session.keytype;
krb5_data_copy (&(*context_handle)->auth_context->key.keyvalue,
cred->session.keyvalue.data,
cred->session.keyvalue.length);
{
/* XXX ugly */
krb5_keyblock *c;
krb5_auth_con_getkey(gssapi_krb5_context,
(*context_handle)->auth_context,
&c);
cred->session = *c;
free(c);
}
kret = gssapi_krb5_create_8003_checksum (input_chan_bindings,
flags,
&cksum);