Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Conveniance function to get issuer

  • Loading branch information...
commit 22183826ee370ec58e65d194717723b1c665184b 1 parent 46e48c7
Stephen Paul Weber singpolyma authored committed

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. +10 0 lib/openpgp.php
10 lib/openpgp.php
@@ -489,6 +489,16 @@ function hash_algorithm_name() {
489 489 return self::$hash_algorithms[$this->hash_algorithm];
490 490 }
491 491
  492 + function issuer() {
  493 + foreach($this->hashed_subpackets as $p) {
  494 + if($p instanceof OpenPGP_SignaturePacket_IssuerPacket) return $p->data;
  495 + }
  496 + foreach($this->unhashed_subpackets as $p) {
  497 + if($p instanceof OpenPGP_SignaturePacket_IssuerPacket) return $p->data;
  498 + }
  499 + return NULL;
  500 + }
  501 +
492 502 /**
493 503 * @see http://tools.ietf.org/html/rfc4880#section-5.2.3.1
494 504 */

0 comments on commit 2218382

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