diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-09-09 00:28:40 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-09-09 00:28:40 +0900 |
commit | c98322157e67ed3aa81efef803b067daa4fd0e81 (patch) | |
tree | 1acdfd4c6e280c40b5b614b702eea52e14c078e3 /lib | |
parent | 34e7fe34ee326d8d0ceb594d0fe5a90c22d91c63 (diff) | |
download | ruby-openssl-c98322157e67ed3aa81efef803b067daa4fd0e81.tar.gz |
ssl: fix comments so that RDoc can find SSLContext#servername_cb
Diffstat (limited to 'lib')
-rw-r--r-- | lib/openssl/ssl.rb | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/lib/openssl/ssl.rb b/lib/openssl/ssl.rb index 190f5042..f40a4514 100644 --- a/lib/openssl/ssl.rb +++ b/lib/openssl/ssl.rb @@ -16,8 +16,7 @@ require "io/nonblock" module OpenSSL module SSL class SSLContext - # :nodoc: - DEFAULT_PARAMS = { + DEFAULT_PARAMS = { # :nodoc: :ssl_version => "SSLv23", :verify_mode => OpenSSL::SSL::VERIFY_PEER, :verify_hostname => true, @@ -68,8 +67,7 @@ module OpenSSL ) end - # :nodoc: - DEFAULT_CERT_STORE = OpenSSL::X509::Store.new + DEFAULT_CERT_STORE = OpenSSL::X509::Store.new # :nodoc: DEFAULT_CERT_STORE.set_default_paths DEFAULT_CERT_STORE.flags = OpenSSL::X509::V_FLAG_CRL_CHECK_ALL @@ -84,14 +82,12 @@ module OpenSSL attr_accessor :tmp_dh_callback - if ExtConfig::HAVE_TLSEXT_HOST_NAME - # A callback invoked at connect time to distinguish between multiple - # server names. - # - # The callback is invoked with an SSLSocket and a server name. The - # callback must return an SSLContext for the server name or nil. - attr_accessor :servername_cb - end + # A callback invoked at connect time to distinguish between multiple + # server names. + # + # The callback is invoked with an SSLSocket and a server name. The + # callback must return an SSLContext for the server name or nil. + attr_accessor :servername_cb if ExtConfig::HAVE_TLSEXT_HOST_NAME # call-seq: # SSLContext.new => ctx |