Skip to content

Commit 00305a4

Browse files
authored
Disable TLS tickets for 1.2 and 1.3 in order to support reconnects after OpenSIPS restarts (#3673)
1 parent 0c54ee7 commit 00305a4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

modules/tls_wolfssl/wolfssl_conn_ops.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,14 @@ int _wolfssl_tls_conn_init(struct tcp_connection* c,
201201
return -1;
202202
}
203203

204+
/* we are no managing TLS 1.2 or 1.3 tickets server side
205+
* so in case a client will want to reconnect after an OpenSIPS
206+
* restart, it will provide a pre-shared ticket and this re-connection
207+
* will just fail, so take the lazy way out and disable tickets
208+
* https://datatracker.ietf.org/doc/html/rfc8446#section-2.2 */
209+
wolfSSL_NoTicketTLSv12(_WOLFSSL_READ_SSL(c->extra_data));
210+
wolfSSL_no_ticket_TLSv13(_WOLFSSL_READ_SSL(c->extra_data));
211+
204212
/* put pointers to the tcp_connection and tls_domain structs
205213
* in the WOLFSSL struct as extra data */
206214
if (!wolfSSL_set_ex_data(_WOLFSSL_READ_SSL(c->extra_data),

0 commit comments

Comments
 (0)