git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbf6c88
)
s3:librpc: use netsec_outgoing_sig_size() instead of a hardcoded signature
author
Stefan Metzmacher
<metze@samba.org>
Sat, 26 Sep 2009 00:59:59 +0000
(
02:59
+0200)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 3 Jan 2011 15:44:29 +0000
(16:44 +0100)
size
metze
source3/librpc/rpc/dcerpc_helpers.c
patch
|
blob
|
history
diff --git
a/source3/librpc/rpc/dcerpc_helpers.c
b/source3/librpc/rpc/dcerpc_helpers.c
index a94f6c88fab0faac8ab811977946eefad8898e88..f45ee941c1f19f78dde953a0d6cbb6f521464f9f 100644
(file)
--- 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: