summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2019-02-04 11:21:05 +0000
committertb <>2019-02-04 11:21:05 +0000
commitfa4841770246f820b72eeb3723d71f234eda8059 (patch)
tree06e30d38cb0c9c156add1d2098dd1c4b48008f1f
parent91aa3fc5aa71f74e658ea6bead9547a4a85e4465 (diff)
downloadopenbsd-fa4841770246f820b72eeb3723d71f234eda8059.tar.gz
openbsd-fa4841770246f820b72eeb3723d71f234eda8059.tar.bz2
openbsd-fa4841770246f820b72eeb3723d71f234eda8059.zip
Document missing command line options for the rsautl command.
ok jsing, "looks good!" jmc
-rw-r--r--src/usr.bin/openssl/openssl.117
-rw-r--r--src/usr.bin/openssl/rsautl.c8
2 files changed, 16 insertions, 9 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1
index 05841e1a6a..d00d5a8e50 100644
--- a/src/usr.bin/openssl/openssl.1
+++ b/src/usr.bin/openssl/openssl.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: openssl.1,v 1.99 2019/01/28 21:17:25 jmc Exp $ 1.\" $OpenBSD: openssl.1,v 1.100 2019/02/04 11:21:05 tb Exp $
2.\" ==================================================================== 2.\" ====================================================================
3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4.\" 4.\"
@@ -110,7 +110,7 @@
110.\" copied and put under another distribution licence 110.\" copied and put under another distribution licence
111.\" [including the GNU Public Licence.] 111.\" [including the GNU Public Licence.]
112.\" 112.\"
113.Dd $Mdocdate: January 28 2019 $ 113.Dd $Mdocdate: February 4 2019 $
114.Dt OPENSSL 1 114.Dt OPENSSL 1
115.Os 115.Os
116.Sh NAME 116.Sh NAME
@@ -3418,9 +3418,11 @@ Print the public/private key components in plain text.
3418.Op Fl in Ar file 3418.Op Fl in Ar file
3419.Op Fl inkey Ar file 3419.Op Fl inkey Ar file
3420.Op Fl keyform Cm der | pem 3420.Op Fl keyform Cm der | pem
3421.Op Fl oaep | pkcs | raw 3421.Op Fl oaep | pkcs | raw | x931
3422.Op Fl out Ar file 3422.Op Fl out Ar file
3423.Op Fl passin Ar arg
3423.Op Fl pubin 3424.Op Fl pubin
3425.Op Fl rev
3424.Op Fl sign 3426.Op Fl sign
3425.Op Fl verify 3427.Op Fl verify
3426.nr nS 0 3428.nr nS 0
@@ -3453,9 +3455,10 @@ The input key file; by default an RSA private key.
3453The private key format. 3455The private key format.
3454The default is 3456The default is
3455.Cm pem . 3457.Cm pem .
3456.It Fl oaep | pkcs | raw 3458.It Fl oaep | pkcs | raw | x931
3457The padding to use: 3459The padding to use:
3458PKCS#1 OAEP, PKCS#1 v1.5 (the default), or no padding, respectively. 3460PKCS#1 OAEP, PKCS#1 v1.5 (the default), no padding, or ANSI X9.31,
3461respectively.
3459For signatures, only 3462For signatures, only
3460.Fl pkcs 3463.Fl pkcs
3461and 3464and
@@ -3464,8 +3467,12 @@ can be used.
3464.It Fl out Ar file 3467.It Fl out Ar file
3465The output file to write to, 3468The output file to write to,
3466or standard output if not specified. 3469or standard output if not specified.
3470.It Fl passin Ar arg
3471The key password source.
3467.It Fl pubin 3472.It Fl pubin
3468The input file is an RSA public key. 3473The input file is an RSA public key.
3474.It Fl rev
3475Reverse the order of the input buffer.
3469.It Fl sign 3476.It Fl sign
3470Sign the input data and output the signed result. 3477Sign the input data and output the signed result.
3471This requires an RSA private key. 3478This requires an RSA private key.
diff --git a/src/usr.bin/openssl/rsautl.c b/src/usr.bin/openssl/rsautl.c
index f61369dac2..7d7434c634 100644
--- a/src/usr.bin/openssl/rsautl.c
+++ b/src/usr.bin/openssl/rsautl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsautl.c,v 1.16 2019/02/03 15:40:32 tb Exp $ */ 1/* $OpenBSD: rsautl.c,v 1.17 2019/02/04 11:21:05 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -208,7 +208,7 @@ struct option rsautl_options[] = {
208 }, 208 },
209 { 209 {
210 .name = "x931", 210 .name = "x931",
211 .desc = "Use X931 padding", 211 .desc = "Use ANSI X9.31 padding",
212 .type = OPTION_VALUE, 212 .type = OPTION_VALUE,
213 .value = RSA_X931_PADDING, 213 .value = RSA_X931_PADDING,
214 .opt.value = &rsautl_config.pad, 214 .opt.value = &rsautl_config.pad,
@@ -224,8 +224,8 @@ rsautl_usage()
224 "usage: rsautl [-asn1parse] [-certin] [-decrypt] [-encrypt] " 224 "usage: rsautl [-asn1parse] [-certin] [-decrypt] [-encrypt] "
225 "[-hexdump]\n" 225 "[-hexdump]\n"
226 " [-in file] [-inkey file] [-keyform der | pem]\n" 226 " [-in file] [-inkey file] [-keyform der | pem]\n"
227 " [-oaep | -pkcs | -raw] [-out file] [-pubin] [-sign]\n" 227 " [-oaep | -pkcs | -raw | -x931] [-out file] [-passin arg]\n"
228 " [-verify]\n\n"); 228 " [-pubin] [-rev] [-sign] [-verify]\n\n");
229 229
230 options_usage(rsautl_options); 230 options_usage(rsautl_options);
231} 231}