changeset_r53419.diff 520 B

1234567891011121314151617181920
  1. --- a/lib/rubygems/security.rb (revision 53418)
  2. +++ b/lib/rubygems/security.rb (revision 53419)
  3. @@ -340,7 +340,7 @@
  4. # Digest algorithm used to sign gems
  5. DIGEST_ALGORITHM =
  6. - if defined?(OpenSSL::Digest) then
  7. + if defined?(OpenSSL::Digest::SHA1) then
  8. OpenSSL::Digest::SHA1
  9. end
  10. @@ -356,7 +356,7 @@
  11. # Algorithm for creating the key pair used to sign gems
  12. KEY_ALGORITHM =
  13. - if defined?(OpenSSL::PKey) then
  14. + if defined?(OpenSSL::PKey::RSA) then
  15. OpenSSL::PKey::RSA
  16. end