From 7da60065ae1fa02de0bee5adff81fe5448048378 Mon Sep 17 00:00:00 2001 From: inoguchi <> Date: Wed, 10 Jul 2019 10:28:28 +0000 Subject: Add missing option openssl dsa -modulus ok bcook@ jsing@ --- src/usr.bin/openssl/dsa.c | 10 ++++++++-- 1 file 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 @@ -/* $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. * @@ -121,6 +121,12 @@ static struct option dsa_options[] = { .type = OPTION_ARG_FORMAT, .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", @@ -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"); -- cgit v1.2.3-55-g6feb