Skip to content
Browse files

Conveniance function to get issuer

  • Loading branch information...
1 parent 46e48c7 commit 22183826ee370ec58e65d194717723b1c665184b @singpolyma singpolyma committed with Apr 2, 2010
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/openpgp.php
View
10 lib/openpgp.php
@@ -489,6 +489,16 @@ function hash_algorithm_name() {
return self::$hash_algorithms[$this->hash_algorithm];
}
+ function issuer() {
+ foreach($this->hashed_subpackets as $p) {
+ if($p instanceof OpenPGP_SignaturePacket_IssuerPacket) return $p->data;
+ }
+ foreach($this->unhashed_subpackets as $p) {
+ if($p instanceof OpenPGP_SignaturePacket_IssuerPacket) return $p->data;
+ }
+ return NULL;
+ }
+
/**
* @see http://tools.ietf.org/html/rfc4880#section-5.2.3.1
*/

0 comments on commit 2218382

Please sign in to comment.
Something went wrong with that request. Please try again.