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)
committerJeremy Allison <jra@samba.org>
Tue, 20 Jul 2021 15:25:37 +0000 (15:25 +0000)
commit5512416a8fbe00a7a5343afe0d50846e0a8f342b
tree84000d93f07dcf00172367e41e65690a16de57e0
parentf97f94e93b03495cf03d08873de5f3b912a003a0
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>
libcli/smb/smb2_signing.c
wscript_configure_system_gnutls