public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php-phpseclib3] f44: Update to v3.0.56
@ 2026-08-12 10:59 Artur Frenszek-Iwicki
  0 siblings, 0 replies; only message in thread
From: Artur Frenszek-Iwicki @ 2026-08-12 10:59 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/php-phpseclib3
Branch : f44
Commit : 88e4a1f277176710a53a67113785d4e4fa436496
Author : Artur Frenszek-Iwicki <fedora@svgames.pl>
Date   : 2026-08-12T12:43:09+02:00
Stats  : +36/-2 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/php-phpseclib3/c/88e4a1f277176710a53a67113785d4e4fa436496?branch=f44

Log:
Update to v3.0.56

---
diff --git a/.gitignore b/.gitignore
index 30a01c1..fee2384 100644
--- a/.gitignore
+++ b/.gitignore
@@ -48,3 +48,4 @@ clog
 /php-phpseclib3-3.0.48.zip
 /php-phpseclib3-3.0.49.zip
 /php-phpseclib3-3.0.50.zip
+/php-phpseclib3-3.0.56.zip

diff --git a/0000-openssl-error-handling.patch b/0000-openssl-error-handling.patch
new file mode 100644
index 0000000..eb91cf8
--- /dev/null
+++ b/0000-openssl-error-handling.patch
@@ -0,0 +1,25 @@
+From 2511e02d499956c6f58a6477649c7808e2d7e075 Mon Sep 17 00:00:00 2001
+From: terrafrost <terrafrost@gmail.com>
+Date: Mon, 10 Aug 2026 08:05:40 -0500
+Subject: [PATCH] RSA: fix for openssl_verify calls that error out
+
+---
+ phpseclib/Crypt/RSA.php | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php
+index 709ef6a07..22ca19b6b 100644
+--- a/phpseclib/Crypt/RSA.php
++++ b/phpseclib/Crypt/RSA.php
+@@ -1069,7 +1069,10 @@ protected function handleOpenSSL($func, $message, $signature = null)
+                             restore_error_handler();
+                         }
+ 
+-                        if ($func === 'openssl_verify' && $result !== -1 && $result !== false) {
++                        if ($func === 'openssl_verify') {
++                            if ($result === -1 || $result === false) {
++                                throw new BadConfigurationException('Engine OpenSSL is forced but was unable to verify signature because of ' . openssl_error_string());
++                            }
+                             return (bool) $result;
+                         }
+                         if ($result) {

diff --git a/php-phpseclib3.spec b/php-phpseclib3.spec
index e28965b..ab99b3f 100644
--- a/php-phpseclib3.spec
+++ b/php-phpseclib3.spec
@@ -5,7 +5,7 @@
 %global github_name             phpseclib
 %bcond_without                  tests
 
-Version:    3.0.50
+Version:    3.0.56
 Release:    1%{?dist}
 %global vmajor %(v="%{version}"; v=(${v//./ }); echo "${v[0]}")
 
@@ -18,6 +18,9 @@ Source0:    %{name}-%{version}.zip
 # Generate a full archive from git tag, with tests
 Source2:    makesrc.sh
 
+# https://github.com/phpseclib/phpseclib/issues/2161
+Patch0:     0000-openssl-error-handling.patch
+
 BuildArch:      noarch
 
 %global php_min_version 5.6.1
@@ -98,6 +101,8 @@ rm tests/Unit/Crypt/EC/CurveTest.php
 php tests/make_compatible_with_phpunit7.php
 php tests/make_compatible_with_phpunit9.php
 
+export OPENSSL_ENABLE_SHA1_SIGNATURES=1
+
 # from travis/run-phpunit.sh
 # testAuthorityInfoAccess fails without internet access
 # testCurveExistance as we remove some files
@@ -114,6 +119,9 @@ php -d memory_limit=1G %{phpunit_bin} \
 
 
 %changelog
+* Wed Aug 12 2026 Artur Frenszek-Iwicki <fedora@svgames.pl> - 3.0.56-1
+- Update to v3.0.56
+
 * Thu Mar 19 2026 Artur Frenszek-Iwicki <fedora@svgames.pl> - 3.0.50-1
 - Update to v3.0.50
 

diff --git a/sources b/sources
index e8fdc85..379c2f3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (php-phpseclib3-3.0.50.zip) = d867a05b9462a049ee6d0d5f055c60d703779160b043098844a687554ba2f5b7587ac4c7b108fa0404e7f72f0773e18623cbb6b19aa278aaf404a6b94ff8e33f
+SHA512 (php-phpseclib3-3.0.56.zip) = fbbe02dcfe50c08047eb7aaf1e38b2389de623c3369af2e408c6166fb2e51159a04b98afe1cf5e2bdd7fe46c609c97fb9018c36caade5ebf731f388800e6c30a

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-12 10:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-12 10:59 [rpms/php-phpseclib3] f44: Update to v3.0.56 Artur Frenszek-Iwicki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox