summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-05 15:33:58 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-05 15:33:58 +0000
commitd309921ea54b54086ca20e57ab188528ef63023f (patch)
tree31d7fbc7a74c1bbdec403f03e8747bd418e26eb3 /lib
parentea966b6ca5623ca49a05fee3e9f9a28f1c7c5d70 (diff)
merge revision(s) 53419: [Backport #11940]
* lib/rubygems/security.rb (DIGEST_ALGORITHM, KEY_ALGORITHM): should check same name as the used constants. [ruby-core:72674] [Bug #11940] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/security.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/security.rb b/lib/rubygems/security.rb
index d44ebec9f5..941462d7bd 100644
--- a/lib/rubygems/security.rb
+++ b/lib/rubygems/security.rb
@@ -340,7 +340,7 @@ module Gem::Security
# Digest algorithm used to sign gems
DIGEST_ALGORITHM =
- if defined?(OpenSSL::Digest) then
+ if defined?(OpenSSL::Digest::SHA1) then
OpenSSL::Digest::SHA1
end
@@ -356,7 +356,7 @@ module Gem::Security
# Algorithm for creating the key pair used to sign gems
KEY_ALGORITHM =
- if defined?(OpenSSL::PKey) then
+ if defined?(OpenSSL::PKey::RSA) then
OpenSSL::PKey::RSA
end