epics 2.1.0 → 2.1.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
  SHA256:
3
- metadata.gz: 15557f467cdc9d8ca61665fc9c177001f95c668c6b05bab941223a630130e7f4
4
- data.tar.gz: b6177ec4c23c26641ddc48eb1b99478c49768e02a114d448769aa405bbe6bedc
3
+ metadata.gz: 980932f78c7674473397501f8e2605ea228440f7f6eb0f8e83b64191c390fb59
4
+ data.tar.gz: 646f6c19ced2dfc713a632dee70a4bbd88bf18334593ce743b4175fcb73ee063
5
5
  SHA512:
6
- metadata.gz: ae3f679ae1b3d6a32851701716eca59ab4d17d9e3ef8f0f95ba7acd09ebb1c9f80750ee76f65e53596490b9aead1c89196c530515a8c40a19049c14d254fe8eb
7
- data.tar.gz: a4b9d40d66190362de7f68d11fbb178827980683c5d25323c9d48a6f15f5fa4dcce721f52e80b601a73f3877dee648042c2d95938ce597b91868317b050d8b7c
6
+ metadata.gz: f3ed6cc291a2ff0a6049f3cb25312364a8165a32aaf87127cb75f655f6338dfe6f9e3ab640f81a13fe177d3e6e3229d2712df8eb9f7c1885b6ebe777597f4061
7
+ data.tar.gz: ddd2ec2d76ff97053856883471725ae1f0a9f8c97aab9f094ab9598966d3d4494f8cb76184e0a454721b9cb304d403de4e10677ea2a21bea13bad288595d759c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 2.1.1
2
+
3
+ - [HOUSEKEEPING] update Bank public key initialization for OpenSSL 3
4
+
1
5
  ### 2.1.0
2
6
 
3
7
  - [HOUSEKEEPING] updates Nokogiri dependencies
data/README.md CHANGED
@@ -3,9 +3,11 @@
3
3
 
4
4
  # Epics
5
5
 
6
- EPICS is a ruby implementation of the [EBICS](http://www.ebics.org/) (Electronic Banking Internet
6
+ EPICS is a ruby implementation of the [EBICS](https://www.ebics.org/) (Electronic Banking Internet
7
7
  Communication Standard).
8
8
 
9
+ It supports EBICS 2.5.
10
+
9
11
  The client supports the complete initialization process comprising INI, HIA and HPB including the
10
12
  INI letter generation. It offers support for the most common download and upload order types
11
13
  (STA HAA HTD HPD PTK HAC HKD C52 C53 C54 CD1 CDB CDD CCT VMK).
data/lib/epics/client.rb CHANGED
@@ -105,13 +105,11 @@ class Epics::Client
105
105
  modulus = Base64.decode64(node.at_xpath(".//*[local-name() = 'Modulus']").content)
106
106
  exponent = Base64.decode64(node.at_xpath(".//*[local-name() = 'Exponent']").content)
107
107
 
108
- bank = OpenSSL::PKey::RSA.new
109
- if bank.respond_to?(:set_key)
110
- bank.set_key(OpenSSL::BN.new(modulus, 2), OpenSSL::BN.new(exponent, 2), nil)
111
- else
112
- bank.n = OpenSSL::BN.new(modulus, 2)
113
- bank.e = OpenSSL::BN.new(exponent, 2)
114
- end
108
+ sequence = []
109
+ sequence << OpenSSL::ASN1::Integer.new(OpenSSL::BN.new(modulus, 2))
110
+ sequence << OpenSSL::ASN1::Integer.new(OpenSSL::BN.new(exponent, 2))
111
+
112
+ bank = OpenSSL::PKey::RSA.new(OpenSSL::ASN1::Sequence(sequence).to_der)
115
113
 
116
114
  self.keys["#{host_id.upcase}.#{type}"] = Epics::Key.new(bank)
117
115
  end
data/lib/epics/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Epics
4
- VERSION = '2.1.0'
4
+ VERSION = '2.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epics
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Brillert