diff options
Diffstat (limited to 'lib/rubygems/gem_openssl.rb')
-rw-r--r-- | lib/rubygems/gem_openssl.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/rubygems/gem_openssl.rb b/lib/rubygems/gem_openssl.rb index 9d5fa4ac77..682058f2c1 100644 --- a/lib/rubygems/gem_openssl.rb +++ b/lib/rubygems/gem_openssl.rb @@ -36,6 +36,8 @@ module Gem end end +# :stopdoc: + begin require 'openssl' @@ -44,7 +46,7 @@ begin Gem.ssl_available = !!OpenSSL::Digest::SHA1 - class OpenSSL::X509::Certificate # :nodoc: + class OpenSSL::X509::Certificate # Check the validity of this certificate. def check_validity(issuer_cert = nil, time = Time.now) ret = if @not_before && @not_before > time @@ -66,8 +68,6 @@ rescue LoadError, StandardError Gem.ssl_available = false end -# :stopdoc: - module Gem::SSL # We make our own versions of the constants here. This allows us @@ -88,5 +88,3 @@ module Gem::SSL end -# :startdoc: - |