@@ -16,6 +16,7 @@ const {
16
16
function test ( cciphers , sciphers , cipher , cerr , serr , options ) {
17
17
assert ( cipher || cerr || serr , 'test missing any expectations' ) ;
18
18
const where = inspect ( new Error ( ) ) . split ( '\n' ) [ 2 ] . replace ( / [ ^ ( ] * / , '' ) ;
19
+ const minVersion = options ?. minVersion ;
19
20
20
21
const max_tls_ver = ( ciphers , options ) => {
21
22
if ( options instanceof Object && Object . hasOwn ( options , 'maxVersion' ) )
@@ -32,12 +33,14 @@ function test(cciphers, sciphers, cipher, cerr, serr, options) {
32
33
ca : `${ keys . agent1 . cert } \n${ keys . agent6 . ca } ` ,
33
34
ciphers : cciphers ,
34
35
maxVersion : max_tls_ver ( cciphers , options ) ,
36
+ ...( minVersion && { minVersion } ) ,
35
37
} ,
36
38
server : {
37
39
cert : keys . agent6 . cert ,
38
40
key : keys . agent6 . key ,
39
41
ciphers : sciphers ,
40
42
maxVersion : max_tls_ver ( sciphers , options ) ,
43
+ ...( minVersion && { minVersion } ) ,
41
44
} ,
42
45
} , common . mustCall ( ( err , pair , cleanup ) => {
43
46
function u ( _ ) { return _ === undefined ? 'U' : _ ; }
@@ -85,6 +88,7 @@ test('AES256-SHA', U, 'AES256-SHA');
85
88
86
89
test ( U , 'TLS_AES_256_GCM_SHA384' , 'TLS_AES_256_GCM_SHA384' ) ;
87
90
test ( 'TLS_AES_256_GCM_SHA384' , U , 'TLS_AES_256_GCM_SHA384' ) ;
91
+ test ( 'TLS_AES_256_GCM_SHA384:!TLS_CHACHA20_POLY1305_SHA256' , U , 'TLS_AES_256_GCM_SHA384' ) ;
88
92
89
93
// Do not have shared ciphers.
90
94
test ( 'TLS_AES_256_GCM_SHA384' , 'TLS_CHACHA20_POLY1305_SHA256' ,
0 commit comments