Bug #17820 [Opn]: REVKEYSIG response is not handled by VerifyStatusHandler
| From: | alec at alec dot pl | Date: | Thu, 26 Aug 2010 16:17:11 +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-4693@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: alec@alec.pl
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:
Please, fix the same typo in Engine.php file (my second patch).
Previous Comments:
------------------------------------------------------------------------
[2010-08-26 15:31:23] gauthierm
REVSIG turned out to be a typo and should have been REVKEYSIG. Fixed in
revision
302810.
http://svn.php.net/viewvc?view=revision&revision=302810
------------------------------------------------------------------------
[2010-08-26 13:03:14] gauthierm
REVKEYSIG should definitely be handled here. ERRSIG might have to be
handled
separately as it uses a different format.
------------------------------------------------------------------------
[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