diff options
author | jperkin <jperkin@pkgsrc.org> | 2021-11-09 12:14:52 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2021-11-09 12:14:52 +0000 |
commit | e38166f53ba291b201f7876d731ba92c7872e3b1 (patch) | |
tree | 68055f8e67140194dc87fdda40b1cf076c458f19 /lang/ruby30-base/patches | |
parent | 22471769e1937f3ad8739a862295c19c75d510ca (diff) | |
download | pkgsrc-e38166f53ba291b201f7876d731ba92c7872e3b1.tar.gz |
ruby30-base: Support OpenSSL 3.
Diffstat (limited to 'lang/ruby30-base/patches')
-rw-r--r-- | lang/ruby30-base/patches/patch-ext_openssl_openssl__missing.h | 15 | ||||
-rw-r--r-- | lang/ruby30-base/patches/patch-ext_openssl_ossl__pkey__rsa.c | 16 |
2 files changed, 31 insertions, 0 deletions
diff --git a/lang/ruby30-base/patches/patch-ext_openssl_openssl__missing.h b/lang/ruby30-base/patches/patch-ext_openssl_openssl__missing.h new file mode 100644 index 00000000000..8d40aa3f956 --- /dev/null +++ b/lang/ruby30-base/patches/patch-ext_openssl_openssl__missing.h @@ -0,0 +1,15 @@ +$NetBSD: patch-ext_openssl_openssl__missing.h,v 1.1 2021/11/09 12:14:52 jperkin Exp $ + +Support OpenSSL 3. + +--- ext/openssl/openssl_missing.h.orig 2021-07-07 10:08:35.000000000 +0000 ++++ ext/openssl/openssl_missing.h +@@ -235,7 +235,7 @@ IMPL_PKEY_GETTER(EC_KEY, ec) + # define TS_STATUS_INFO_get0_failure_info(a) ((a)->failure_info) + #endif + +-#if !defined(HAVE_TS_VERIFY_CTS_SET_CERTS) ++#if !defined(HAVE_TS_VERIFY_CTS_SET_CERTS) && !defined(TS_VERIFY_CTS_set_certs) + # define TS_VERIFY_CTS_set_certs(ctx, crts) ((ctx)->certs=(crts)) + #endif + diff --git a/lang/ruby30-base/patches/patch-ext_openssl_ossl__pkey__rsa.c b/lang/ruby30-base/patches/patch-ext_openssl_ossl__pkey__rsa.c new file mode 100644 index 00000000000..ae527d0dd35 --- /dev/null +++ b/lang/ruby30-base/patches/patch-ext_openssl_ossl__pkey__rsa.c @@ -0,0 +1,16 @@ +$NetBSD: patch-ext_openssl_ossl__pkey__rsa.c,v 1.1 2021/11/09 12:14:52 jperkin Exp $ + +Support OpenSSL 3. + +--- ext/openssl/ossl_pkey_rsa.c.orig 2021-07-07 10:08:35.000000000 +0000 ++++ ext/openssl/ossl_pkey_rsa.c +@@ -947,7 +947,9 @@ Init_ossl_rsa(void) + rb_define_method(cRSA, "params", ossl_rsa_get_params, 0); + + DefRSAConst(PKCS1_PADDING); ++#ifdef SSLV23_PADDING + DefRSAConst(SSLV23_PADDING); ++#endif + DefRSAConst(NO_PADDING); + DefRSAConst(PKCS1_OAEP_PADDING); + |