public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dimitris Soumis <dsoumis@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/tomcat-native] epel8: Revert "Backport OpenSSL 1.1.1 compatibility to fix the EL8 build"
Date: Tue, 27 Oct 2026 12:20:48 GMT [thread overview]
Message-ID: <179310364859.1.14345186207891391961.rpms-tomcat-native-c3c886d69a4e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/tomcat-native
Branch : epel8
Commit : c3c886d69a4e465bcf4a069d07e26052a7c3cd2d
Author : Dimitris Soumis <dsoumis@redhat.com>
Date : 2026-10-27T14:20:26+02:00
Stats : +2/-81 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/tomcat-native/c/c3c886d69a4e465bcf4a069d07e26052a7c3cd2d?branch=epel8
Log:
Revert "Backport OpenSSL 1.1.1 compatibility to fix the EL8 build"
This reverts commit 6d4bbd8d468cdc6ce3f1d27ec8edcea886fcd02e.
---
diff --git a/tomcat-native-1.3.9-openssl111-compat.patch b/tomcat-native-1.3.9-openssl111-compat.patch
deleted file mode 100644
index 54df0e3..0000000
--- a/tomcat-native-1.3.9-openssl111-compat.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-Restore OpenSSL 1.1.1 compatibility (needed for EL8 / EPEL8).
-
-EL8 ships OpenSSL 1.1.1, which has neither <openssl/core_names.h> nor the
-OSSL_PARAM API. tomcat-native 1.3.9 broke the build against OpenSSL < 3.0 by:
-
- 1. adding an unconditional "#include <openssl/core_names.h>" in
- native/include/ssl_private.h (the provider.h include right above it is
- correctly wrapped in an OPENSSL_VERSION_NUMBER > 0x2FFFFFFFL guard), and
- 2. rewriting SSL_ec_GetParamFromFile() in native/src/sslutils.c to use the
- OpenSSL 3.0-only OSSL_PARAM API, guarded only by #ifdef HAVE_ECC with no
- version check.
-
-Other OpenSSL 3.0 code in the tree (e.g. the FIPS handling in ssl.c) is already
-version-guarded, so this is an upstream oversight rather than an intentional
-drop of 1.1.1 support.
-
-This patch moves the core_names.h include inside the existing version guard and
-adds an OpenSSL < 3.0 fallback for SSL_ec_GetParamFromFile() that reads the EC
-parameters with the 1.1.1 API and returns the curve NID the caller expects.
-
-Should be reported upstream (Apache Tomcat Native / tomcat-connectors).
-
-diff --git a/native/include/ssl_private.h b/native/include/ssl_private.h
-index f569167..294140a 100644
---- a/native/include/ssl_private.h
-+++ b/native/include/ssl_private.h
-@@ -48,8 +48,8 @@
- #include <openssl/bn.h>
- #if OPENSSL_VERSION_NUMBER > 0x2FFFFFFFL && !defined(LIBRESSL_VERSION_NUMBER)
- #include <openssl/provider.h>
--#endif
- #include <openssl/core_names.h>
-+#endif
-
- #ifndef RAND_MAX
- #include <limits.h>
-diff --git a/native/src/sslutils.c b/native/src/sslutils.c
-index 30b81cb..35a1f70 100644
---- a/native/src/sslutils.c
-+++ b/native/src/sslutils.c
-@@ -221,6 +221,7 @@ EVP_PKEY *SSL_dh_GetParamFromFile(const char *file)
- #ifdef HAVE_ECC
- int SSL_ec_GetParamFromFile(const char *file)
- {
-+#if OPENSSL_VERSION_NUMBER > 0x2FFFFFFFL
- EVP_PKEY *evp = NULL;
- BIO *bio;
- char curve_name[80];
-@@ -254,6 +255,24 @@ int SSL_ec_GetParamFromFile(const char *file)
-
- EVP_PKEY_free(evp);
- return nid; /* Returns the curve's NID, or NID_undef on failure */
-+#else
-+ /* OpenSSL < 3.0 fallback (e.g. OpenSSL 1.1.1 on EL8): the OSSL_PARAM /
-+ * core_names.h API above is unavailable, so read the EC parameters
-+ * directly and return the curve NID expected by the caller. */
-+ EC_GROUP *group = NULL;
-+ BIO *bio;
-+ int nid;
-+
-+ if ((bio = BIO_new_file(file, "r")) == NULL)
-+ return NID_undef;
-+ group = PEM_read_bio_ECPKParameters(bio, NULL, NULL, NULL);
-+ BIO_free(bio);
-+ if (group == NULL)
-+ return NID_undef;
-+ nid = EC_GROUP_get_curve_name(group);
-+ EC_GROUP_free(group);
-+ return nid; /* Returns the curve's NID, or NID_undef on failure */
-+#endif
- }
- #endif
diff --git a/tomcat-native.spec b/tomcat-native.spec
index 85a743b..c915d92 100644
--- a/tomcat-native.spec
+++ b/tomcat-native.spec
@@ -8,8 +8,6 @@ Summary: Tomcat native library
License: Apache-2.0
URL: http://tomcat.apache.org/tomcat-9.0-doc/apr.html
Source0: http://www.apache.org/dist/tomcat/tomcat-connectors/native/%{version}/source/%{name}-%{version}-src.tar.gz
-# Restore OpenSSL 1.1.1 compatibility for the EL8 build (no core_names.h / OSSL_PARAM).
-Patch0: %{name}-1.3.9-openssl111-compat.patch
ExclusiveArch: %{java_arches}
BuildRequires: make
@@ -34,7 +32,7 @@ provides support for using APR in Tomcat.
%prep
-%autosetup -p1 -n %{name}-%{version}-src
+%setup -q -n %{name}-%{version}-src
f=CHANGELOG.txt ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
@@ -68,15 +66,10 @@ rm -rf ${RPM_BUILD_ROOT}%{_includedir}/*.h
%changelog
-* Tue Oct 06 2026 Dimitris Soumis <dsoumis@redhat.com> - 1:1.3.9-2
-- Backport OpenSSL 1.1.1 compatibility to fix the EL8 build
- (guard the core_names.h include, add a pre-3.0 fallback in
- SSL_ec_GetParamFromFile)
-
* Mon Oct 5 2026 Dimitris Soumis <dsoumis@redhat.com> - 1:1.3.9-1
- Update to 1.3.9
-* Mon Jun 8 2026 Dimitris Soumis <dsoumis@redhat.com> - 1:1.3.8-1
+* Wed Jun 8 2026 Dimitris Soumis <dsoumis@redhat.com> - 1:1.3.8-1
- Update to 1.3.8
* Wed Mar 11 2026 Dimitris Soumis <dsoumis@redhat.com> - 1:1.3.7-1
reply other threads:[~2026-10-27 12:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179310364859.1.14345186207891391961.rpms-tomcat-native-c3c886d69a4e@fedoraproject.org \
--to=dsoumis@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox