Thanks to visit codestin.com Credit goes to github.com
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 da150f4 commit c059d3dCopy full SHA for c059d3d
src/tls_wrap.cc
@@ -128,6 +128,12 @@ void TLSWrap::InitSSL() {
128
// - https://wiki.openssl.org/index.php/TLS1.3#Non-application_data_records
129
SSL_set_mode(ssl_.get(), SSL_MODE_AUTO_RETRY);
130
131
+#ifdef OPENSSL_IS_BORINGSSL
132
+ // OpenSSL allows renegotiation by default, but BoringSSL disables it.
133
+ // Configure BoringSSL to match OpenSSL's behavior.
134
+ SSL_set_renegotiate_mode(ssl_.get(), ssl_renegotiate_freely);
135
+#endif
136
+
137
SSL_set_app_data(ssl_.get(), this);
138
// Using InfoCallback isn't how we are supposed to check handshake progress:
139
// https://github.com/openssl/openssl/issues/7199#issuecomment-420915993
0 commit comments