diff options
author | David Hook <dgh@cryptoworkshop.com> | 2013-06-17 15:34:08 +0400 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2013-06-17 15:34:08 +0400 |
commit | 171fdf7d35fe6c58831a1249a5b1e519b201d5ea (patch) | |
tree | 92d1f71e76bb830170b851ac28258796f962768f /pg/src/test/java | |
parent | 839297b68360c38bc0adde563ab77469b2ebdead (diff) |
minor update to include self-certification test
Diffstat (limited to 'pg/src/test/java')
-rw-r--r-- | pg/src/test/java/org/bouncycastle/openpgp/test/PGPECDSATest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pg/src/test/java/org/bouncycastle/openpgp/test/PGPECDSATest.java b/pg/src/test/java/org/bouncycastle/openpgp/test/PGPECDSATest.java index 6bb5bcac..103afe3a 100644 --- a/pg/src/test/java/org/bouncycastle/openpgp/test/PGPECDSATest.java +++ b/pg/src/test/java/org/bouncycastle/openpgp/test/PGPECDSATest.java @@ -52,8 +52,10 @@ public class PGPECDSATest certification.init(new JcaPGPContentVerifierBuilderProvider().setProvider("BC"), pubKeyRing.getPublicKey()); - // TODO: it appears test key not self signed.... - System.err.print(certification.verifyCertification((String)pubKeyRing.getPublicKey().getUserIDs().next(), pubKeyRing.getPublicKey())); + if (!certification.verifyCertification((String)pubKeyRing.getPublicKey().getUserIDs().next(), pubKeyRing.getPublicKey())) + { + fail("self certification does not verify"); + } } // |