Skip to content

Commit 4202274

Browse files
codebyteretargos
authored andcommitted
crypto: move OPENSSL_IS_BORINGSSL guard
PR-URL: #39136 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 89f5a73 commit 4202274

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/crypto/crypto_util.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ void InitCryptoOnce() {
139139
OPENSSL_init_ssl(0, settings);
140140
OPENSSL_INIT_free(settings);
141141
settings = nullptr;
142-
#endif
143142

144143
#ifndef _WIN32
145144
if (per_process::cli_options->secure_heap != 0) {
@@ -160,6 +159,8 @@ void InitCryptoOnce() {
160159
}
161160
#endif
162161

162+
#endif // OPENSSL_IS_BORINGSSL
163+
163164
// Turn off compression. Saves memory and protects against CRIME attacks.
164165
// No-op with OPENSSL_NO_COMP builds of OpenSSL.
165166
sk_SSL_COMP_zero(SSL_COMP_get_compression_methods());

0 commit comments

Comments
 (0)