libsaml 2.21.0 → 2.21.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15193bdd2578dc39bfadd25abbe2ffb66f9ee02f
4
- data.tar.gz: 4205f01615fde6e2229a0a9cb7ab9b61d4d40c53
3
+ metadata.gz: 37ed104b474d7defa9f00a4a87b35ebfb1a38f08
4
+ data.tar.gz: a9afefb3cf58dab63370fe193b5df8eb912eae97
5
5
  SHA512:
6
- metadata.gz: e4f2fb5e5b120586fe1ccc0ee40fa0653207a632ffe37ecc63c658b0054b2831e24647c6453fe6d59a331658f087a0843c1c4b1cecd13677930df82fa740e517
7
- data.tar.gz: 43ae8e5f98381dda8ac6ee795bdb24a169b5a93b02f20f9cc2d24dafc7af8cd620bcbfcb1f0b339c10e8b2afbda5d0809bae9731bd0ec5cf30d8a50cbaafd235
6
+ metadata.gz: 25ab66cc4b92fcaaeabdb69462f0156e2ae7b7709d71a906f077be25ea65d8aa7a92eda1e76eedd4c8a9aad8ae92d28f638118b1597401eda7b53218675650e6
7
+ data.tar.gz: 225f8901f40605f04df33e355606613d300c8b927fbf0bae685da30c19f6e9c57aa09ab8b48072484bff99d8b051872e0519f9ff3742777621bafc54b7c68998
data/lib/saml/provider.rb CHANGED
@@ -89,7 +89,12 @@ module Saml
89
89
  end
90
90
 
91
91
  def verify(signature_algorithm, signature, data, key_name = nil)
92
- certificate(key_name).public_key.verify(digest_method(signature_algorithm).new, signature, data) rescue nil
92
+ valid = certificate(key_name).public_key.verify(digest_method(signature_algorithm).new, signature, data) rescue nil
93
+
94
+ # Clear OpenSSL error queue if verification fails - https://bugs.ruby-lang.org/issues/7215
95
+ OpenSSL.errors if !valid
96
+
97
+ valid
93
98
  end
94
99
 
95
100
  def authn_requests_signed?
data/lib/saml/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Saml
2
- VERSION = '2.21.0'
2
+ VERSION = '2.21.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libsaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.21.0
4
+ version: 2.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoist Claassen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-15 00:00:00.000000000 Z
11
+ date: 2016-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport