diff options
-rw-r--r-- | src/test/java/org/bouncycastle/openssl/test/ParserTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/org/bouncycastle/openssl/test/ParserTest.java b/src/test/java/org/bouncycastle/openssl/test/ParserTest.java index 188b536b..d7d49555 100644 --- a/src/test/java/org/bouncycastle/openssl/test/ParserTest.java +++ b/src/test/java/org/bouncycastle/openssl/test/ParserTest.java @@ -130,6 +130,11 @@ public class ParserTest ASN1ObjectIdentifier ecOID = (ASN1ObjectIdentifier)pemRd.readObject(); X9ECParameters ecSpec = ECNamedCurveTable.getByOID(ecOID); + if (ecSpec != null) + { + fail("ecSpec not found for named curve"); + } + pemPair = (PEMKeyPair)pemRd.readObject(); pair = new JcaPEMKeyConverter().setProvider("BC").getKeyPair(pemPair); |