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)
77
88const 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.
1017const secLevel = require ( 'internal/crypto/util' ) . getOpenSSLSecLevel ( ) ;
1118assert . ok ( secLevel >= 0 && secLevel <= 5 ) ;
Original file line number Diff line number Diff 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
3439const secLevel = require ( 'internal/crypto/util' ) . getOpenSSLSecLevel ( ) ;
3540
3641if ( ! opensslCli ) {
You can’t perform that action at this time.
0 commit comments