mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
tls: enable renegotiation when using BoringSSL
PR-URL: https://github.com/nodejs/node/pull/34832 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
cc7258469c
commit
e90cb49390
1 file changed
+6
@@ -131,6 +131,12 @@ void TLSWrap::InitSSL() {
|
||||
// - https://wiki.openssl.org/index.php/TLS1.3#Non-application_data_records
|
||||
SSL_set_mode(ssl_.get(), SSL_MODE_AUTO_RETRY);
|
||||
|
||||
#ifdef OPENSSL_IS_BORINGSSL
|
||||
// OpenSSL allows renegotiation by default, but BoringSSL disables it.
|
||||
// Configure BoringSSL to match OpenSSL's behavior.
|
||||
SSL_set_renegotiate_mode(ssl_.get(), ssl_renegotiate_freely);
|
||||
#endif
|
||||
|
||||
SSL_set_app_data(ssl_.get(), this);
|
||||
// Using InfoCallback isn't how we are supposed to check handshake progress:
|
||||
// https://github.com/openssl/openssl/issues/7199#issuecomment-420915993
|
||||
|
||||
Reference in new issue
Block a user