We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e59543b commit 13ca7c9Copy full SHA for 13ca7c9
lib/net/ldap/connection.rb
@@ -89,9 +89,10 @@ def self.wrap_with_ssl(io, tls_options = {})
89
# generously contributing the :start_tls path.
90
#++
91
def setup_encryption(args)
92
+ args[:tls_options] ||= {}
93
case args[:method]
94
when :simple_tls
- @conn = self.class.wrap_with_ssl(@conn, args.fetch(:tls_options, {}))
95
+ @conn = self.class.wrap_with_ssl(@conn, args[:tls_options])
96
# additional branches requiring server validation and peer certs, etc.
97
# go here.
98
when :start_tls
0 commit comments