Bug #17820 [Opn]: REVKEYSIG response is not handled by VerifyStatusHandler
| From: | mike at silverorange dot com | Date: | Thu, 26 Aug 2010 13:03:14 +0000 |
| Subject: | Bug #17820 [Opn]: REVKEYSIG response is not handled by VerifyStatusHandler | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-4689@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17820&edit=1
ID: 17820
Updated by: mike@silverorange.com
Reported By: alec at alec dot pl
Summary: REVKEYSIG response is not handled by
VerifyStatusHandler
Status: Open
Type: Bug
Package: Crypt_GPG
Package Version: SVN
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
REVKEYSIG should definitely be handled here. ERRSIG might have to be
handled
separately as it uses a different format.
Previous Comments:
------------------------------------------------------------------------
[2010-08-26 12:37:51] alec
--- Engine.old 2010-08-26 11:16:31.000000000 +0200
+++ Engine.php 2010-08-26 14:34:34.209119022 +0200
@@ -949,8 +976,10 @@
case 'EXPSIG':
case 'EXPKEYSIG':
+ case 'REVKEYSIG':
case 'REVSIG':
case 'BADSIG':
+ case 'ERRSIG':
$this->_errorCode = Crypt_GPG::ERROR_BAD_SIGNATURE;
break;
------------------------------------------------------------------------
[2010-08-26 09:50:13] alec
Please take a look at ERRSIG response too.
------------------------------------------------------------------------
[2010-08-26 09:29:28] alec
Description:
------------
Which makes that empty array is returned from Crypt_GPG verify* methods.
Simple fix:
--- VerifyStatusHandler.old 2010-08-26 11:25:53.076780887 +0200
+++ VerifyStatusHandler.php 2010-08-26 11:22:55.244686932 +0200
@@ -105,6 +105,7 @@
case 'GOODSIG':
case 'EXPSIG':
case 'EXPKEYSIG':
+ case 'REVKEYSIG':
case 'REVSIG':
case 'BADSIG':
$signature = new Crypt_GPG_Signature();
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17820&edit=1