summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_config.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <[email protected]>2024-11-24 14:45:12 +0900
committergit <[email protected]>2024-12-07 07:37:32 +0000
commit06fc13a15c72ecf77a638b45ea325d945bc7cc6d (patch)
treec0e58642fb7a199b534daa6ce85549e3962cb8b6 /ext/openssl/ossl_config.c
parent19acb3af2eb3dbad5f6ed2b56299298f968810fd (diff)
[ruby/openssl] ssl: handle callback exceptions in SSLSocket#sysread and #syswrite
Check the ID_callback_state ivar after SSL_read() or SSL_write() returns, similar to what ossl_start_ssl() does. Previously, callbacks that can raise a Ruby exception were only called from ossl_start_ssl(). This has changed in OpenSSL 1.1.1. Particularly, the session_new_cb will be called whenever a client receives a NewSessionTicket message, which can happen at any time during a TLS 1.3 connection. https://github.com/ruby/openssl/commit/aac9ce1304
Diffstat (limited to 'ext/openssl/ossl_config.c')
0 files changed, 0 insertions, 0 deletions