httpclient 2.7.2 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/httpclient/ssl_config.rb +2 -10
- data/lib/httpclient/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: 7d31f6d6614892afef55ee460384719e2a3fd308
|
4
|
+
data.tar.gz: deb8c8f5172a0d956daebda1853b585d7d2f5845
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5df03c1b552368850d643690166ef8dadedab621395ffae31c279cf863b4d4c8b7a1ac1504b9bf5feb6dde6452ce47ec725187dc15535c3c6576f4f606961664
|
7
|
+
data.tar.gz: ef50511dd9b8d46ff3c6b5bad0e55a66b99501c62246b308c3f54eec3273253e006dce6ef13ab78b8533b2fb5eeda121c00f1943d562815f40c9c33e472b0f91
|
@@ -441,18 +441,10 @@ class HTTPClient
|
|
441
441
|
nil
|
442
442
|
end
|
443
443
|
|
444
|
-
# Use
|
445
|
-
# CVE-2015-1793 requires: OpenSSL >= 1.0.2d or OpenSSL >= 1.0.1p
|
446
|
-
# OpenSSL before 1.0.1 does not have CVE-2015-1793 problem
|
444
|
+
# Use 2048 bit certs trust anchor
|
447
445
|
def load_cacerts(cert_store)
|
448
446
|
ver = OpenSSL::OPENSSL_VERSION
|
449
|
-
|
450
|
-
(ver.start_with?('OpenSSL ') && ver >= 'OpenSSL 1.0.2d') || defined?(JRuby)
|
451
|
-
filename = 'cacert.pem'
|
452
|
-
else
|
453
|
-
filename = 'cacert1024.pem'
|
454
|
-
end
|
455
|
-
file = File.join(File.dirname(__FILE__), filename)
|
447
|
+
file = File.join(File.dirname(__FILE__), 'cacert.pem')
|
456
448
|
unless defined?(JRuby)
|
457
449
|
# JRuby uses @cert_store_items
|
458
450
|
add_trust_ca_to_store(cert_store, file)
|
data/lib/httpclient/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: nahi@ruby-lang.org
|