From 6060ad3bfc8fd74d9997eddab55d8e134ad6bc2e Mon Sep 17 00:00:00 2001 From: djm Date: Thu, 20 Sep 2018 03:31:49 +0000 Subject: [PATCH] fix "ssh -Q sig" to show correct signature algorithm list (it was erroneously showing certificate algorithms); prompted by markus@ --- usr.bin/ssh/ssh.c | 4 ++-- 1 file 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 * Copyright (c) 1995 Tatu Ylonen , 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) { -- 2.20.1