diff options
author | David Hook <dgh@cryptoworkshop.com> | 2014-06-21 08:29:24 +0400 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2014-06-21 08:29:24 +0400 |
commit | d67d0613f3fe728c1268be28c8d8e5b99d985a2f (patch) | |
tree | 1509b44fcdce696392d9c28ff6a95809d59753e5 /pg | |
parent | 34a4dbfe31020b53486f49c7f3ecd0f824368485 (diff) |
allowed for DIRECT_KEY
Diffstat (limited to 'pg')
-rw-r--r-- | pg/src/main/java/org/bouncycastle/openpgp/PGPSignature.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pg/src/main/java/org/bouncycastle/openpgp/PGPSignature.java b/pg/src/main/java/org/bouncycastle/openpgp/PGPSignature.java index 77597049..f5b4c9a8 100644 --- a/pg/src/main/java/org/bouncycastle/openpgp/PGPSignature.java +++ b/pg/src/main/java/org/bouncycastle/openpgp/PGPSignature.java @@ -399,7 +399,8 @@ public class PGPSignature } if (this.getSignatureType() != KEY_REVOCATION - && this.getSignatureType() != SUBKEY_REVOCATION) + && this.getSignatureType() != SUBKEY_REVOCATION + && this.getSignatureType() != DIRECT_KEY) { throw new PGPException("signature is not a key signature"); } |