summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2018-12-09 19:30:35 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2018-12-09 19:30:35 +0000
commit358229ee7f8df137adb53e9df2993f6272eb8c9f (patch)
tree47fb21f84d79598b63dd639b21920075b6d1b983 /usr.bin
parente8a5851fba88bad24ff84d2c4f5ae37f5b8cfe6e (diff)
Keep usage in sync with logic if OPENSSL_NO_DES is set.
ok jmc@, jsing@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/openssl/genrsa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/openssl/genrsa.c b/usr.bin/openssl/genrsa.c
index fdcd0c1105d..3b643ab5f5d 100644
--- a/usr.bin/openssl/genrsa.c
+++ b/usr.bin/openssl/genrsa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: genrsa.c,v 1.11 2018/02/07 05:47:55 jsing Exp $ */
+/* $OpenBSD: genrsa.c,v 1.12 2018/12/09 19:30:34 tobias Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -167,8 +167,10 @@ genrsa_main(int argc, char **argv)
if ((argc >= 1) && ((sscanf(*argv, "%d", &num) == 0) || (num < 0))) {
bad:
BIO_printf(bio_err, "usage: genrsa [args] [numbits]\n");
+#ifndef OPENSSL_NO_DES
BIO_printf(bio_err, " -des encrypt the generated key with DES in cbc mode\n");
BIO_printf(bio_err, " -des3 encrypt the generated key with DES in ede cbc mode (168 bit key)\n");
+#endif
#ifndef OPENSSL_NO_IDEA
BIO_printf(bio_err, " -idea encrypt the generated key with IDEA in cbc mode\n");
#endif