Skip to content

Commit 0b49c32

Browse files
committed
squash: address comments
Signed-off-by: Michael Dawson <[email protected]>
1 parent fb76bd0 commit 0b49c32

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/parallel/test-crypto-sec-level.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@ if (!common.hasCrypto)
77

88
const assert = require('assert');
99

10+
// OpenSSL has a set of security levels which affect what algorithms
11+
// are available by default. Different OpenSSL veresions have different
12+
// default security levels and we use this value to adjust what a test
13+
// expects based on the security level. You can read more in
14+
// https://docs.openssl.org/1.1.1/man3/SSL_CTX_set_security_level/#default-callback-behaviour
15+
// This test simply validates that we can get some value for the secLevel
16+
// when needed by tests.
1017
const secLevel = require('internal/crypto/util').getOpenSSLSecLevel();
1118
assert.ok(secLevel >= 0 && secLevel <= 5);

test/parallel/test-tls-dhe.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ const {
3131
opensslCli,
3232
} = require('../common/crypto');
3333

34+
// OpenSSL has a set of security levels which affect what algorithms
35+
// are available by default. Different OpenSSL veresions have different
36+
// default security levels and we use this value to adjust what a test
37+
// expects based on the security level. You can read more in
38+
// https://docs.openssl.org/1.1.1/man3/SSL_CTX_set_security_level/#default-callback-behaviour
3439
const secLevel = require('internal/crypto/util').getOpenSSLSecLevel();
3540

3641
if (!opensslCli) {

0 commit comments

Comments
 (0)