summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinoguchi <>2019-07-10 10:28:28 +0000
committerinoguchi <>2019-07-10 10:28:28 +0000
commit7da60065ae1fa02de0bee5adff81fe5448048378 (patch)
tree5dc63d17072f7487b8b834646b3e41b993d46019 /src
parentb6e07c99cc5d30d75338acdc1b02d4d71b34a285 (diff)
downloadopenbsd-7da60065ae1fa02de0bee5adff81fe5448048378.tar.gz
openbsd-7da60065ae1fa02de0bee5adff81fe5448048378.tar.bz2
openbsd-7da60065ae1fa02de0bee5adff81fe5448048378.zip
Add missing option openssl dsa -modulus
ok bcook@ jsing@
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/dsa.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/dsa.c b/src/usr.bin/openssl/dsa.c
index c988283b5b..494d49712e 100644
--- a/src/usr.bin/openssl/dsa.c
+++ b/src/usr.bin/openssl/dsa.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dsa.c,v 1.13 2019/02/09 15:49:21 inoguchi Exp $ */ 1/* $OpenBSD: dsa.c,v 1.14 2019/07/10 10:28:28 inoguchi Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -122,6 +122,12 @@ static struct option dsa_options[] = {
122 .opt.value = &dsa_config.informat, 122 .opt.value = &dsa_config.informat,
123 }, 123 },
124 { 124 {
125 .name = "modulus",
126 .desc = "Print the DSA public value",
127 .type = OPTION_FLAG,
128 .opt.flag = &dsa_config.modulus,
129 },
130 {
125 .name = "noout", 131 .name = "noout",
126 .desc = "No output", 132 .desc = "No output",
127 .type = OPTION_FLAG, 133 .type = OPTION_FLAG,
@@ -209,7 +215,7 @@ dsa_usage(void)
209 int n = 0; 215 int n = 0;
210 216
211 fprintf(stderr, 217 fprintf(stderr,
212 "usage: dsa [-in file] [-inform format] [-noout]\n" 218 "usage: dsa [-in file] [-inform format] [-modulus] [-noout]\n"
213 " [-out file] [-outform format] [-passin src] [-passout src]\n" 219 " [-out file] [-outform format] [-passin src] [-passout src]\n"
214 " [-pubin] [-pubout] [-pvk-none | -pvk-strong | -pvk-weak]\n" 220 " [-pubin] [-pubout] [-pvk-none | -pvk-strong | -pvk-weak]\n"
215 " [-text] [-ciphername]\n\n"); 221 " [-text] [-ciphername]\n\n");