public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Artur Frenszek-Iwicki <fedora@svgames.pl>
To: git-commits@fedoraproject.org
Subject: [rpms/php-phpseclib3] f45: Update to v3.0.56
Date: Wed, 12 Aug 2026 10:27:38 GMT	[thread overview]
Message-ID: <178653045871.1.484095910866863016.rpms-php-phpseclib3-17b8efaab8a7@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/php-phpseclib3
Branch : f45
Commit : 17b8efaab8a782d9d7ce2f9d8384f183f4b4f507
Author : Artur Frenszek-Iwicki <fedora@svgames.pl>
Date   : 2026-08-12T12:14:13+02:00
Stats  : +37/-8 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/php-phpseclib3/c/17b8efaab8a782d9d7ce2f9d8384f183f4b4f507?branch=f45

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 95efd1c..1d05d4b 100644
--- a/php-phpseclib3.spec
+++ b/php-phpseclib3.spec
@@ -5,8 +5,8 @@
 %global github_name             phpseclib
 %bcond_without                  tests
 
-Version:    3.0.50
-Release:    2%{?dist}
+Version:    3.0.56
+Release:    1%{?dist}
 %global vmajor %(v="%{version}"; v=(${v//./ }); echo "${v[0]}")
 
 Name:       php-%{composer_project}%{vmajor}
@@ -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
@@ -92,17 +95,14 @@ EOF
 sed -e 's/CreateKeyTest/RSACreateKeyTest/' -i tests/Unit/Crypt/RSA/CreateKeyTest.php
 sed -e 's/CreateKeyTest/DSACreateKeyTest/' -i tests/Unit/Crypt/DSA/CreateKeyTest.php
 
-# Not supported curves ? (need investigations)
-rm tests/Unit/Crypt/EC/CurveTest.php
-
 php tests/make_compatible_with_phpunit7.php
 php tests/make_compatible_with_phpunit9.php
 
 # from travis/run-phpunit.sh
 # testAuthorityInfoAccess fails without internet access
-# testCurveExistance as we remove some files
+export OPENSSL_ENABLE_SHA1_SIGNATURES=1
 php -d memory_limit=1G %{phpunit_bin} \
-	--filter '^((?!(testAuthorityInfoAccess|testCurveExistance|testLoginToInvalidServer)).)*$' \
+	--filter '^((?!(testAuthorityInfoAccess|testLoginToInvalidServer)).)*$' \
 	--verbose --configuration tests/phpunit.xml
 %endif
 
@@ -114,6 +114,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 Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.50-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

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

                 reply	other threads:[~2026-08-12 10:27 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=178653045871.1.484095910866863016.rpms-php-phpseclib3-17b8efaab8a7@fedoraproject.org \
    --to=fedora@svgames.pl \
    --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