Add loaded dynamic ENGINEs to list.
[openssl.git] / apps / pkcs8.c
index 43ff86d4f7221e50101669b01c7b9b4584f836d6..7edeb179dd1afd52bf8d7d35bfaa5432094756a2 100644 (file)
@@ -275,7 +275,6 @@ int MAIN(int argc, char **argv)
                }
        if (topk8)
                {
-               BIO_free(in); /* Not needed in this section */
                pkey = load_key(bio_err, infile, informat, 1,
                        passin, e, "key");
                if (!pkey)
@@ -404,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;