diff options
author | Damien Miller <djm@mindrot.org> | 2005-06-16 13:19:41 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2005-06-16 13:19:41 +1000 |
commit | d14b1e731cf4cb79c3ff5ced9315cc11f1fceced (patch) | |
tree | 9ae43dce762d8452154b48d4a5b792ecd2db487e /clientloop.c | |
parent | ac7ef6a7360f7b1e417790d288f42f474c4ceb55 (diff) |
- djm@cvs.openbsd.org 2005/06/08 11:25:09
[clientloop.c readconf.c readconf.h ssh.c ssh_config.5]
add ControlMaster=auto/autoask options to support opportunistic
multiplexing; tested avsm@ and jakob@, ok markus@
Diffstat (limited to 'clientloop.c')
-rw-r--r-- | clientloop.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/clientloop.c b/clientloop.c index 1591215bd..ae4dce820 100644 --- a/clientloop.c +++ b/clientloop.c | |||
@@ -59,7 +59,7 @@ | |||
59 | */ | 59 | */ |
60 | 60 | ||
61 | #include "includes.h" | 61 | #include "includes.h" |
62 | RCSID("$OpenBSD: clientloop.c,v 1.136 2005/03/10 22:01:05 deraadt Exp $"); | 62 | RCSID("$OpenBSD: clientloop.c,v 1.137 2005/06/08 11:25:09 djm Exp $"); |
63 | 63 | ||
64 | #include "ssh.h" | 64 | #include "ssh.h" |
65 | #include "ssh1.h" | 65 | #include "ssh1.h" |
@@ -616,13 +616,15 @@ client_process_control(fd_set * readset) | |||
616 | 616 | ||
617 | switch (command) { | 617 | switch (command) { |
618 | case SSHMUX_COMMAND_OPEN: | 618 | case SSHMUX_COMMAND_OPEN: |
619 | if (options.control_master == 2) | 619 | if (options.control_master == SSHCTL_MASTER_ASK || |
620 | options.control_master == SSHCTL_MASTER_AUTO_ASK) | ||
620 | allowed = ask_permission("Allow shared connection " | 621 | allowed = ask_permission("Allow shared connection " |
621 | "to %s? ", host); | 622 | "to %s? ", host); |
622 | /* continue below */ | 623 | /* continue below */ |
623 | break; | 624 | break; |
624 | case SSHMUX_COMMAND_TERMINATE: | 625 | case SSHMUX_COMMAND_TERMINATE: |
625 | if (options.control_master == 2) | 626 | if (options.control_master == SSHCTL_MASTER_ASK || |
627 | options.control_master == SSHCTL_MASTER_AUTO_ASK) | ||
626 | allowed = ask_permission("Terminate shared connection " | 628 | allowed = ask_permission("Terminate shared connection " |
627 | "to %s? ", host); | 629 | "to %s? ", host); |
628 | if (allowed) | 630 | if (allowed) |