1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/libcli/smb
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
..
read_smb.c
read_smb.h
smb1cli_close.c
smb1cli_create.c libcli/smb: move {smb,trans2}_bytes_push_{str,bytes}() to common code 2016-11-15 11:00:26 +01:00
smb1cli_echo.c
smb1cli_read.c
smb1cli_session.c libcli/smb: clang: Fix 'value stored to 'p' is never read' 2019-07-11 04:08:13 +00:00
smb1cli_trans.c libcli smb smb1cli_trans: fix ubsan warning 2019-10-16 18:00:31 +00:00
smb1cli_write.c
smb2_constants.h libsmb: Add posix create context definition 2020-02-07 21:01:30 +00:00
smb2_create_blob.c libsmb: Add smb2_create_blob_remove() 2020-02-07 21:01:31 +00:00
smb2_create_blob.h libsmb: Add smb2_create_blob_remove() 2020-02-07 21:01:31 +00:00
smb2_create_ctx.h libsmb: Fix a typo 2020-01-30 12:27:40 +00:00
smb2_lease.c
smb2_lease.h
smb2_lock.h libsmb: Make "struct smb2_lock_element" generally usable 2019-04-01 17:58:17 +00:00
smb2_negotiate_context.c libcli: Align integer types 2020-03-10 23:08:19 +00:00
smb2_negotiate_context.h libcli: Pass buf/len to smb2_negotiate_context_add 2019-02-25 21:07:22 +01:00
smb2_posix.c smbd: Add make_smb2_posix_create_ctx() 2020-02-07 21:01:31 +00:00
smb2_posix.h smbd: Add make_smb2_posix_create_ctx() 2020-02-07 21:01:31 +00:00
smb2_signing.c libcli/smb: let smb2_signing_decrypt_pdu() cope with gnutls_aead_cipher_decrypt() ptext_len bug 2022-02-14 10:34:10 +00:00
smb2_signing.h libcli:smb: Don't use forward declartions for GnuTLS typedefs 2020-02-07 13:48:27 +00:00
smb2cli_close.c
smb2cli_create.c libcli: Add tevent_req_received() calls to smb2cli_create_recv() 2020-06-15 17:59:39 +00:00
smb2cli_echo.c
smb2cli_flush.c
smb2cli_ioctl.c libcli/smb: make smb2cli_ioctl_parse_buffer() available as smb2cli_parse_dyn_buffer() 2021-08-12 08:41:09 +00:00
smb2cli_notify.c libcli: Make smb2cli_notify_send cancellable 2018-11-21 16:53:41 +01:00
smb2cli_query_directory.c libcli/smb: outbuf length is a IVAL ie a uint32_t 2017-01-31 04:34:29 +01:00
smb2cli_query_info.c
smb2cli_read.c libcli/smb: allow unexpected padding in SMB2 READ responses 2021-08-12 09:39:40 +00:00
smb2cli_session.c
smb2cli_set_info.c
smb2cli_tcon.c libcli/smb: split out smb2cli_raw_tcon* from smb2cli_tcon* 2021-12-13 08:41:08 +00:00
smb2cli_write.c
smb_common.h libsmb: Make "struct smb2_lock_element" generally usable 2019-04-01 17:58:17 +00:00
smb_constants.h s4:torture/smb2: add smb2.read.bug14607 test 2021-08-12 08:41:09 +00:00
smb_seal.c libcli:smb: Use #ifdef instead of #if for config.h definitions 2018-11-28 23:19:22 +01:00
smb_seal.h
smb_signing.c lib/crypto: move gnutls error wrapper to own subsystem 2019-06-27 12:54:22 +00:00
smb_signing.h libcli:smb: Return NTSTATUS for smb_key_derivation() 2019-05-21 00:03:21 +00:00
smb_unix_ext.h
smb_util.h libcli:smb: Add smb_encryption_setting_translate() 2020-08-19 16:22:40 +00:00
smbXcli_base.c libcli/smb: make smb2cli_ioctl_parse_buffer() available as smb2cli_parse_dyn_buffer() 2021-08-12 08:41:09 +00:00
smbXcli_base.h libcli/smb: split out smb2cli_raw_tcon* from smb2cli_tcon* 2021-12-13 08:41:08 +00:00
test_smb1cli_session.c Fix uClibc build on 64bit platforms by including stdint.h 2018-08-24 17:22:09 +02:00
test_util_translate.c libcli:smb: Add smb_encryption_setting_translate() 2020-08-19 16:22:40 +00:00
tstream_smbXcli_np.c tstream: Fix CID 1167981 Unchecked return value 2018-04-16 19:09:56 +02:00
tstream_smbXcli_np.h
util.c libcli: Align integer types 2020-11-30 22:24:37 +00:00
wscript libcli:smb: Add smb_signing_setting_translate() 2020-08-19 16:22:40 +00:00