Resolves: RHEL-47140 - Stop using OpenSSL ENGINE API routines in SSLeay

This commit is contained in:
Jitka Plesnikova 2024-07-11 14:19:33 +02:00
parent 94fc0ebc7f
commit 828aa865e3
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up Net-Server-2.014/lib/Net/Server/Proto/SSLEAY.pm.engine Net-Server-2.014/lib/Net/Server/Proto/SSLEAY.pm
--- Net-Server-2.014/lib/Net/Server/Proto/SSLEAY.pm.engine 2024-07-11 13:31:16.688206663 +0200
+++ Net-Server-2.014/lib/Net/Server/Proto/SSLEAY.pm 2024-07-11 13:31:39.631408942 +0200
@@ -27,7 +27,7 @@ use Socket ();
BEGIN {
eval { require Net::SSLeay; 1 }
or warn "Module Net::SSLeay is required for SSLeay.";
- for my $sub (qw(load_error_strings SSLeay_add_ssl_algorithms ENGINE_load_builtin_engines ENGINE_register_all_complete randomize)) {
+ for my $sub (qw(load_error_strings SSLeay_add_ssl_algorithms randomize)) {
Net::SSLeay->can($sub)->();
}
eval { [Fcntl::F_GETFL(), Fcntl::F_SETFL(), Fcntl::O_NONBLOCK()] } || die "Could not access Fcntl constant while loading ".__PACKAGE__.": $@";

View File

@ -1,10 +1,13 @@
Name: perl-Net-Server
Version: 2.014
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Extensible, general Perl server engine
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Net-Server
Source0: https://cpan.metacpan.org/modules/by-module/Net/Net-Server-%{version}.tar.gz
# Remove using OpenSSL ENGINE API routines which are disabled in
# perl-Net-SSLeay CPAN RT#154333
Patch0: Net-Server-2.014-Stop-using-OpenSSL-ENGINE-API-routines.patch
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: make
@ -82,6 +85,7 @@ with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n Net-Server-%{version}
%patch -P0 -p1
# Do not want to pull in any packaging deps here.
chmod -c 644 examples/*
@ -123,6 +127,10 @@ make test
%{_libexecdir}/%{name}
%changelog
* Thu Jul 11 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2.014-7
- Resolves: RHEL-47140
- Stop using OpenSSL ENGINE API routines in SSLeay
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.014-6
- Bump release for June 2024 mass rebuild