ssltool 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ssltool/certificate.rb +1 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 610613b7103acc41eb99b6906c13abd33fab9462
4
- data.tar.gz: f8266de4babff6a3a3977e89ec2ad1afaa7f85ef
3
+ metadata.gz: 74747cf89cd77bbc9ef708d1a6ece8b291345ffa
4
+ data.tar.gz: a2cd31c2d1a0593803889a6adcf2afad4c6ae84e
5
5
  SHA512:
6
- metadata.gz: 59097c73aeaa0fbdafa955999332548025bd5f065c14a66f4ab3ed067cd35a1c036675d570616503e7b3c987c0653fc8150e57ead319ae270fe8e5bdee187c4c
7
- data.tar.gz: 9e3749aa4be99f2ad8649d40e96c85f86eeb97a8d6286453bc362fa1afa69299bc0c9f679694f29ab5f926a2195194c287d61d6a11e4327f809b13c4861b8da7
6
+ metadata.gz: e5b0c59712bb5bd1ce86853c6c8557d4ece6672a33e585504f2cb0a6e70d7e8a58c8771997f28bc190f39b8ca21bb0bbdea8b6377ae2253d3a2ece89008cd953
7
+ data.tar.gz: 3e6b431d2333d3633c1b2487a20e9c1427e3040b373a25db33902dcf41a76deda487a26fd878c76aa7ff462ecd613283eee68f2d10dd57fb3f454bec03c7f2cb
@@ -30,6 +30,7 @@ module SSLTool
30
30
  def signed_by?(other_cert)
31
31
  verify(other_cert.public_key)
32
32
  rescue OpenSSL::X509::CertificateError => e
33
+ OpenSSL.errors # clear error queue to prevent pg errors
33
34
  return false if e.message == "wrong public key type" # self.signature_algorithm is incompatible with type of other_cert.public_key; verify is definitely false
34
35
  return nil if e.message == "unknown message digest algorithm" && signature_algorithm =~ /^md2/ # md2 is not present in later versions of openssl; can't tell signature verifies, so returning nil
35
36
  raise e
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssltool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caio Chassot