GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — crypto: remove OPENSSL_FIPS guard for OpenSSL 3 · nodejs/node@89aaf16

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/crypto
    • crypto_util.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/crypto/crypto_util.cc‎

Copy file name to clipboardExpand all lines: src/crypto/crypto_util.cc
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ void TestFipsCrypto(const v8::FunctionCallbackInfo<v8::Value>& args) {
253253
Mutex::ScopedLock lock(per_process::cli_options_mutex);
254254
Mutex::ScopedLock fips_lock(fips_mutex);
255255

256-
#ifdef OPENSSL_FIPS
257256
#if OPENSSL_VERSION_MAJOR >= 3
258257
OSSL_PROVIDER* fips_provider = nullptr;
259258
if (OSSL_PROVIDER_available(nullptr, "fips")) {
@@ -262,11 +261,12 @@ void TestFipsCrypto(const v8::FunctionCallbackInfo<v8::Value>& args) {
262261
const auto enabled = fips_provider == nullptr ? 0 :
263262
OSSL_PROVIDER_self_test(fips_provider) ? 1 : 0;
264263
#else
264+
#ifdef OPENSSL_FIPS
265265
const auto enabled = FIPS_selftest() ? 1 : 0;
266-
#endif
267266
#else // OPENSSL_FIPS
268267
const auto enabled = 0;
269268
#endif // OPENSSL_FIPS
269+
#endif
270270

271271
args.GetReturnValue().Set(enabled);
272272
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.