use keyformat for -x509toreq, don't hard code PEM
authorDr. Stephen Henson <steve@openssl.org>
Fri, 23 Sep 2011 21:49:08 +0000 (21:49 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 23 Sep 2011 21:49:08 +0000 (21:49 +0000)
apps/x509.c

index 151d3a91a724e3bad49678d79d07e83e09a8d0b4..b16afd0666dc4279d5fae04956a24a43d2f4f3e4 100644 (file)
@@ -969,7 +969,7 @@ bad:
                                else
                                        {
                                        pk=load_key(bio_err,
-                                               keyfile, FORMAT_PEM, 0,
+                                               keyfile, keyformat, 0,
                                                passin, e, "request key");
                                        if (pk == NULL) goto end;
                                        }