openssl 3.1.2 → 3.1.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: dbe917c45b0e60c1735c892a39e0b4868e596b9ed2ca8cebad6b9ed4aa83ad65
4
- data.tar.gz: 71d418aea139e127f3dff2034ddf23aa4123b5ff557318830a3cbf6a25ae71dc
3
+ metadata.gz: c0a6032c0639646fac204b99fe529e7f25f4f69724fc2ea8ac04e7e65395536e
4
+ data.tar.gz: c3527c0a090fc33356a1bbebe7c7a3de03c127a47313b40aa3a787e6186dc2f6
5
5
  SHA512:
6
- metadata.gz: 5301e268ece1b30929810331c436a3946817f3805d2a60eca1f3d112342080db124a5f722c81eb5724a0b7e75890c74bb9bf308a1f73d6103a0169e56ef9147d
7
- data.tar.gz: 5ac8d51298e646478c15fa41d0f3376a3a261513ad5eaa4c902d428ac92488b824db450e6136a8f88c37d50c8c6a63a850fe418b6d407c8698d03f8a1a3b4b77
6
+ metadata.gz: c445e1f6158d6567479167e7569c0a49eba52df06078c7127e491207cb7b0a0fc74977ba187badf0f19badffabc1ae490988efb5e66cc037bc44e071c7b7d8da
7
+ data.tar.gz: 0e0f18e962c10fd57520c66776c732f557d7a7c54d5080bd1cde5fec8819fd57ad022dc1d271482ef43f71e2e50153e849c094287448751f7ec188b88caa8efc
data/History.md CHANGED
@@ -1,3 +1,13 @@
1
+ Version 3.1.3
2
+ =============
3
+
4
+ Bug fixes
5
+ ---------
6
+
7
+ * Fix missing NULL check for `EVP_PKEY_get0()` functions with OpenSSL 3.x.
8
+ [[GitHub #957]](https://github.com/ruby/openssl/pull/957)
9
+
10
+
1
11
  Version 3.1.2
2
12
  =============
3
13
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenSSL
4
- VERSION = "3.1.2"
4
+ VERSION = "3.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Bosslet