mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:py_net: make use of dcerpc_binding_handle_auth_session_key()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
bf888b59e3
commit
5d3faa86fd
@ -488,9 +488,9 @@ static PyObject *py_net_replicate_init(py_net_Object *self, PyObject *args, PyOb
|
||||
return NULL;
|
||||
}
|
||||
|
||||
status = gensec_session_key(s->drs_pipe->pipe->conn->security_state.generic_state,
|
||||
s,
|
||||
&s->gensec_skey);
|
||||
status = dcerpc_binding_handle_auth_session_key(s->drs_pipe->binding_handle,
|
||||
s,
|
||||
&s->gensec_skey);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
char *error_string = talloc_asprintf(s,
|
||||
"Unable to get session key from drspipe: %s",
|
||||
@ -681,9 +681,9 @@ static PyObject *py_net_replicate_decrypt(py_net_Object *self, PyObject *args, P
|
||||
}
|
||||
drs_pipe = (dcerpc_InterfaceObject *)(py_drspipe);
|
||||
|
||||
status = gensec_session_key(drs_pipe->pipe->conn->security_state.generic_state,
|
||||
frame,
|
||||
&gensec_skey);
|
||||
status = dcerpc_binding_handle_auth_session_key(drs_pipe->binding_handle,
|
||||
frame,
|
||||
&gensec_skey);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
char *error_string
|
||||
= talloc_asprintf(frame,
|
||||
|
Loading…
Reference in New Issue
Block a user