From 5d3faa86fd47d6bc887e182f3eb5a51144339549 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 14 Sep 2024 14:19:55 +0200 Subject: [PATCH] s4:py_net: make use of dcerpc_binding_handle_auth_session_key() Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- source4/libnet/py_net.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c index 4544d1d90aa..257149d2298 100644 --- a/source4/libnet/py_net.c +++ b/source4/libnet/py_net.c @@ -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,