Added support for building with openssl-3.0.0
This commit is contained in:
parent
39fb928d58
commit
4bc7478b50
19
sendmail-8.16.1-openssl-3.0-fix.patch
Normal file
19
sendmail-8.16.1-openssl-3.0-fix.patch
Normal file
@ -0,0 +1,19 @@
|
||||
diff --git a/sendmail/tls.c b/sendmail/tls.c
|
||||
index 696d32f..b8527c4 100644
|
||||
--- a/sendmail/tls.c
|
||||
+++ b/sendmail/tls.c
|
||||
@@ -29,7 +29,13 @@ SM_RCSID("@(#)$Id: tls.c,v 8.127 2013-11-27 02:51:11 gshapiro Exp $")
|
||||
# ERROR: OpenSSL version OPENSSL_VERSION_NUMBER is unsupported.
|
||||
# endif
|
||||
|
||||
-# if OPENSSL_VERSION_NUMBER >= 0x10100000L && OPENSSL_VERSION_NUMBER < 0x20000000L
|
||||
+/*
|
||||
+ ** *SSL version numbers:
|
||||
+ ** OpenSSL 0.9 - 1.1 (so far), 3.0 (in alpha)
|
||||
+ ** LibreSSL 2.0 (0x20000000L - part of "These will never change")
|
||||
+ */
|
||||
+
|
||||
+# if (OPENSSL_VERSION_NUMBER >= 0x10100000L && OPENSSL_VERSION_NUMBER < 0x20000000L) || OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||
# define MTA_HAVE_DH_set0_pqg 1
|
||||
# define MTA_HAVE_DSA_GENERATE_EX 1
|
||||
|
@ -29,7 +29,7 @@
|
||||
Summary: A widely used Mail Transport Agent (MTA)
|
||||
Name: sendmail
|
||||
Version: 8.16.1
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
License: Sendmail
|
||||
URL: http://www.sendmail.org/
|
||||
|
||||
@ -94,6 +94,8 @@ Patch23: sendmail-8.16.1-sasl2-in-etc.patch
|
||||
# upstream reserved option ID 0xe7 for testing of this new feature, #576643
|
||||
Patch25: sendmail-8.16.1-qos.patch
|
||||
Patch26: sendmail-8.16.1-libmilter-socket-activation.patch
|
||||
# upstream patch
|
||||
Patch27: sendmail-8.16.1-openssl-3.0-fix.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: libdb-devel
|
||||
@ -204,6 +206,7 @@ cp devtools/M4/UNIX/{,shared}library.m4
|
||||
%patch23 -p1 -b .sasl2-in-etc
|
||||
%patch25 -p1 -b .qos
|
||||
%patch26 -p1 -b .libmilter-socket-activation
|
||||
%patch27 -p1 -b .openssl-3.0-fix
|
||||
|
||||
for f in RELEASE_NOTES contrib/etrn.0; do
|
||||
iconv -f iso8859-1 -t utf8 -o ${f}{_,} &&
|
||||
@ -707,6 +710,9 @@ exit 0
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Apr 27 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 8.16.1-7
|
||||
- Added support for building with openssl-3.0.0
|
||||
|
||||
* Thu Mar 25 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 8.16.1-6
|
||||
- Disable NIS support for RHEL9+
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user