From 74803b3285896918b9714575529157300f1c7715 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Fri, 4 Nov 2022 16:37:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/CryptoPro.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/CryptoPro.php b/src/CryptoPro.php index 6ea678e..f975f0e 100755 --- a/src/CryptoPro.php +++ b/src/CryptoPro.php @@ -174,12 +174,11 @@ class CryptoPro * Возвращает сертификат по отпечатку * * @param string $thumbprint отпечаток сертификата - * @param bool $validOnly проверять сертификат по дате и наличию приватного ключа * * @throws \Exception * @return Certificate */ - public static function getCertificate(string $thumbprint, bool $validOnly = true) + public static function getCertificate(string $thumbprint) { $thumbprint = trim($thumbprint); @@ -188,14 +187,7 @@ class CryptoPro throw new \Exception('Отпечаток не указан'); } - if ($validOnly === true) - { - $certificates = self::getCertificates(); - } - else - { - $certificates = self::getAllCertificates(); - } + $certificates = self::getAllCertificates(); $found = false;