summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKinichiro Inoguchi <inoguchi@cvs.openbsd.org>2019-07-10 10:28:29 +0000
committerKinichiro Inoguchi <inoguchi@cvs.openbsd.org>2019-07-10 10:28:29 +0000
commit832c4345cd5d3ccb06b0656502efd49bcbfa0f27 (patch)
tree0d0c86cb6d6128aa0a052eab6206210cebf242c9
parent930d2f8e3e6e6109e5c3d3d7c9b7ec209f5a1f8d (diff)
Add missing option openssl dsa -modulus
ok bcook@ jsing@
-rw-r--r--usr.bin/openssl/dsa.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/openssl/dsa.c b/usr.bin/openssl/dsa.c
index c988283b5b9..494d49712ee 100644
--- a/usr.bin/openssl/dsa.c
+++ b/usr.bin/openssl/dsa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsa.c,v 1.13 2019/02/09 15:49:21 inoguchi Exp $ */
+/* $OpenBSD: dsa.c,v 1.14 2019/07/10 10:28:28 inoguchi Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -122,6 +122,12 @@ static struct option dsa_options[] = {
.opt.value = &dsa_config.informat,
},
{
+ .name = "modulus",
+ .desc = "Print the DSA public value",
+ .type = OPTION_FLAG,
+ .opt.flag = &dsa_config.modulus,
+ },
+ {
.name = "noout",
.desc = "No output",
.type = OPTION_FLAG,
@@ -209,7 +215,7 @@ dsa_usage(void)
int n = 0;
fprintf(stderr,
- "usage: dsa [-in file] [-inform format] [-noout]\n"
+ "usage: dsa [-in file] [-inform format] [-modulus] [-noout]\n"
" [-out file] [-outform format] [-passin src] [-passout src]\n"
" [-pubin] [-pubout] [-pvk-none | -pvk-strong | -pvk-weak]\n"
" [-text] [-ciphername]\n\n");