diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh.c,v 1.490 2018/07/27 05:34:42 dtucker Exp $ */ | 1 | /* $OpenBSD: ssh.c,v 1.491 2018/09/12 01:30:10 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -739,8 +739,15 @@ main(int ac, char **av) | |||
739 | cp = sshkey_alg_list(1, 0, 0, '\n'); | 739 | cp = sshkey_alg_list(1, 0, 0, '\n'); |
740 | else if (strcmp(optarg, "key-plain") == 0) | 740 | else if (strcmp(optarg, "key-plain") == 0) |
741 | cp = sshkey_alg_list(0, 1, 0, '\n'); | 741 | cp = sshkey_alg_list(0, 1, 0, '\n'); |
742 | else if (strcmp(optarg, "protocol-version") == 0) { | 742 | else if (strcmp(optarg, "sig") == 0) |
743 | cp = sshkey_alg_list(0, 0, 1, '\n'); | ||
744 | else if (strcmp(optarg, "protocol-version") == 0) | ||
743 | cp = xstrdup("2"); | 745 | cp = xstrdup("2"); |
746 | else if (strcmp(optarg, "help") == 0) { | ||
747 | cp = xstrdup( | ||
748 | "cipher\ncipher-auth\nkex\nkey\n" | ||
749 | "key-cert\nkey-plain\nmac\n" | ||
750 | "protocol-version\nsig"); | ||
744 | } | 751 | } |
745 | if (cp == NULL) | 752 | if (cp == NULL) |
746 | fatal("Unsupported query \"%s\"", optarg); | 753 | fatal("Unsupported query \"%s\"", optarg); |