Skip to content

Commit ca76862

Browse files
authored
Fix for OpenSSL::SSL::SSLContext set_minmax_proto_version removal. (#327)
1 parent 315b1f6 commit ca76862

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- "3.1"
2626
- "3.2"
2727
- "3.3"
28+
- "3.4"
2829
- "head"
2930
- "jruby"
3031
- "truffleruby"

spec/nio/selectables/ssl_socket_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
ctx.cert = ssl_cert
4040
ctx.key = ssl_key
4141
unless @tls.empty?
42-
if ctx.respond_to? :set_minmax_proto_version, true
42+
if ctx.respond_to? :max_version=
43+
ctx.min_version = @tls[0]
4344
ctx.max_version = @tls[0]
4445
else
4546
ctx.ssl_version = @tls[1]

0 commit comments

Comments
 (0)