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 ed1e8c69ad6bdcd1182a30d082df8fb53b43c7d9..9f5eaeb6bebbd68fc5591ad8ca6ffc14641e6bed 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;
                                        }