openssl 3.0.3 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/openssl/x509.rb CHANGED
@@ -122,8 +122,8 @@ module OpenSSL
122
122
  include Helpers
123
123
 
124
124
  # Get the distributionPoint fullName URI from the certificate's CRL
125
- # distribution points extension, as described in RFC 5280 Section
126
- # 4.2.1.13.
125
+ # distribution points extension, as described in RFC5280 Section
126
+ # 4.2.1.13
127
127
  #
128
128
  # Returns an array of strings or nil or raises ASN1::ASN1Error.
129
129
  def crl_uris
@@ -135,19 +135,19 @@ module OpenSSL
135
135
  raise ASN1::ASN1Error, "invalid extension"
136
136
  end
137
137
 
138
- crl_uris = cdp_asn1.flat_map do |crl_distribution_point|
138
+ crl_uris = cdp_asn1.map do |crl_distribution_point|
139
139
  distribution_point = crl_distribution_point.value.find do |v|
140
140
  v.tag_class == :CONTEXT_SPECIFIC && v.tag == 0
141
141
  end
142
142
  full_name = distribution_point&.value&.find do |v|
143
143
  v.tag_class == :CONTEXT_SPECIFIC && v.tag == 0
144
144
  end
145
- full_name&.value&.select do |v|
145
+ full_name&.value&.find do |v|
146
146
  v.tag_class == :CONTEXT_SPECIFIC && v.tag == 6 # uniformResourceIdentifier
147
147
  end
148
148
  end
149
149
 
150
- crl_uris.empty? ? nil : crl_uris.map(&:value)
150
+ crl_uris&.map(&:value)
151
151
  end
152
152
  end
153
153
 
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.1.0
5
5
  platform: ruby
6
- original_platform: ''
7
6
  authors:
8
7
  - Martin Bosslet
9
8
  - SHIBATA Hiroshi
10
9
  - Zachary Scott
11
10
  - Kazuki Yamaguchi
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2024-12-18 00:00:00.000000000 Z
14
+ date: 2022-12-23 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  description: It wraps the OpenSSL library.
17
17
  email:
@@ -100,6 +100,7 @@ licenses:
100
100
  - Ruby
101
101
  metadata:
102
102
  msys2_mingw_dependencies: openssl
103
+ post_install_message:
103
104
  rdoc_options:
104
105
  - "--main"
105
106
  - README.md
@@ -116,7 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
117
  - !ruby/object:Gem::Version
117
118
  version: '0'
118
119
  requirements: []
119
- rubygems_version: 3.6.1
120
+ rubygems_version: 3.4.0.dev
121
+ signing_key:
120
122
  specification_version: 4
121
123
  summary: OpenSSL provides SSL, TLS and general purpose cryptography.
122
124
  test_files: []