lib/httpclient/jruby_ssl_socket.rb in httpclient-2.7.0.1 vs lib/httpclient/jruby_ssl_socket.rb in httpclient-2.7.1
- old
+ new
@@ -313,11 +313,11 @@
end
def add(file_or_dir)
return if file_or_dir == :default
if File.directory?(file_or_dir)
- warn('directory not yet supported')
+ warn("#{file_or_dir}: directory not yet supported")
else
pem = nil
File.read(file_or_dir).each_line do |line|
case line
when /-----BEGIN CERTIFICATE-----/
@@ -445,10 +445,10 @@
DEFAULT_SSL_PROTOCOL = 'TLS'
def initialize(socket, dest, config, debug_dev = nil)
if config.ssl_version == :auto
ssl_version = DEFAULT_SSL_PROTOCOL
else
- ssl_version = config.to_s.gsub(/_/, '.')
+ ssl_version = config.ssl_version.to_s.gsub(/_/, '.')
end
unless config.cert_store_crl_items.empty?
raise NotImplementedError.new('Manual CRL configuration is not yet supported')
end