Calculate the NTLM version 1 "master" key.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19424 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-12-18 21:23:24 +00:00
parent 276d560deb
commit 450f635e88

View File

@@ -186,10 +186,21 @@ _gss_ntlm_init_sec_context
heim_ntlm_calculate_ntlm1(key.data, key.length, heim_ntlm_calculate_ntlm1(key.data, key.length,
type2.challange, type2.challange,
&type3.ntlm); &type3.ntlm);
ret = heim_ntlm_build_ntlm1_master(key.data, key.length,
&type3.sessionkey);
if (ret) {
_gss_ntlm_delete_sec_context(minor_status,context_handle,NULL);
*minor_status = ret;
return GSS_S_FAILURE;
}
memset(key.data, 0, key.length);
free(key.data); free(key.data);
} }
ret = heim_ntlm_encode_type3(&type3, &data); ret = heim_ntlm_encode_type3(&type3, &data);
free(type3.sessionkey.data);
if (ret) { if (ret) {
_gss_ntlm_delete_sec_context(minor_status, context_handle, NULL); _gss_ntlm_delete_sec_context(minor_status, context_handle, NULL);
*minor_status = ret; *minor_status = ret;