diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-01-04 00:42:35 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-01-18 16:23:23 +0100 |
commit | 23a062b51bf3a2a9bd5f406dd90a5655299cb077 (patch) | |
tree | 7e13d4f257f4bc502b8c33e22b2ad02425e121ea /source3/librpc/crypto | |
parent | f2efb0f6a3536d9aa84932f6997de39f0adf5b90 (diff) | |
download | samba-23a062b51bf3a2a9bd5f406dd90a5655299cb077.tar.gz samba-23a062b51bf3a2a9bd5f406dd90a5655299cb077.tar.bz2 samba-23a062b51bf3a2a9bd5f406dd90a5655299cb077.zip |
s3-gse Make seal parameter a boolean for clarity
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/librpc/crypto')
-rw-r--r-- | source3/librpc/crypto/gse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/librpc/crypto/gse.c b/source3/librpc/crypto/gse.c index dec1dd0e03..2d4cc5e005 100644 --- a/source3/librpc/crypto/gse.c +++ b/source3/librpc/crypto/gse.c @@ -671,7 +671,7 @@ static DATA_BLOB gse_get_session_key(TALLOC_CTX *mem_ctx, } static size_t gse_get_signature_length(struct gse_context *gse_ctx, - int seal, size_t payload_size) + bool seal, size_t payload_size) { OM_uint32 gss_min, gss_maj; gss_iov_buffer_desc iov[2]; @@ -707,7 +707,7 @@ static NTSTATUS gse_seal(TALLOC_CTX *mem_ctx, struct gse_context *gse_ctx, NTSTATUS status; /* allocate the memory ourselves so we do not need to talloc_memdup */ - signature->length = gse_get_signature_length(gse_ctx, 1, data->length); + signature->length = gse_get_signature_length(gse_ctx, true, data->length); if (!signature->length) { return NT_STATUS_INTERNAL_ERROR; } |