Permalink
Browse files

Implement body for OpenPGP_SignaturePacket_IssuerPacket

  • Loading branch information...
singpolyma committed Mar 31, 2010
1 parent 7fc49b3 commit 408c912e124888499635279fb9c8acac08bd8b38
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/openpgp.php
View
@@ -529,6 +529,14 @@ function read() {
$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 {

0 comments on commit 408c912

Please sign in to comment.