Skip to content

Commit 9874a4b

Browse files
committed
enforce use of tlsv1.2
1 parent a677a2c commit 9874a4b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ And then execute:
1414

1515
Or install it yourself as:
1616

17-
$ gem install block_io -v=1.0.5
17+
$ gem install block_io -v=1.0.7
1818

1919
## Changelog
2020

21+
*02/06/17*: Force use of TLSv1.2.
2122
*11/04/14*: Fix issue with nil parameters in an API call.
2223
*11/03/14*: Reduce dependence on OpenSSL. PBKDF2 function is now Ruby-based. Should work well with Heroku's libraries.
2324
*10/18/14*: Now using deterministic signatures (RFC6979), and BIP62 to hinder transaction malleability.

lib/block_io.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def self.api_call(endpoint)
106106
@conn_pool.with do |hc|
107107
# prevent initiation of HTTPClients every time we make this call, use a connection_pool
108108

109-
hc.ssl_config.ssl_version = :TLSv1
109+
hc.ssl_config.ssl_version = :TLSv1_2
110110
response = hc.post("#{@base_url.gsub('API_CALL',endpoint[0]).gsub('VERSION', 'v'+@version.to_s) + @api_key}", endpoint[1])
111111

112112
begin

lib/block_io/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module BlockIo
2-
VERSION = "1.0.5"
2+
VERSION = "1.0.7"
33
end

0 commit comments

Comments
 (0)