*/
become_root();
- status = schannel_get_creds_state(p, lp_ctx,
- neg.oem_netbios_computer.a, &creds);
+ status = schannel_get_creds_state(p->mem_ctx, lp_ctx,
+ neg.oem_netbios_computer.a, &creds);
unbecome_root();
talloc_unlink(p, lp_ctx);
return False;
}
- schannel_auth = talloc_zero(p, struct schannel_state);
+ schannel_auth = netsec_create_state(p, creds, false /* not initiator */);
+ TALLOC_FREE(creds);
if (!schannel_auth) {
- TALLOC_FREE(creds);
return False;
}
- schannel_auth->state = SCHANNEL_STATE_START;
- schannel_auth->initiator = false;
- schannel_auth->creds = creds;
-
/*
* JRA. Should we also copy the schannel session key into the pipe session key p->session_key
* here ? We do that for NTLMSSP, but the session key is already set up from the vuser