diff options
author | Richard Levitte <levitte@openssl.org> | 2000-12-09 11:11:35 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-12-09 11:11:35 +0000 |
commit | df2c442a6df3e8cf0fb6f56cb5404c00cc030f77 (patch) | |
tree | ec74ad6f6236bbc16bbaf287c3caee1785074edc | |
parent | 23e2947cc8931d59e5a8657ba8089cef466af3ef (diff) | |
download | openssl-df2c442a6df3e8cf0fb6f56cb5404c00cc030f77.tar.gz |
Make TYPE_RSA the default type instead of just setting it when -new is
given. That also allows the arguments to come in any order (-new
last, for example).
-rw-r--r-- | apps/req.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/req.c b/apps/req.c index 7b8b4dbd60..f740e01527 100644 --- a/apps/req.c +++ b/apps/req.c @@ -150,7 +150,7 @@ int MAIN(int argc, char **argv) X509 *x509ss=NULL; X509_REQ *req=NULL; EVP_PKEY *pkey=NULL; - int i,badops=0,newreq=0,newkey= -1,pkey_type=0; + int i,badops=0,newreq=0,newkey= -1,pkey_type=TYPE_RSA; BIO *in=NULL,*out=NULL; int informat,outformat,verify=0,noout=0,text=0,keyform=FORMAT_PEM; int nodes=0,kludge=0,newhdr=0,subject=0; @@ -211,7 +211,6 @@ int MAIN(int argc, char **argv) } else if (strcmp(*argv,"-new") == 0) { - pkey_type=TYPE_RSA; newreq=1; } else if (strcmp(*argv,"-config") == 0) |