summaryrefslogtreecommitdiff
path: root/source3/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-09-26 02:59:59 +0200
committerStefan Metzmacher <metze@samba.org>2011-01-03 16:44:29 +0100
commit2d466b41cd20d0162d3fa4cd29a83bbc20d00454 (patch)
tree164951b6c7d0a6ba5e799d851e96e536c6622d21 /source3/librpc
parentcbf6c88aa8ff2ee1e31aed4773cec5266773d213 (diff)
downloadsamba-2d466b41cd20d0162d3fa4cd29a83bbc20d00454.tar.gz
samba-2d466b41cd20d0162d3fa4cd29a83bbc20d00454.tar.bz2
samba-2d466b41cd20d0162d3fa4cd29a83bbc20d00454.zip
s3:librpc: use netsec_outgoing_sig_size() instead of a hardcoded signature
size metze
Diffstat (limited to 'source3/librpc')
-rw-r--r--source3/librpc/rpc/dcerpc_helpers.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/librpc/rpc/dcerpc_helpers.c b/source3/librpc/rpc/dcerpc_helpers.c
index a94f6c88fa..f45ee941c1 100644
--- a/source3/librpc/rpc/dcerpc_helpers.c
+++ b/source3/librpc/rpc/dcerpc_helpers.c
@@ -266,6 +266,7 @@ NTSTATUS dcerpc_guess_sizes(struct pipe_auth_data *auth,
{
size_t max_len;
size_t mod_len;
+ struct schannel_state *schannel_auth;
struct spnego_context *spnego_ctx;
struct gse_context *gse_ctx;
enum spnego_mech auth_type;
@@ -336,7 +337,9 @@ NTSTATUS dcerpc_guess_sizes(struct pipe_auth_data *auth,
break;
case DCERPC_AUTH_TYPE_SCHANNEL:
- *auth_len = NL_AUTH_SIGNATURE_SIZE;
+ schannel_auth = talloc_get_type_abort(auth->auth_ctx,
+ struct schannel_state);
+ *auth_len = netsec_outgoing_sig_size(schannel_auth);
break;
case DCERPC_AUTH_TYPE_KRB5: