From 408c912e124888499635279fb9c8acac08bd8b38 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 31 Mar 2010 14:25:21 -0500 Subject: [PATCH] Implement body for OpenPGP_SignaturePacket_IssuerPacket --- lib/openpgp.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/openpgp.php b/lib/openpgp.php index 9198691..9569c5d 100644 --- a/lib/openpgp.php +++ b/lib/openpgp.php @@ -529,6 +529,14 @@ class OpenPGP_SignaturePacket_IssuerPacket extends OpenPGP_SignaturePacket_Subpa $this->data .= dechex(ord($this->read_byte())); } } + + function body() { + $bytes = ''; + for($i = 0; $i < strlen($this->data); $i += 2) { + $bytes .= chr(hexdec($this->data{$i}.$this->data{$i+1})); + } + return $bytes; + } } class OpenPGP_SignaturePacket_NotationDataPacket extends OpenPGP_SignaturePacket_Subpacket {