From ab5a49d37c0be08bc1a84cea6bd5ddd946377e0a Mon Sep 17 00:00:00 2001 From: alec Date: Tue, 31 Aug 2010 07:06:36 +0000 Subject: - updated Crypt_GPG package + some small fixes git-svn-id: https://svn.roundcube.net/trunk@3929 208e9e7b-5314-0410-a742-e7e81cd9613c --- .../enigma/lib/Crypt/GPG/VerifyStatusHandler.php | 28 +++++++++++++++++++++- plugins/enigma/lib/enigma_ui.php | 2 +- 2 files changed, 28 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/enigma/lib/Crypt/GPG/VerifyStatusHandler.php b/plugins/enigma/lib/Crypt/GPG/VerifyStatusHandler.php index 1c54b6e42..083bd3012 100644 --- a/plugins/enigma/lib/Crypt/GPG/VerifyStatusHandler.php +++ b/plugins/enigma/lib/Crypt/GPG/VerifyStatusHandler.php @@ -31,7 +31,7 @@ * @author Michael Gauthier * @copyright 2008 silverorange * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 - * @version CVS: $Id: VerifyStatusHandler.php 302810 2010-08-26 15:30:17Z gauthierm $ + * @version CVS: $Id: VerifyStatusHandler.php 302908 2010-08-31 03:56:54Z gauthierm $ * @link http://pear.php.net/package/Crypt_GPG * @link http://www.gnupg.org/ */ @@ -137,6 +137,32 @@ class Crypt_GPG_VerifyStatusHandler $this->signatures[$this->index] = $signature; break; + case 'ERRSIG': + $signature = new Crypt_GPG_Signature(); + + // if there was a signature id, set it on the new signature + if ($this->signatureId != '') { + $signature->setId($this->signatureId); + $this->signatureId = ''; + } + + // Detect whether fingerprint or key id was returned and set + // signature values appropriately. Key ids are strings of either + // 16 or 8 hexadecimal characters. Fingerprints are strings of 40 + // hexadecimal characters. The key id is the last 16 characters of + // the key fingerprint. + if (strlen($tokens[1]) > 16) { + $signature->setKeyFingerprint($tokens[1]); + $signature->setKeyId(substr($tokens[1], -16)); + } else { + $signature->setKeyId($tokens[1]); + } + + $this->index++; + $this->signatures[$this->index] = $signature; + + break; + case 'VALIDSIG': if (!array_key_exists($this->index, $this->signatures)) { break; diff --git a/plugins/enigma/lib/enigma_ui.php b/plugins/enigma/lib/enigma_ui.php index a8af09362..9db7eab2e 100644 --- a/plugins/enigma/lib/enigma_ui.php +++ b/plugins/enigma/lib/enigma_ui.php @@ -232,7 +232,7 @@ class enigma_ui /** * Returns text representation of list records counter */ - private function get_rowcount_text($all, $curr_count, $page) + private function get_rowcount_text($all=0, $curr_count=0, $page=1) { $pagesize = $this->rc->config->get('pagesize', 100); $first = ($page - 1) * $pagesize; -- cgit v1.2.3