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

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