Method: OpenSSL::SSL::SSLContext#max_version=

Defined in:
lib/openssl/ssl.rb

#max_version=(version) ⇒ Object

call-seq:

ctx.max_version = OpenSSL::SSL::TLS1_2_VERSION
ctx.max_version = :TLS1_2
ctx.max_version = nil

Sets the upper bound of the supported SSL/TLS protocol version. See #min_version= for the possible values.



189
190
191
192
# File 'lib/openssl/ssl.rb', line 189

def max_version=(version)
  set_minmax_proto_version(@min_proto_version ||= nil, version)
  @max_proto_version = version
end