summaryrefslogtreecommitdiff
path: root/source3/librpc
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-07-30 12:19:20 -0400
committerSimo Sorce <idra@samba.org>2010-07-30 14:55:27 -0400
commit3469fbc5e4098e798a03d14fece24fde2b60d9b9 (patch)
tree23e8d82ffc204fc8f0b610611c1cf9ba9b565e9e /source3/librpc
parenta9d3a596a7c4d7e5775751cbce74e2fb07ce2192 (diff)
downloadsamba-3469fbc5e4098e798a03d14fece24fde2b60d9b9.tar.gz
samba-3469fbc5e4098e798a03d14fece24fde2b60d9b9.tar.bz2
samba-3469fbc5e4098e798a03d14fece24fde2b60d9b9.zip
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)
Diffstat (limited to 'source3/librpc')
-rw-r--r--source3/librpc/rpc/dcerpc_helpers.c6
1 files changed, 6 insertions, 0 deletions
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)) {