diff options
author | Bodo Möller <bodo@openssl.org> | 2002-09-10 11:34:45 +0400 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-09-10 11:34:45 +0400 |
commit | 9226e2187c14979352cb78886ab8f0a90b3aef46 (patch) | |
tree | 931ee38a209befde8d19981d6c91f1c8220d1c3a /apps | |
parent | 48921e00fc69060b7b29bab707ebc255a3506aff (diff) |
Let 'openssl req' fail if an argument to '-newkey' is not
recognized instead of using RSA as a default.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/req.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |