diff options
-rw-r--r-- | ssh.1 | 14 | ||||
-rw-r--r-- | ssh.c | 11 |
2 files changed, 19 insertions, 6 deletions
@@ -33,8 +33,8 @@ | |||
33 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 33 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
34 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 34 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
35 | .\" | 35 | .\" |
36 | .\" $OpenBSD: ssh.1,v 1.397 2018/09/07 01:42:54 djm Exp $ | 36 | .\" $OpenBSD: ssh.1,v 1.398 2018/09/12 01:30:10 djm Exp $ |
37 | .Dd $Mdocdate: September 7 2018 $ | 37 | .Dd $Mdocdate: September 12 2018 $ |
38 | .Dt SSH 1 | 38 | .Dt SSH 1 |
39 | .Os | 39 | .Os |
40 | .Sh NAME | 40 | .Sh NAME |
@@ -559,6 +559,10 @@ The available features are: | |||
559 | (supported symmetric ciphers), | 559 | (supported symmetric ciphers), |
560 | .Ar cipher-auth | 560 | .Ar cipher-auth |
561 | (supported symmetric ciphers that support authenticated encryption), | 561 | (supported symmetric ciphers that support authenticated encryption), |
562 | .Ar help | ||
563 | (supported query terms for use with the | ||
564 | .Fl Q | ||
565 | flag), | ||
562 | .Ar mac | 566 | .Ar mac |
563 | (supported message integrity codes), | 567 | (supported message integrity codes), |
564 | .Ar kex | 568 | .Ar kex |
@@ -568,9 +572,11 @@ The available features are: | |||
568 | .Ar key-cert | 572 | .Ar key-cert |
569 | (certificate key types), | 573 | (certificate key types), |
570 | .Ar key-plain | 574 | .Ar key-plain |
571 | (non-certificate key types), and | 575 | (non-certificate key types), |
572 | .Ar protocol-version | 576 | .Ar protocol-version |
573 | (supported SSH protocol versions). | 577 | (supported SSH protocol versions), and |
578 | .Ar sig | ||
579 | (supported signature algorithms). | ||
574 | .Pp | 580 | .Pp |
575 | .It Fl q | 581 | .It Fl q |
576 | Quiet mode. | 582 | Quiet mode. |
@@ -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); |