summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2002-02-03 17:58:21 +0000
committermarkus <markus@openbsd.org>2002-02-03 17:58:21 +0000
commit8abedeef312134855db255a2f65e9ca7e160f053 (patch)
tree983d61ca0901e820512ae9dd287417a523ff0223 /usr.bin/ssh/ssh.c
parentremove unused channel_input_channel_request (diff)
downloadwireguard-openbsd-8abedeef312134855db255a2f65e9ca7e160f053.tar.xz
wireguard-openbsd-8abedeef312134855db255a2f65e9ca7e160f053.zip
generic callbacks are not really used, remove and
add a callback for msg of type SSH2_MSG_CHANNEL_OPEN_CONFIRMATION ok djm@
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r--usr.bin/ssh/ssh.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index 2c858f911f3..5aec17c6d12 100644
--- a/usr.bin/ssh/ssh.c
+++ b/usr.bin/ssh/ssh.c
@@ -39,7 +39,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh.c,v 1.159 2002/01/27 18:08:17 stevesk Exp $");
+RCSID("$OpenBSD: ssh.c,v 1.160 2002/02/03 17:58:21 markus Exp $");
#include <openssl/evp.h>
#include <openssl/err.h>
@@ -1141,9 +1141,7 @@ ssh_session2_open(void)
channel_send_open(c->self);
if (!no_shell_flag)
- channel_register_callback(c->self,
- SSH2_MSG_CHANNEL_OPEN_CONFIRMATION,
- ssh_session2_setup, (void *)0);
+ channel_register_confirm(c->self, ssh_session2_setup);
return c->self;
}