From 51f5eefcd119b5981281924a45380d99f9158a88 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 14 Sep 2024 14:16:01 +0200 Subject: [PATCH] s4:drepl: make use of dcerpc_binding_handle_auth_session_key() Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- source4/dsdb/repl/drepl_out_helpers.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source4/dsdb/repl/drepl_out_helpers.c b/source4/dsdb/repl/drepl_out_helpers.c index 7ba5c797267..bf2017ee9c6 100644 --- a/source4/dsdb/repl/drepl_out_helpers.c +++ b/source4/dsdb/repl/drepl_out_helpers.c @@ -119,9 +119,10 @@ static void dreplsrv_out_drsuapi_connect_done(struct composite_context *creq) state->drsuapi->drsuapi_handle = state->drsuapi->pipe->binding_handle; - status = gensec_session_key(state->drsuapi->pipe->conn->security_state.generic_state, - state->drsuapi, - &state->drsuapi->gensec_skey); + status = dcerpc_binding_handle_auth_session_key( + state->drsuapi->drsuapi_handle, + state->drsuapi, + &state->drsuapi->gensec_skey); if (tevent_req_nterror(req, status)) { return; }