mirror of
https://github.com/samba-team/samba.git
synced 2025-07-04 00:59:13 +03:00
s3-gse Make seal parameter a boolean for clarity
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
committed by
Stefan Metzmacher
parent
f2efb0f6a3
commit
23a062b51b
@ -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,
|
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;
|
OM_uint32 gss_min, gss_maj;
|
||||||
gss_iov_buffer_desc iov[2];
|
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;
|
NTSTATUS status;
|
||||||
|
|
||||||
/* allocate the memory ourselves so we do not need to talloc_memdup */
|
/* 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) {
|
if (!signature->length) {
|
||||||
return NT_STATUS_INTERNAL_ERROR;
|
return NT_STATUS_INTERNAL_ERROR;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user