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 @@ -25,6 +25,11 @@ const common = require('../common');
25
25
if ( ! common . hasCrypto )
26
26
common . skip ( 'missing crypto' ) ;
27
27
28
+ // OpenSSL has a set of security levels which affect what algorithms
29
+ // are available by default. Different OpenSSL veresions have different
30
+ // default security levels and we use this value to adjust what a test
31
+ // expects based on the security level. You can read more in
32
+ // https://docs.openssl.org/1.1.1/man3/SSL_CTX_set_security_level/#default-callback-behaviour
28
33
const secLevel = require ( 'internal/crypto/util' ) . getOpenSSLSecLevel ( ) ;
29
34
30
35
if ( ! common . opensslCli )
You can’t perform that action at this time.
0 commit comments