Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pg
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2014-06-21 08:29:24 +0400
committerDavid Hook <dgh@cryptoworkshop.com>2014-06-21 08:29:24 +0400
commitd67d0613f3fe728c1268be28c8d8e5b99d985a2f (patch)
tree1509b44fcdce696392d9c28ff6a95809d59753e5 /pg
parent34a4dbfe31020b53486f49c7f3ecd0f824368485 (diff)
allowed for DIRECT_KEY
Diffstat (limited to 'pg')
-rw-r--r--pg/src/main/java/org/bouncycastle/openpgp/PGPSignature.java3
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");
}