mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Merge RubyGems-3.3.1 and Bundler-2.3.1
This commit is contained in:
parent
feaf4fbc3f
commit
fb1ab27f53
Notes:
git
2021-12-23 09:45:05 +09:00
38 changed files with 171 additions and 254 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue