@@ -911,6 +911,7 @@ def test_npn_protocol_selection_ary
911
911
pend "TLS 1.2 is not supported" unless tls12_supported?
912
912
pend "NPN is not supported" unless \
913
913
OpenSSL ::SSL ::SSLContext . method_defined? ( :npn_select_cb )
914
+ pend "LibreSSL 2.6 has broken NPN functions" if libressl? ( 2 , 6 , 1 )
914
915
915
916
advertised = [ "http/1.1" , "spdy/2" ]
916
917
ctx_proc = proc { |ctx | ctx . npn_protocols = advertised }
@@ -931,6 +932,7 @@ def test_npn_protocol_selection_enum
931
932
pend "TLS 1.2 is not supported" unless tls12_supported?
932
933
pend "NPN is not supported" unless \
933
934
OpenSSL ::SSL ::SSLContext . method_defined? ( :npn_select_cb )
935
+ pend "LibreSSL 2.6 has broken NPN functions" if libressl? ( 2 , 6 , 1 )
934
936
935
937
advertised = Object . new
936
938
def advertised . each
@@ -955,6 +957,7 @@ def test_npn_protocol_selection_cancel
955
957
pend "TLS 1.2 is not supported" unless tls12_supported?
956
958
pend "NPN is not supported" unless \
957
959
OpenSSL ::SSL ::SSLContext . method_defined? ( :npn_select_cb )
960
+ pend "LibreSSL 2.6 has broken NPN functions" if libressl? ( 2 , 6 , 1 )
958
961
959
962
ctx_proc = Proc . new { |ctx | ctx . npn_protocols = [ "http/1.1" ] }
960
963
start_server_version ( :TLSv1_2 , ctx_proc ) { |port |
@@ -968,6 +971,7 @@ def test_npn_advertised_protocol_too_long
968
971
pend "TLS 1.2 is not supported" unless tls12_supported?
969
972
pend "NPN is not supported" unless \
970
973
OpenSSL ::SSL ::SSLContext . method_defined? ( :npn_select_cb )
974
+ pend "LibreSSL 2.6 has broken NPN functions" if libressl? ( 2 , 6 , 1 )
971
975
972
976
ctx_proc = Proc . new { |ctx | ctx . npn_protocols = [ "a" * 256 ] }
973
977
start_server_version ( :TLSv1_2 , ctx_proc ) { |port |
@@ -981,6 +985,7 @@ def test_npn_selected_protocol_too_long
981
985
pend "TLS 1.2 is not supported" unless tls12_supported?
982
986
pend "NPN is not supported" unless \
983
987
OpenSSL ::SSL ::SSLContext . method_defined? ( :npn_select_cb )
988
+ pend "LibreSSL 2.6 has broken NPN functions" if libressl? ( 2 , 6 , 1 )
984
989
985
990
ctx_proc = Proc . new { |ctx | ctx . npn_protocols = [ "http/1.1" ] }
986
991
start_server_version ( :TLSv1_2 , ctx_proc ) { |port |
0 commit comments