summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2019-02-04 11:21:05 +0000
committertb <tb@openbsd.org>2019-02-04 11:21:05 +0000
commitce730975eaf18a8bbdefdffea5227586fda9459e (patch)
tree0514c0255db785078ecbcc92d6a98266b3cc51e0
parentTurns out we do need to handle control messages that exceed MLEN, so (diff)
downloadwireguard-openbsd-ce730975eaf18a8bbdefdffea5227586fda9459e.tar.xz
wireguard-openbsd-ce730975eaf18a8bbdefdffea5227586fda9459e.zip
Document missing command line options for the rsautl command.
ok jsing, "looks good!" jmc
-rw-r--r--usr.bin/openssl/openssl.117
-rw-r--r--usr.bin/openssl/rsautl.c8
2 files changed, 16 insertions, 9 deletions
diff --git a/usr.bin/openssl/openssl.1 b/usr.bin/openssl/openssl.1
index 05841e1a6ad..d00d5a8e501 100644
--- a/usr.bin/openssl/openssl.1
+++ b/usr.bin/openssl/openssl.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: openssl.1,v 1.99 2019/01/28 21:17:25 jmc Exp $
+.\" $OpenBSD: openssl.1,v 1.100 2019/02/04 11:21:05 tb Exp $
.\" ====================================================================
.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
.\"
@@ -110,7 +110,7 @@
.\" copied and put under another distribution licence
.\" [including the GNU Public Licence.]
.\"
-.Dd $Mdocdate: January 28 2019 $
+.Dd $Mdocdate: February 4 2019 $
.Dt OPENSSL 1
.Os
.Sh NAME
@@ -3418,9 +3418,11 @@ Print the public/private key components in plain text.
.Op Fl in Ar file
.Op Fl inkey Ar file
.Op Fl keyform Cm der | pem
-.Op Fl oaep | pkcs | raw
+.Op Fl oaep | pkcs | raw | x931
.Op Fl out Ar file
+.Op Fl passin Ar arg
.Op Fl pubin
+.Op Fl rev
.Op Fl sign
.Op Fl verify
.nr nS 0
@@ -3453,9 +3455,10 @@ The input key file; by default an RSA private key.
The private key format.
The default is
.Cm pem .
-.It Fl oaep | pkcs | raw
+.It Fl oaep | pkcs | raw | x931
The padding to use:
-PKCS#1 OAEP, PKCS#1 v1.5 (the default), or no padding, respectively.
+PKCS#1 OAEP, PKCS#1 v1.5 (the default), no padding, or ANSI X9.31,
+respectively.
For signatures, only
.Fl pkcs
and
@@ -3464,8 +3467,12 @@ can be used.
.It Fl out Ar file
The output file to write to,
or standard output if not specified.
+.It Fl passin Ar arg
+The key password source.
.It Fl pubin
The input file is an RSA public key.
+.It Fl rev
+Reverse the order of the input buffer.
.It Fl sign
Sign the input data and output the signed result.
This requires an RSA private key.
diff --git a/usr.bin/openssl/rsautl.c b/usr.bin/openssl/rsautl.c
index f61369dac29..7d7434c634a 100644
--- a/usr.bin/openssl/rsautl.c
+++ b/usr.bin/openssl/rsautl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsautl.c,v 1.16 2019/02/03 15:40:32 tb Exp $ */
+/* $OpenBSD: rsautl.c,v 1.17 2019/02/04 11:21:05 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2000.
*/
@@ -208,7 +208,7 @@ struct option rsautl_options[] = {
},
{
.name = "x931",
- .desc = "Use X931 padding",
+ .desc = "Use ANSI X9.31 padding",
.type = OPTION_VALUE,
.value = RSA_X931_PADDING,
.opt.value = &rsautl_config.pad,
@@ -224,8 +224,8 @@ rsautl_usage()
"usage: rsautl [-asn1parse] [-certin] [-decrypt] [-encrypt] "
"[-hexdump]\n"
" [-in file] [-inkey file] [-keyform der | pem]\n"
- " [-oaep | -pkcs | -raw] [-out file] [-pubin] [-sign]\n"
- " [-verify]\n\n");
+ " [-oaep | -pkcs | -raw | -x931] [-out file] [-passin arg]\n"
+ " [-pubin] [-rev] [-sign] [-verify]\n\n");
options_usage(rsautl_options);
}