From 3469fbc5e4098e798a03d14fece24fde2b60d9b9 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 30 Jul 2010 12:19:20 -0400 Subject: s3-dcerpc: rationalize packet creation in the server code Move all related functions into create_next_packet, but make it transport neutral (not pass in pipse_struct) --- source3/librpc/rpc/dcerpc_helpers.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/librpc/rpc') diff --git a/source3/librpc/rpc/dcerpc_helpers.c b/source3/librpc/rpc/dcerpc_helpers.c index 161154fe3b..e089e9cbf0 100644 --- a/source3/librpc/rpc/dcerpc_helpers.c +++ b/source3/librpc/rpc/dcerpc_helpers.c @@ -301,6 +301,12 @@ NTSTATUS dcerpc_guess_sizes(struct pipe_auth_data *auth, /* Treat the same for all authenticated rpc requests. */ switch (auth->auth_type) { case DCERPC_AUTH_TYPE_SPNEGO: + /* compat for server code */ + if (auth->spnego_type == PIPE_AUTH_TYPE_SPNEGO_NTLMSSP) { + *auth_len = NTLMSSP_SIG_SIZE; + break; + } + status = spnego_get_negotiated_mech(auth->a_u.spnego_state, &auth_type, &auth_ctx); if (!NT_STATUS_IS_OK(status)) { -- cgit