gnutls: allow gnutls_aead_cipher_encryptv2 with gcm before 3.6.15
authorStefan Metzmacher <metze@samba.org>
Tue, 9 Mar 2021 09:40:04 +0000 (10:40 +0100)
committerJule Anger <janger@samba.org>
Fri, 6 Aug 2021 14:49:17 +0000 (14:49 +0000)
commite606987911e556c3275528493473eed70cd023e2
tree7674216aa06600149f9e01cea7bf65a9d7f5acec
parent047cbaad5d9fa4bc6d901fece9a284de4f991fb3
gnutls: allow gnutls_aead_cipher_encryptv2 with gcm before 3.6.15

The memory leak bug up to 3.6.14 was only related to ccm, but gcm was
fine.

This avoids talloc+memcpy on more systems, e.g. ubuntu 20.04,
and brings ~ 20% less cpu overhead, see:
https://hackmd.io/@asn/samba_crypto_benchmarks

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14764

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 5512416a8fbe00a7a5343afe0d50846e0a8f342b)
libcli/smb/smb2_signing.c
wscript_configure_system_gnutls