NTSTATUS rpccli_schannel_bind_data(TALLOC_CTX *mem_ctx, const char *domain,
enum pipe_auth_level auth_level,
- const struct dcinfo *pdc,
+ const uint8_t sess_key[16],
struct cli_pipe_auth_data **presult)
{
struct cli_pipe_auth_data *result;
goto fail;
}
- memcpy(result->a_u.schannel_auth->sess_key, pdc->sess_key, 16);
+ memcpy(result->a_u.schannel_auth->sess_key, sess_key,
+ sizeof(result->a_u.schannel_auth->sess_key));
result->a_u.schannel_auth->seq_num = 0;
*presult = result;
}
*perr = rpccli_schannel_bind_data(result, domain, auth_level,
- pdc, &auth);
+ pdc->sess_key, &auth);
if (!NT_STATUS_IS_OK(*perr)) {
DEBUG(0, ("rpccli_schannel_bind_data returned %s\n",
nt_errstr(*perr)));