]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: make `ssh -Q CASignatureAlgorithms` work as the manpage says
authordjm@openbsd.org <djm@openbsd.org>
Fri, 10 Feb 2023 04:40:28 +0000 (04:40 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 10 Feb 2023 04:44:19 +0000 (15:44 +1100)
it should bz3532

OpenBSD-Commit-ID: 0ddb17b3fcbd99bfb5baea4ac5e449620cbd3adc

ssh.c

diff --git a/ssh.c b/ssh.c
index 87454b84a95f8791b3dc8465e2d226c266a37a1c..918389bccba255f8b09488245a32e65b6fb706ff 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh.c,v 1.584 2023/01/17 18:52:44 millert Exp $ */
+/* $OpenBSD: ssh.c,v 1.585 2023/02/10 04:40:28 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -794,6 +794,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, "key-sig") == 0 ||
+                           strcasecmp(optarg, "CASignatureAlgorithms") == 0 ||
                            strcasecmp(optarg, "PubkeyAcceptedKeyTypes") == 0 || /* deprecated name */
                            strcasecmp(optarg, "PubkeyAcceptedAlgorithms") == 0 ||
                            strcasecmp(optarg, "HostKeyAlgorithms") == 0 ||