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:
23a062b
)
s3-gse gss_wrap_iov_length() only needs the type and length
author
Stefan Metzmacher
<metze@samba.org>
Fri, 6 Jan 2012 15:58:51 +0000
(16:58 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 18 Jan 2012 15:23:23 +0000
(16:23 +0100)
metze
source3/librpc/crypto/gse.c
patch
|
blob
|
history
diff --git
a/source3/librpc/crypto/gse.c
b/source3/librpc/crypto/gse.c
index 2d4cc5e005d8e7aeacf995596d62c9504c4b0670..271445ec38695e0ca48c2dcc9c51c9410f3c10e0 100644
(file)
--- a/
source3/librpc/crypto/gse.c
+++ b/
source3/librpc/crypto/gse.c
@@
-675,14
+675,16
@@
static size_t gse_get_signature_length(struct gse_context *gse_ctx,
{
OM_uint32 gss_min, gss_maj;
gss_iov_buffer_desc iov[2];
- uint8_t fakebuf[payload_size];
int sealed;
+ /*
+ * gss_wrap_iov_length() only needs the type and length
+ */
iov[0].type = GSS_IOV_BUFFER_TYPE_HEADER;
iov[0].buffer.value = NULL;
iov[0].buffer.length = 0;
iov[1].type = GSS_IOV_BUFFER_TYPE_DATA;
- iov[1].buffer.value =
fakebuf
;
+ iov[1].buffer.value =
NULL
;
iov[1].buffer.length = payload_size;
gss_maj = gss_wrap_iov_length(&gss_min, gse_ctx->gss_ctx,