summaryrefslogtreecommitdiffstats
path: root/apps/pkcs8.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-01-22 20:17:30 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-01-22 20:17:30 +0000
commit1699389a4691ea94455ac73fda58b8be9c1f7708 (patch)
treeb5340c0a4d5f6af37a683899a03e49725b9d4b31 /apps/pkcs8.c
parentad8ee3d7d19691362de56a334a9b6f1961b8cde9 (diff)
Tolerate PKCS#8 DSA format with negative private key.
Diffstat (limited to 'apps/pkcs8.c')
-rw-r--r--apps/pkcs8.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/pkcs8.c b/apps/pkcs8.c
index c93ce7734d..7edeb179dd 100644
--- a/apps/pkcs8.c
+++ b/apps/pkcs8.c
@@ -403,6 +403,10 @@ int MAIN(int argc, char **argv)
BIO_printf(bio_err, "DSA public key include in PrivateKey\n");
break;
+ case PKCS8_NEG_PRIVKEY:
+ BIO_printf(bio_err, "DSA private key value is negative\n");
+ break;
+
default:
BIO_printf(bio_err, "Unknown broken type\n");
break;