rubysl-openssl 2.9 → 2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openssl/ssl.rb +4 -0
- data/lib/rubysl/openssl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8170c92fac3dc7ed60bbd846bd9c6c9305b67f9e
|
4
|
+
data.tar.gz: 6dbb74381898065c6db26bbf1dd07f580da5011a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccae0e900ef78f9858ea6e5f080d4dcd1414c9063e1527f21a19b05d3aec1a2acd75e7d1647ec0e0cb2c83d1a380038fa72679dcb27050bbd37506b2e5f00fb8
|
7
|
+
data.tar.gz: 4b7aceae7fa70b44e876e00900c16b5dcde6d64e73242a43ad569847dbe03c5ca0dc395d4e854c5076d3811cd91b2fe9136232a1c730cf740826c3eb5b427cc0
|
data/lib/openssl/ssl.rb
CHANGED
@@ -163,6 +163,7 @@ module OpenSSL
|
|
163
163
|
end
|
164
164
|
|
165
165
|
def verify_certificate_identity(cert, hostname)
|
166
|
+
Rubinius.synchronize(SSL) do
|
166
167
|
should_verify_common_name = true
|
167
168
|
cert.extensions.each{|ext|
|
168
169
|
next if ext.oid != "subjectAltName"
|
@@ -192,6 +193,7 @@ module OpenSSL
|
|
192
193
|
}
|
193
194
|
end
|
194
195
|
return false
|
196
|
+
end
|
195
197
|
end
|
196
198
|
module_function :verify_certificate_identity
|
197
199
|
|
@@ -282,7 +284,9 @@ module OpenSSL
|
|
282
284
|
@sync_close = false
|
283
285
|
@hostname = nil
|
284
286
|
@io.nonblock = true if @io.respond_to?(:nonblock=)
|
287
|
+
Rubinius.synchronize(SSL) do
|
285
288
|
context.setup
|
289
|
+
end
|
286
290
|
super()
|
287
291
|
end
|
288
292
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysl-openssl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '2.
|
4
|
+
version: '2.10'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|