mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 00:04:30 +02:00
upstream: fix "ssh -Q sig" to show correct signature algorithm list
(it was erroneously showing certificate algorithms); prompted by markus@ OpenBSD-Commit-ID: 1cdee002f2f0c21456979deeb887fc889afb154d
This commit is contained in:
parent
ecac7e1f7a
commit
aa083aa962
4
ssh.c
4
ssh.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ssh.c,v 1.491 2018/09/12 01:30:10 djm Exp $ */
|
/* $OpenBSD: ssh.c,v 1.492 2018/09/20 03:31:49 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
|
||||||
@ -740,7 +740,7 @@ main(int ac, char **av)
|
|||||||
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, "sig") == 0)
|
else if (strcmp(optarg, "sig") == 0)
|
||||||
cp = sshkey_alg_list(0, 0, 1, '\n');
|
cp = sshkey_alg_list(0, 1, 1, '\n');
|
||||||
else if (strcmp(optarg, "protocol-version") == 0)
|
else if (strcmp(optarg, "protocol-version") == 0)
|
||||||
cp = xstrdup("2");
|
cp = xstrdup("2");
|
||||||
else if (strcmp(optarg, "help") == 0) {
|
else if (strcmp(optarg, "help") == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user