Skip to content

Commit 6e0e745

Browse files
koolzzigsilya
authored andcommitted
stream-ssl: Disable TLS session tickets.
OVS currently does not support TLS session resumption. The server side session cache is disabled (SSL_SESS_CACHE_OFF) and no session id context is configured. However, clients may still send stateless tickets, causing SSL_accept() to fail with "session id context uninitialized". Disable stateless session tickets with SSL_OP_NO_TICKET so that clients do not attempt resumption. Signed-off-by: Mykola Yurchenko <myurchenko@nvidia.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
1 parent 24370c6 commit 6e0e745

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/stream-ssl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,7 @@ do_ssl_init(void)
10711071
SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT,
10721072
NULL);
10731073
SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_OFF);
1074+
SSL_CTX_set_options(ctx, SSL_OP_NO_TICKET);
10741075
SSL_CTX_set_cipher_list(ctx, "DEFAULT:@SECLEVEL=2");
10751076

10761077
return 0;

0 commit comments

Comments
 (0)