summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-09-29 09:10:27 +0200
committerStefan Metzmacher <metze@samba.org>2011-01-03 16:44:28 +0100
commitcbf6c88aa8ff2ee1e31aed4773cec5266773d213 (patch)
treec302c2db6c93c1bf6f3aa4cbe2334da812bc3c86
parente22c4c5632e4172c2056cec07c842a69f24e068a (diff)
downloadsamba-cbf6c88aa8ff2ee1e31aed4773cec5266773d213.tar.gz
samba-cbf6c88aa8ff2ee1e31aed4773cec5266773d213.tar.bz2
samba-cbf6c88aa8ff2ee1e31aed4773cec5266773d213.zip
s4:gensec/schannel: use netsec_outgoing_sig_size() to get the signature size
metze
-rw-r--r--source4/auth/gensec/schannel.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/auth/gensec/schannel.c b/source4/auth/gensec/schannel.c
index 56e88556e3..45e5954b94 100644
--- a/source4/auth/gensec/schannel.c
+++ b/source4/auth/gensec/schannel.c
@@ -32,7 +32,12 @@
static size_t schannel_sig_size(struct gensec_security *gensec_security, size_t data_size)
{
- return 32;
+ struct schannel_state *state = (struct schannel_state *)gensec_security->private_data;
+ uint32_t sig_size;
+
+ sig_size = netsec_outgoing_sig_size(state);
+
+ return sig_size;
}
static NTSTATUS schannel_session_key(struct gensec_security *gensec_security,