Merge RubyGems-3.3.1 and Bundler-2.3.1

This commit is contained in:
Hiroshi SHIBATA 2021-12-23 09:21:36 +09:00
parent feaf4fbc3f
commit fb1ab27f53
Notes: git 2021-12-23 09:45:05 +09:00
38 changed files with 171 additions and 254 deletions

View file

@ -115,11 +115,9 @@ class Gem::Security::Policy
raise Gem::Security::Exception, 'missing key or signature'
end
public_key = Gem::Security.get_public_key(key)
raise Gem::Security::Exception,
"certificate #{signer.subject} does not match the signing key" unless
signer.public_key.to_pem == public_key.to_pem
signer.check_private_key(key)
true
end