diff options
author | Kazuki Yamaguchi <[email protected]> | 2025-01-14 21:49:12 +0900 |
---|---|---|
committer | git <[email protected]> | 2025-01-20 17:12:57 +0000 |
commit | 441862dc9f11d83e9e35c3b965fe84e42e178a35 (patch) | |
tree | 1f38daba4a711c0c88442ff82aca19ff6539fc95 /ext/openssl/ossl_x509store.c | |
parent | 010e8bff88b50a1c43515e3aa16030ec7a2b90c3 (diff) |
[ruby/openssl] Require OpenSSL 1.1.0 or later
Drop support for OpenSSL 1.0.2. It has reached upstream EOL in 2019-12.
Most distributions that shipped with OpenSSL 1.0.2 have also reached
EOL, or provide a newer version in the package repository:
- RHEL 7 (EOL 2024-06)
- Ubuntu 16.04 LTS (EOL 2021-04)
- Amazon Linux 2 (EOL 2026-06, but OpenSSL 1.1.1 can be installed via
the openssl11{,-devel} package)
https://github.com/ruby/openssl/commit/38ec6fd50e
Diffstat (limited to 'ext/openssl/ossl_x509store.c')
-rw-r--r-- | ext/openssl/ossl_x509store.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/openssl/ossl_x509store.c b/ext/openssl/ossl_x509store.c index c99ed8f4a3..c707160ea8 100644 --- a/ext/openssl/ossl_x509store.c +++ b/ext/openssl/ossl_x509store.c @@ -212,10 +212,6 @@ ossl_x509store_initialize(int argc, VALUE *argv, VALUE self) GetX509Store(self, store); if (argc != 0) rb_warn("OpenSSL::X509::Store.new does not take any arguments"); -#if !defined(HAVE_OPAQUE_OPENSSL) - /* [Bug #405] [Bug #1678] [Bug #3000]; already fixed? */ - store->ex_data.sk = NULL; -#endif X509_STORE_set_verify_cb(store, x509store_verify_cb); ossl_x509store_set_vfy_cb(self, Qnil); @@ -332,11 +328,7 @@ ossl_x509store_set_time(VALUE self, VALUE time) X509_VERIFY_PARAM *param; GetX509Store(self, store); -#ifdef HAVE_X509_STORE_GET0_PARAM param = X509_STORE_get0_param(store); -#else - param = store->param; -#endif X509_VERIFY_PARAM_set_time(param, NUM2LONG(rb_Integer(time))); return time; } |