1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/libcli
Stefan Metzmacher 77fac5ed24 libcli/smb: let smb2_signing_decrypt_pdu() cope with gnutls_aead_cipher_decrypt() ptext_len bug
The initial implementation of gnutls_aead_cipher_decrypt() had a bug and
used:
    *ptext_len = ctext_len;
instead of:
    *ptext_len = ctext_len - tag_size;

This got fixed with gnutls 3.5.2.

As we only require gnutls 3.4.7 we need to cope with this...

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Feb  2 18:29:08 UTC 2022 on sn-devel-184

(cherry picked from commit 735f3d7dde)

Autobuild-User(v4-14-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-14-test): Mon Feb 14 10:34:10 UTC 2022 on sn-devel-184
2022-02-14 10:34:10 +00:00
..
auth libcli/auth: let NTLMv2_RESPONSE_verify_netlogon_creds ignore invalid netapp requests 2022-01-19 08:08:14 +00:00
cldap CVE-2020-10704: libcli ldap_message: Add search size limits to ldap_decode 2020-05-04 02:59:32 +00:00
dns libcli: Add required #includes to libcli/dns/dns.h 2020-12-11 18:29:32 +00:00
drsuapi smbdes: convert sam_rid_crypt() to use gnutls 2019-12-10 00:30:30 +00:00
echo s4: torture: Change torture_register_suite() to add a TALLOC_CTX *. 2017-05-05 15:52:11 +02:00
http http_conn.c: fix "void function cannot return value" error 2020-11-10 06:53:42 +00:00
ldap libcli: Use GUID_to_ndr_buf() in ldap_encode_ndr_GUID() 2020-10-02 21:30:33 +00:00
lsarpc libcli/lsarpc: add struct trustAuthInOutBlob; forward declaration 2014-04-02 09:03:42 +02:00
named_pipe_auth tstream_npa: Set local server name in auth requests 2019-10-18 16:07:35 +00:00
nbt libcli: nbt: Fix resolve_lmhosts_file_as_sockaddr() to return size_t * count of addresses. 2020-09-15 10:09:37 +00:00
netlogon CVE-2020-25717: Add FreeIPA domain controller role 2021-11-08 10:46:43 +01:00
registry build: Make util_reg subsystem in libcli/registry a library 2011-05-18 16:12:08 +02:00
samsync smbdes: convert sam_rid_crypt() to use gnutls 2019-12-10 00:30:30 +00:00
security lib: Remove unused security_descriptor_append() 2020-11-19 22:56:40 +00:00
smb libcli/smb: let smb2_signing_decrypt_pdu() cope with gnutls_aead_cipher_decrypt() ptext_len bug 2022-02-14 10:34:10 +00:00
smbreadline libcli:smbreadline: Use #ifdef instead of #if for config.h definitions 2018-11-28 23:19:22 +01:00
util libcli: Align a few integer types 2020-11-30 22:24:37 +00:00