We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5102fb commit 8e8d429Copy full SHA for 8e8d429
src/tls_wrap.cc
@@ -131,6 +131,12 @@ void TLSWrap::InitSSL() {
131
// - https://wiki.openssl.org/index.php/TLS1.3#Non-application_data_records
132
SSL_set_mode(ssl_.get(), SSL_MODE_AUTO_RETRY);
133
134
+#ifdef OPENSSL_IS_BORINGSSL
135
+ // OpenSSL allows renegotiation by default, but BoringSSL disables it.
136
+ // Configure BoringSSL to match OpenSSL's behavior.
137
+ SSL_set_renegotiate_mode(ssl_.get(), ssl_renegotiate_freely);
138
+#endif
139
+
140
SSL_set_app_data(ssl_.get(), this);
141
// Using InfoCallback isn't how we are supposed to check handshake progress:
142
// https://github.com/openssl/openssl/issues/7199#issuecomment-420915993
0 commit comments