upstream: Add "ssh -Q sig" to allow listing supported signature
algorithms ok markus@ OpenBSD-Commit-ID: 7a8c6eb6c249dc37823ba5081fce64876d10fe2b
This commit is contained in:
parent
9405c6214f
commit
357128ac48
14
ssh.1
14
ssh.1
|
@ -33,8 +33,8 @@
|
||||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" $OpenBSD: ssh.1,v 1.397 2018/09/07 01:42:54 djm Exp $
|
.\" $OpenBSD: ssh.1,v 1.398 2018/09/12 01:30:10 djm Exp $
|
||||||
.Dd $Mdocdate: September 7 2018 $
|
.Dd $Mdocdate: September 12 2018 $
|
||||||
.Dt SSH 1
|
.Dt SSH 1
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -559,6 +559,10 @@ The available features are:
|
||||||
(supported symmetric ciphers),
|
(supported symmetric ciphers),
|
||||||
.Ar cipher-auth
|
.Ar cipher-auth
|
||||||
(supported symmetric ciphers that support authenticated encryption),
|
(supported symmetric ciphers that support authenticated encryption),
|
||||||
|
.Ar help
|
||||||
|
(supported query terms for use with the
|
||||||
|
.Fl Q
|
||||||
|
flag),
|
||||||
.Ar mac
|
.Ar mac
|
||||||
(supported message integrity codes),
|
(supported message integrity codes),
|
||||||
.Ar kex
|
.Ar kex
|
||||||
|
@ -568,9 +572,11 @@ The available features are:
|
||||||
.Ar key-cert
|
.Ar key-cert
|
||||||
(certificate key types),
|
(certificate key types),
|
||||||
.Ar key-plain
|
.Ar key-plain
|
||||||
(non-certificate key types), and
|
(non-certificate key types),
|
||||||
.Ar protocol-version
|
.Ar protocol-version
|
||||||
(supported SSH protocol versions).
|
(supported SSH protocol versions), and
|
||||||
|
.Ar sig
|
||||||
|
(supported signature algorithms).
|
||||||
.Pp
|
.Pp
|
||||||
.It Fl q
|
.It Fl q
|
||||||
Quiet mode.
|
Quiet mode.
|
||||||
|
|
11
ssh.c
11
ssh.c
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: ssh.c,v 1.490 2018/07/27 05:34:42 dtucker Exp $ */
|
/* $OpenBSD: ssh.c,v 1.491 2018/09/12 01:30:10 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
|
@ -739,8 +739,15 @@ main(int ac, char **av)
|
||||||
cp = sshkey_alg_list(1, 0, 0, '\n');
|
cp = sshkey_alg_list(1, 0, 0, '\n');
|
||||||
else if (strcmp(optarg, "key-plain") == 0)
|
else if (strcmp(optarg, "key-plain") == 0)
|
||||||
cp = sshkey_alg_list(0, 1, 0, '\n');
|
cp = sshkey_alg_list(0, 1, 0, '\n');
|
||||||
else if (strcmp(optarg, "protocol-version") == 0) {
|
else if (strcmp(optarg, "sig") == 0)
|
||||||
|
cp = sshkey_alg_list(0, 0, 1, '\n');
|
||||||
|
else if (strcmp(optarg, "protocol-version") == 0)
|
||||||
cp = xstrdup("2");
|
cp = xstrdup("2");
|
||||||
|
else if (strcmp(optarg, "help") == 0) {
|
||||||
|
cp = xstrdup(
|
||||||
|
"cipher\ncipher-auth\nkex\nkey\n"
|
||||||
|
"key-cert\nkey-plain\nmac\n"
|
||||||
|
"protocol-version\nsig");
|
||||||
}
|
}
|
||||||
if (cp == NULL)
|
if (cp == NULL)
|
||||||
fatal("Unsupported query \"%s\"", optarg);
|
fatal("Unsupported query \"%s\"", optarg);
|
||||||
|
|
Loading…
Reference in New Issue