From d2688238727983bd3bd47231b0cea11e1327243b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 24 Jan 2022 16:01:11 +0100 Subject: update to 5.2.0-rc1 raise dependency on PHP 7.2.5 always use bundled libraries --- phpMyAdmin-certs.patch | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) (limited to 'phpMyAdmin-certs.patch') diff --git a/phpMyAdmin-certs.patch b/phpMyAdmin-certs.patch index 9601ab9..15cacac 100644 --- a/phpMyAdmin-certs.patch +++ b/phpMyAdmin-certs.patch @@ -1,18 +1,12 @@ -diff -up ./libraries/classes/Utils/HttpRequest.php.rpm ./libraries/classes/Utils/HttpRequest.php ---- ./libraries/classes/Utils/HttpRequest.php.rpm 2019-09-12 15:57:49.955739598 +0200 -+++ ./libraries/classes/Utils/HttpRequest.php 2019-09-12 15:58:00.262698588 +0200 -@@ -141,12 +141,12 @@ class HttpRequest - * - * See https://letsencrypt.org/certificates/ - */ -- $certsDir = ROOT_PATH . 'libraries/certs/'; -+ $certsDir = '/etc/pki/tls/'; - /* See code below for logic */ - if ($ssl == CURLOPT_CAPATH) { - $curlStatus &= curl_setopt($curlHandle, CURLOPT_CAPATH, $certsDir); - } elseif ($ssl == CURLOPT_CAINFO) { -- $curlStatus &= curl_setopt($curlHandle, CURLOPT_CAINFO, $certsDir . 'cacert.pem'); -+ $curlStatus &= curl_setopt($curlHandle, CURLOPT_CAINFO, $certsDir . 'cert.pem'); - } +diff -up ./vendor/composer/ca-bundle/src/CaBundle.php.rpm ./vendor/composer/ca-bundle/src/CaBundle.php +--- ./vendor/composer/ca-bundle/src/CaBundle.php.rpm 2022-01-24 15:53:57.460789560 +0100 ++++ ./vendor/composer/ca-bundle/src/CaBundle.php 2022-01-24 15:55:26.021390384 +0100 +@@ -125,7 +125,7 @@ class CaBundle + */ + public static function getBundledCaBundlePath() + { +- $caBundleFile = __DIR__.'/../res/cacert.pem'; ++ $caBundleFile = '/etc/pki/tls/certs/ca-bundle.crt'; // System CA, always - $curlStatus &= curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true); + // cURL does not understand 'phar://' paths + // see https://github.com/composer/ca-bundle/issues/10 -- cgit