1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00
samba-mirror/libcli/smb
Stefan Metzmacher 735f3d7dde 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
2022-02-02 18:29:08 +00:00
..
read_smb.c libcli/smb: use tevent_req_received(req) in read_smb_recv() 2015-06-12 17:08:18 +02:00
read_smb.h
reparse_symlink.c libsmb: move reparse_symlink to libcli/smb/ 2021-11-11 19:08:37 +00:00
reparse_symlink.h libsmb: move reparse_symlink to libcli/smb/ 2021-11-11 19:08:37 +00:00
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 libcli: Fix a segfault calling smbXcli_req_set_pending() on NULL. 2014-09-23 04:23:05 +02:00
smb1cli_read.c libcli/smb: correctly handle STATUS_BUFFER_OVERFLOW in smb1cli_readx* 2015-12-01 00:38:23 +01:00
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 s3: smbd: Add the definition for SMB2_FIND_POSIX_INFORMATION info level. 2022-02-01 16:30:37 +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 Revert "libcli/smb: mask off SMB2_LEASE_FLAG_PARENT_LEASE_KEY_SET for version 1" 2014-11-27 16:45:05 +01:00
smb2_lease.h libcli/smb: Add smb2_lease_equal() which compares client_guids and keys. 2014-11-07 22:41:47 +01:00
smb2_lock.h libsmb: Make "struct smb2_lock_element" generally usable 2019-04-01 17:58:17 +00:00
smb2_negotiate_context.c libcli/smb: let smb2_negotiate_context_parse() only parse the expected number of contexts 2021-07-12 21:25:21 +00:00
smb2_negotiate_context.h libcli/smb: add support for SMB2_SIGNING_AES128_GMAC 2021-07-15 00:06:31 +00: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-02 18:29:08 +00:00
smb2_signing.h libcli/smb: no longer pass protocol to smb2_signing_{encrypt,decrypt}_pdu() 2021-03-17 00:49:32 +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-07-15 23:04:34 +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 libcli/smb: correctly handle STATUS_BUFFER_OVERFLOW in smb2cli_query_info* 2015-12-01 00:38:23 +01:00
smb2cli_read.c libcli/smb: allow unexpected padding in SMB2 READ responses 2021-07-15 23:53:55 +00:00
smb2cli_session.c libcli/smb: implement SMB 3.10 session setup 2014-10-07 22:47:04 +02:00
smb2cli_set_info.c
smb2cli_tcon.c libcli/smb: split out smb2cli_raw_tcon* from smb2cli_tcon* 2021-12-01 11:04:29 +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 s3: libcli: Add FSCTL_SMBTORTURE_FSP_ASYNC_SLEEP. 2021-08-11 19:16:29 +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 libcli/smb: add define SMB_ENCRYPTION_GSSAPI for CIFS encryption type 2016-01-22 07:52:21 +01:00
smb_util.h libcli: "smb_util.h" needs "ntstatus.h" 2021-11-11 19:08:37 +00:00
smbXcli_base.c libcli/smb: use MID=0 for SMB2 Cancel with ASYNC_ID and legacy signing algorithms 2021-10-19 19:23:39 +00:00
smbXcli_base.h libcli/smb: split out smb2cli_raw_tcon* from smb2cli_tcon* 2021-12-01 11:04:29 +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 docs-xml: use upper case for "{client,server} smb3 {signing,encryption} algorithms" values 2021-09-08 16:37:07 +00:00
wscript libsmb: move reparse_symlink to libcli/smb/ 2021-11-11 19:08:37 +00:00