From 6d04dddad6f582a666067a0d1bebd237164114e9 Mon Sep 17 00:00:00 2001 From: jmc Date: Fri, 24 Aug 2018 22:56:45 +0000 Subject: [PATCH] update usage for pkcs8; ok tb --- usr.bin/openssl/pkcs8.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/usr.bin/openssl/pkcs8.c b/usr.bin/openssl/pkcs8.c index 03278989034..7938bf8b09c 100644 --- a/usr.bin/openssl/pkcs8.c +++ b/usr.bin/openssl/pkcs8.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pkcs8.c,v 1.12 2018/08/24 20:09:56 tb Exp $ */ +/* $OpenBSD: pkcs8.c,v 1.13 2018/08/24 22:56:45 jmc Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999-2004. */ @@ -113,8 +113,8 @@ static struct option pkcs8_options[] = { }, { .name = "inform", - .argname = "format", - .desc = "Input format (DER or PEM (default))", + .argname = "der | pem", + .desc = "Input format (default PEM)", .type = OPTION_ARG_FORMAT, .opt.value = &pkcs8_config.informat, }, @@ -140,8 +140,8 @@ static struct option pkcs8_options[] = { }, { .name = "outform", - .argname = "format", - .desc = "Output format (DER or PEM (default))", + .argname = "der | pem", + .desc = "Output format (default PEM)", .type = OPTION_ARG_FORMAT, .opt.value = &pkcs8_config.outformat, }, @@ -186,11 +186,10 @@ static struct option pkcs8_options[] = { static void pkcs8_usage() { - fprintf(stderr, "usage: pkcs8 [-embed] [-in file] " - "[-inform fmt] [-nocrypt]\n" - " [-noiter] [-nooct] [-nsdb] [-out file] [-outform fmt] " - "[-passin src]\n" - " [-passout src] [-topk8] [-v1 alg] [-v2 alg]\n\n"); + fprintf(stderr, "usage: pkcs8 [-in file] [inform der | pem] " + "[-nocrypt] [-noiter]\n" + " [-out file] [-outform der | pem] [-passin arg]\n" + " [-passout arg] [-topk8] [-v1 alg] [-v2 alg]\n\n"); options_usage(pkcs8_options); } -- 2.20.1