@@ -86,25 +86,17 @@ is(get("\x13\x03"), 'TLS_CHACHA20_POLY1305_SHA256',
86
86
87
87
is(get(" \x13\x02\x13\x01 " ), ' TLS_AES_256_GCM_SHA384' , ' ciphers many' );
88
88
89
- # prefer TLS_AES_128_CCM_SHA256 and fail gracefully as we are not there yet ,
90
- # the cipher might be patched to be enabled by default in certain distributions
89
+ # prefer TLS_AES_128_CCM_SHA256 with fallback to GCM ,
90
+ # the cipher is enabled by default in some distributions
91
91
92
- my $s = Test::Nginx::HTTP3-> new(8980, ciphers => " \x13\x04\x13\x01 " );
93
-
94
- TODO: {
95
- todo_skip ' not yet' , 1 unless $s ;
96
-
97
- like(get(" \x13\x04\x13\x01 " , $s ), qr / TLS_AES_128_[GC]CM_SHA256/ ,
92
+ like(get(" \x13\x04\x13\x01 " ), qr / TLS_AES_128_[GC]CM_SHA256/ ,
98
93
' TLS_AES_128_CCM_SHA256' );
99
94
100
- }
101
-
102
95
# ##############################################################################
103
96
104
97
sub get {
105
- my ($ciphers , $sock ) = @_ ;
106
- my $s = Test::Nginx::HTTP3-> new(8980, ciphers => $ciphers ,
107
- socket => $sock ) or return ;
98
+ my ($ciphers ) = @_ ;
99
+ my $s = Test::Nginx::HTTP3-> new(8980, ciphers => $ciphers );
108
100
my $frames = $s -> read (all => [{ sid => $s -> new_stream(), fin => 1 }]);
109
101
110
102
my ($frame ) = grep { $_ -> {type } eq " HEADERS" } @$frames ;
0 commit comments