1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/source4/lib
Noel Power 0fd7b13ebc s4:lib:tls: Don't negotiate session resumption with session tickets
tls_tstream can't properly handle 'New Session Ticket' messages
sent 'after' the client sends the 'Finished' message.

This is needed because some servers (at least elasticsearch) wait till
they get 'Finished' messgage from the client before sending the
"New Ticket" message.

Without this patch what typcially happens is when the application code
sends data it then tries to read the response, but, instead of the
response to the request it actually recieves the "New Session Ticket"
instead. The "New Session Ticket" message gets processed by the upper layer
logic e.g.
   tstream_tls_readv_send
       ->tstream_tls_readv_crypt_next
           ->tstream_tls_retry_read
               ->gnutls_record_recv

instead of the core gnutls routines.

This results in the response processing failing due to the
currently 'unexpected' New Ticket message.

In order to avoid this scenario we can ensure the client doesn't
negotiate resumption with session tickets.

Signed-off-by: Noel Power <noel.power@suse.com>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Nov 16 09:58:45 UTC 2022 on sn-devel-184
2022-11-16 09:58:44 +00:00
..
com lib/util: remove extra safe_string.h file 2020-08-28 02:18:40 +00:00
events s4:lib/events: remove unused allow_warnings=True 2014-11-25 07:25:46 +01:00
messaging s4:messaging: let imessaging_client_init() use imessaging_init_discard_incoming() 2022-10-13 13:32:30 +00:00
policy s4:policy: Fix ACE type comparison 2022-03-17 00:41:34 +00:00
registry s4/lib/registry: Fix use after free with popt 1.19 2022-10-14 13:38:55 +00:00
samba3 libnet: Remove unused source4/libnet/libnet_sam{dump,sync}: 2019-05-06 07:11:51 +00:00
socket lib: Use talloc_zero, save a ZERO_STRUCT 2022-03-23 16:57:28 +00:00
stream Fix a comment typo copied around 2020-08-17 19:35:38 +00:00
tls s4:lib:tls: Don't negotiate session resumption with session tickets 2022-11-16 09:58:44 +00:00
wmi py3: Remove #define PyInt_FromLong PyLong_FromLong 2020-03-23 19:12:43 +00:00