summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2018-09-20 03:31:49 +0000
committerdjm <djm@openbsd.org>2018-09-20 03:31:49 +0000
commit6060ad3bfc8fd74d9997eddab55d8e134ad6bc2e (patch)
tree219d7220ea633eade1fbb2910574779e279452ea /usr.bin/ssh/ssh.c
parentadd CASignatureAlgorithms option for the client, allowing it to specify (diff)
downloadwireguard-openbsd-6060ad3bfc8fd74d9997eddab55d8e134ad6bc2e.tar.xz
wireguard-openbsd-6060ad3bfc8fd74d9997eddab55d8e134ad6bc2e.zip
fix "ssh -Q sig" to show correct signature algorithm list (it was
erroneously showing certificate algorithms); prompted by markus@
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r--usr.bin/ssh/ssh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index 371be2e9fc4..358ac5a45c7 100644
--- a/usr.bin/ssh/ssh.c
+++ b/usr.bin/ssh/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>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -716,7 +716,7 @@ main(int ac, char **av)
else if (strcmp(optarg, "key-plain") == 0)
cp = sshkey_alg_list(0, 1, 0, '\n');
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)
cp = xstrdup("2");
else if (strcmp(optarg, "help") == 0) {