diff options
author | Colin Watson <cjwatson@debian.org> | 2017-03-29 01:35:00 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2017-03-29 01:35:00 +0100 |
commit | 6fabaf6fd9b07cc8bc6a17c9c4a5b76849cfc874 (patch) | |
tree | b4377d09196e24e2c6f2c2128f66f92cf7891105 /ssh.c | |
parent | 971a7653746a6972b907dfe0ce139c06e4a6f482 (diff) | |
parent | d38f05dbdd291212bc95ea80648b72b7177e9f4e (diff) |
Import openssh_7.5p1.orig.tar.gz
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh.c,v 1.448 2016/12/06 07:48:01 djm Exp $ */ | 1 | /* $OpenBSD: ssh.c,v 1.451 2017/03/10 04:07:20 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 |
@@ -684,11 +684,11 @@ main(int ac, char **av) | |||
684 | else if (strcmp(optarg, "kex") == 0) | 684 | else if (strcmp(optarg, "kex") == 0) |
685 | cp = kex_alg_list('\n'); | 685 | cp = kex_alg_list('\n'); |
686 | else if (strcmp(optarg, "key") == 0) | 686 | else if (strcmp(optarg, "key") == 0) |
687 | cp = sshkey_alg_list(0, 0, '\n'); | 687 | cp = sshkey_alg_list(0, 0, 0, '\n'); |
688 | else if (strcmp(optarg, "key-cert") == 0) | 688 | else if (strcmp(optarg, "key-cert") == 0) |
689 | cp = sshkey_alg_list(1, 0, '\n'); | 689 | cp = sshkey_alg_list(1, 0, 0, '\n'); |
690 | else if (strcmp(optarg, "key-plain") == 0) | 690 | else if (strcmp(optarg, "key-plain") == 0) |
691 | cp = sshkey_alg_list(0, 1, '\n'); | 691 | cp = sshkey_alg_list(0, 1, 0, '\n'); |
692 | else if (strcmp(optarg, "protocol-version") == 0) { | 692 | else if (strcmp(optarg, "protocol-version") == 0) { |
693 | #ifdef WITH_SSH1 | 693 | #ifdef WITH_SSH1 |
694 | cp = xstrdup("1\n2"); | 694 | cp = xstrdup("1\n2"); |
@@ -1103,7 +1103,7 @@ main(int ac, char **av) | |||
1103 | options.proxy_use_fdpass = 0; | 1103 | options.proxy_use_fdpass = 0; |
1104 | snprintf(port_s, sizeof(port_s), "%d", options.jump_port); | 1104 | snprintf(port_s, sizeof(port_s), "%d", options.jump_port); |
1105 | xasprintf(&options.proxy_command, | 1105 | xasprintf(&options.proxy_command, |
1106 | "ssh%s%s%s%s%s%s%s%s%s%.*s -W %%h:%%p %s", | 1106 | "ssh%s%s%s%s%s%s%s%s%s%.*s -W '[%%h]:%%p' %s", |
1107 | /* Optional "-l user" argument if jump_user set */ | 1107 | /* Optional "-l user" argument if jump_user set */ |
1108 | options.jump_user == NULL ? "" : " -l ", | 1108 | options.jump_user == NULL ? "" : " -l ", |
1109 | options.jump_user == NULL ? "" : options.jump_user, | 1109 | options.jump_user == NULL ? "" : options.jump_user, |