File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,12 @@ if (!common.hasCrypto)
7
7
8
8
const assert = require ( 'assert' ) ;
9
9
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.
10
17
const secLevel = require ( 'internal/crypto/util' ) . getOpenSSLSecLevel ( ) ;
11
18
assert . ok ( secLevel >= 0 && secLevel <= 5 ) ;
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ const {
31
31
opensslCli,
32
32
} = require ( '../common/crypto' ) ;
33
33
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
34
39
const secLevel = require ( 'internal/crypto/util' ) . getOpenSSLSecLevel ( ) ;
35
40
36
41
if ( ! opensslCli ) {
You can’t perform that action at this time.
0 commit comments