summaryrefslogtreecommitdiff
path: root/dispatch.h
diff options
context:
space:
mode:
authordamien <damien>2000-04-01 01:09:21 +0000
committerdamien <damien>2000-04-01 01:09:21 +0000
commitfd4da4393d2f5d5b7bfc0654aa0de04a103a5756 (patch)
tree2d4d335281ed8665c837eac16fc25fc90b09dcf2 /dispatch.h
parent0813e8a392fe6cc7661f108485177667bee6caeb (diff)
downloadopenssh-fd4da4393d2f5d5b7bfc0654aa0de04a103a5756.tar.gz
- Big OpenBSD CVS update (mainly beginnings of SSH2 infrastructure)
- [auth.c session.c sshd.c auth.h] split sshd.c -> auth.c session.c sshd.c plus cleanup and goto-removal - [bufaux.c bufaux.h] support ssh2 bignums - [channels.c channels.h clientloop.c sshd.c nchan.c nchan.h packet.c] [readconf.c ssh.c ssh.h serverloop.c] replace big switch() with function tables (prepare for ssh2) - [ssh2.h] ssh2 message type codes - [sshd.8] reorder Xr to avoid cutting - [serverloop.c] close(fdin) if fdin != fdout, shutdown otherwise, ok theo@ - [channels.c] missing close allow bigger packets - [cipher.c cipher.h] support ssh2 ciphers - [compress.c] cleanup, less code - [dispatch.c dispatch.h] function tables for different message types - [log-server.c] do not log() if debuggin to stderr rename a cpp symbol, to avoid param.h collision - [mpaux.c] KNF - [nchan.c] sync w/ channels.c
Diffstat (limited to 'dispatch.h')
-rw-r--r--dispatch.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/dispatch.h b/dispatch.h
new file mode 100644
index 00000000..12084aaf
--- /dev/null
+++ b/dispatch.h
@@ -0,0 +1,11 @@
+enum {
+ DISPATCH_BLOCK,
+ DISPATCH_NONBLOCK
+};
+
+typedef void dispatch_fn(int type, int plen);
+
+void dispatch_init(dispatch_fn *dflt);
+void dispatch_set(int type, dispatch_fn *fn);
+void dispatch_run(int mode, int *done);
+void dispatch_protocol_error(int type, int plen);