diff --git a/lib/faraday/adapter/net_http.rb b/lib/faraday/adapter/net_http.rb index eb006c837..cd57cc869 100644 --- a/lib/faraday/adapter/net_http.rb +++ b/lib/faraday/adapter/net_http.rb @@ -106,6 +106,8 @@ def configure_ssl(http, ssl) http.ca_path = ssl[:ca_path] if ssl[:ca_path] http.verify_depth = ssl[:verify_depth] if ssl[:verify_depth] http.ssl_version = ssl[:version] if ssl[:version] + http.min_version = ssl[:min_version] if ssl[:min_version] + http.max_version = ssl[:max_version] if ssl[:max_version] end def configure_request(http, req) diff --git a/lib/faraday/options.rb b/lib/faraday/options.rb index 26e6668fe..2c278651b 100644 --- a/lib/faraday/options.rb +++ b/lib/faraday/options.rb @@ -214,7 +214,8 @@ def []=(key, value) end class SSLOptions < Options.new(:verify, :ca_file, :ca_path, :verify_mode, - :cert_store, :client_cert, :client_key, :certificate, :private_key, :verify_depth, :version) + :cert_store, :client_cert, :client_key, :certificate, :private_key, :verify_depth, + :version, :min_version, :max_version) def verify? verify != false