From c4d492435aad4e91281d0434a6e26f04284763a8 Mon Sep 17 00:00:00 2001 From: Midah Pasche Date: Mon, 24 Jun 2024 16:01:48 +0200 Subject: [PATCH] make Smime::verifyPassphrase compatibe with php8 --- lib/Horde/Crypt/Smime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Horde/Crypt/Smime.php b/lib/Horde/Crypt/Smime.php index 8f5d7a8..03576c5 100644 --- a/lib/Horde/Crypt/Smime.php +++ b/lib/Horde/Crypt/Smime.php @@ -50,7 +50,7 @@ public function verifyPassphrase($private_key, $passphrase) ? openssl_pkey_get_private($private_key) : openssl_pkey_get_private($private_key, $passphrase); - return is_resource($res); + return boolval($res); } /**