openssl 3.2.1 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d768799eb4f3fb6e1ec8937cdf77c3ab5c5a3c453a8ea38e8886b0c96eb85778
4
- data.tar.gz: 7e36f7e488cce83fbeae8cea19bb5cc817a10759243c5ce9345a65e0837ba7ca
3
+ metadata.gz: 64ac97d0867e71adbd1dd19f3e4e3611137ddbf42f1b9c57d0c3b597969611b3
4
+ data.tar.gz: 11ea208f220515c582c9e42810ca0ac5b1084dff786480cc53836577c1416ab8
5
5
  SHA512:
6
- metadata.gz: 69dcd674d157588140b6ef64f3996a4a7a0847ddd713550752ac509310430fe5b9463c532c69538cbdc136bcbe934d6e2670a6bd4e2f91283cff18ddd5bf2eb3
7
- data.tar.gz: 5583751022390d99a99b2179113acd5589366ecc407b50c3a0833ba2873ba3d3037a05644e02ffffb507ea4c3852e90c9f9507a8f65188c96034ed36533e2213
6
+ metadata.gz: d001c4ed51d7859d561b59ddce0489505c07ed3c0f1e874c444b28da1b83f9da2aa08fb08b2de6be0c3f8ec91f9528cd32beef6f0f0915fe51169cb250406ec2
7
+ data.tar.gz: 68334544bc3770854775c44e42ab3ac7253e47f0a35c1cbf4f2c9d0517c1ab5b1b62156f13e427b9f43e6f1aef1b67cd873e9776ce884717215275332e18ec77
data/History.md CHANGED
@@ -1,3 +1,15 @@
1
+ Version 3.2.3
2
+ =============
3
+
4
+ Merged changes in 3.1.3.
5
+
6
+
7
+ Version 3.2.2
8
+ =============
9
+
10
+ Merged changes in 3.1.2.
11
+
12
+
1
13
  Version 3.2.1
2
14
  =============
3
15
 
@@ -44,6 +56,33 @@ Notable changes
44
56
  [[GitHub #141]](https://github.com/ruby/openssl/pull/141)
45
57
 
46
58
 
59
+ Version 3.1.3
60
+ =============
61
+
62
+ Bug fixes
63
+ ---------
64
+
65
+ * Fix missing NULL check for `EVP_PKEY_get0()` functions with OpenSSL 3.x.
66
+ [[GitHub #957]](https://github.com/ruby/openssl/pull/957)
67
+
68
+
69
+ Version 3.1.2
70
+ =============
71
+
72
+ Bug fixes
73
+ ---------
74
+
75
+ * Fix crash when attempting to export an incomplete `OpenSSL::PKey::DSA` key.
76
+ [[GitHub #845]](https://github.com/ruby/openssl/issues/845)
77
+ [[GitHub #847]](https://github.com/ruby/openssl/pull/847)
78
+ * Remove the `OpenSSL::X509::V_FLAG_CRL_CHECK_ALL` flag from the default store
79
+ used by `OpenSSL::SSL::SSLContext#set_params`. It causes certificate
80
+ verification to fail with OpenSSL 3.6.0. It has no effect with any other
81
+ OpenSSL versions.
82
+ [[GitHub #949]](https://github.com/ruby/openssl/issues/949)
83
+ [[GitHub #950]](https://github.com/ruby/openssl/pull/950)
84
+
85
+
47
86
  Version 3.1.1
48
87
  =============
49
88
 
@@ -937,6 +937,7 @@ ossl_pkey_export_spki(VALUE self, int to_der)
937
937
  BIO *bio;
938
938
 
939
939
  GetPKey(self, pkey);
940
+ ossl_pkey_check_public_key(pkey);
940
941
  bio = BIO_new(BIO_s_mem());
941
942
  if (!bio)
942
943
  ossl_raise(ePKeyError, "BIO_new");
@@ -21,6 +21,8 @@
21
21
  EVP_PKEY *_pkey; \
22
22
  GetPKeyDH((obj), _pkey); \
23
23
  (dh) = EVP_PKEY_get0_DH(_pkey); \
24
+ if ((dh) == NULL) \
25
+ ossl_raise(eDHError, "failed to get DH from EVP_PKEY"); \
24
26
  } while (0)
25
27
 
26
28
  /*
@@ -21,6 +21,8 @@
21
21
  EVP_PKEY *_pkey; \
22
22
  GetPKeyDSA((obj), _pkey); \
23
23
  (dsa) = EVP_PKEY_get0_DSA(_pkey); \
24
+ if ((dsa) == NULL) \
25
+ ossl_raise(eDSAError, "failed to get DSA from EVP_PKEY"); \
24
26
  } while (0)
25
27
 
26
28
  static inline int
@@ -22,6 +22,8 @@ static const rb_data_type_t ossl_ec_point_type;
22
22
  EVP_PKEY *_pkey; \
23
23
  GetPKeyEC(obj, _pkey); \
24
24
  (key) = EVP_PKEY_get0_EC_KEY(_pkey); \
25
+ if ((key) == NULL) \
26
+ ossl_raise(eECError, "failed to get EC_KEY from EVP_PKEY"); \
25
27
  } while (0)
26
28
 
27
29
  #define GetECGroup(obj, group) do { \
@@ -21,6 +21,8 @@
21
21
  EVP_PKEY *_pkey; \
22
22
  GetPKeyRSA((obj), _pkey); \
23
23
  (rsa) = EVP_PKEY_get0_RSA(_pkey); \
24
+ if ((rsa) == NULL) \
25
+ ossl_raise(eRSAError, "failed to get RSA from EVP_PKEY"); \
24
26
  } while (0)
25
27
 
26
28
  static inline int
data/lib/openssl/ssl.rb CHANGED
@@ -92,7 +92,6 @@ ssbzSibBsu/6iGtCOGEoXJf//////////wIBAg==
92
92
 
93
93
  DEFAULT_CERT_STORE = OpenSSL::X509::Store.new # :nodoc:
94
94
  DEFAULT_CERT_STORE.set_default_paths
95
- DEFAULT_CERT_STORE.flags = OpenSSL::X509::V_FLAG_CRL_CHECK_ALL
96
95
 
97
96
  # A callback invoked when DH parameters are required for ephemeral DH key
98
97
  # exchange.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenSSL
4
- VERSION = "3.2.1"
4
+ VERSION = "3.2.3"
5
5
  end
metadata CHANGED
@@ -1,17 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Bosslet
8
8
  - SHIBATA Hiroshi
9
9
  - Zachary Scott
10
10
  - Kazuki Yamaguchi
11
- autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2024-12-18 00:00:00.000000000 Z
13
+ date: 1980-01-02 00:00:00.000000000 Z
15
14
  dependencies: []
16
15
  description: OpenSSL for Ruby provides access to SSL/TLS and general-purpose cryptography
17
16
  based on the OpenSSL library.
@@ -103,7 +102,6 @@ licenses:
103
102
  - Ruby
104
103
  metadata:
105
104
  msys2_mingw_dependencies: openssl
106
- post_install_message:
107
105
  rdoc_options:
108
106
  - "--main"
109
107
  - README.md
@@ -120,8 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
118
  - !ruby/object:Gem::Version
121
119
  version: '0'
122
120
  requirements: []
123
- rubygems_version: 3.5.22
124
- signing_key:
121
+ rubygems_version: 3.6.9
125
122
  specification_version: 4
126
123
  summary: SSL/TLS and general-purpose cryptography for Ruby
127
124
  test_files: []