Skip to content

Commit

Permalink
crypto: move OPENSSL_IS_BORINGSSL guard
Browse files Browse the repository at this point in the history
PR-URL: #39136
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
codebytere authored and targos committed Jul 11, 2021
1 parent 89f5a73 commit 4202274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/crypto/crypto_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ void InitCryptoOnce() {
OPENSSL_init_ssl(0, settings);
OPENSSL_INIT_free(settings);
settings = nullptr;
#endif

#ifndef _WIN32
if (per_process::cli_options->secure_heap != 0) {
Expand All @@ -160,6 +159,8 @@ void InitCryptoOnce() {
}
#endif

#endif // OPENSSL_IS_BORINGSSL

// Turn off compression. Saves memory and protects against CRIME attacks.
// No-op with OPENSSL_NO_COMP builds of OpenSSL.
sk_SSL_COMP_zero(SSL_COMP_get_compression_methods());
Expand Down

0 comments on commit 4202274

Please sign in to comment.