From: Bodo Möller Date: Tue, 10 Sep 2002 07:34:45 +0000 (+0000) Subject: Let 'openssl req' fail if an argument to '-newkey' is not X-Git-Tag: OpenSSL_0_9_7-beta4~168^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9226e2187c14979352cb78886ab8f0a90b3aef46;p=oweals%2Fopenssl.git Let 'openssl req' fail if an argument to '-newkey' is not recognized instead of using RSA as a default. --- diff --git a/CHANGES b/CHANGES index 9dbb21213c..dbb70cb119 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,10 @@ Changes between 0.9.7 and 0.9.8 [xx XXX 2002] + *) Let 'openssl req' fail if an argument to '-newkey' is not + recognized instead of using RSA as a default. + [Bodo Moeller] + *) Add support for ECC-based ciphersuites from draft-ietf-tls-ecc-01.txt. As these are not official, they are not included in "ALL"; the "ECCdraft" ciphersuite group alias can be used to select them. diff --git a/apps/req.c b/apps/req.c index 79b1ded735..729cb2d5bd 100644 --- a/apps/req.c +++ b/apps/req.c @@ -383,7 +383,9 @@ int MAIN(int argc, char **argv) } else #endif - pkey_type=TYPE_RSA; + { + goto bad; + } newreq=1; }