diff --git a/lib/rets/client.rb b/lib/rets/client.rb index b0209f2..732d23e 100644 --- a/lib/rets/client.rb +++ b/lib/rets/client.rb @@ -19,6 +19,8 @@ class Client # * :verify_mode [Integer, Optional] How to verify the SSL certificate when connecting through HTTPS, either OpenSSL::SSL::VERIFY_PEER or OpenSSL::SSL::VERIFY_NONE, defaults to OpenSSL::SSL::VERIFY_NONE # * :ca_file [String, Optional] Path to the CA certification file in PEM format # * :ca_path [String, Optional] Path to the directory containing CA certifications in PEM format + # * :ssl_version [String, Optional] SSL version used for HTTP Client + # * :ssl_cipher [String, Optional] Cipher used for TLS # # @raise [ArgumentError] # @raise [RETS::APIError] diff --git a/lib/rets/http.rb b/lib/rets/http.rb index 9764941..52262ba 100644 --- a/lib/rets/http.rb +++ b/lib/rets/http.rb @@ -200,6 +200,8 @@ def request(args, &block) http.verify_mode = @config[:http][:verify_mode] || OpenSSL::SSL::VERIFY_NONE http.ca_file = @config[:http][:ca_file] if @config[:http][:ca_file] http.ca_path = @config[:http][:ca_path] if @config[:http][:ca_path] + http.ssl_version = @config[:http][:ssl_version] if @config[:http][:ssl_version] + http.ssl_cipher = @config[:http][:ssl_cipher] if @config[:http][:ssl_cipher] end body_data = nil