test,benchmark: use OpenSSL feature helpers

Add isBoringSSL to the test crypto helpers and use it in tests and
benchmarks. Replace hasOpenSSL3 call sites with hasOpenSSL(3).

Assisted-by: Codex
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/65762
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
This commit is contained in:
Filip Skokan authored and Antoine du Hamel committed 2026-09-16 23:06:51 +02:00
1 parent c58a4e0ba7
commit f8cdf05586
159 files changed
+561 -437

No files matched your search

@@ -1,6 +1,8 @@
'use strict';
const common = require('../common');
const { isBoringSSL } = require('../common/crypto');
const fixtures = require('../common/fixtures');
if (!common.hasCrypto)
@@ -41,7 +43,7 @@ const certDataView = toDataView(certBuff);
const caArrDataView = toDataView(caCert);
function filterBoringSSLKeyCertArrayCases(options, setName) {
if (!process.features.openssl_is_boringssl)
if (!isBoringSSL)
return options;
// The array-valued cases exercise multi-identity key/cert handling.