From b38eff8e4ff901df9cf1113a9f14d64c3565a401 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sat, 1 Apr 2000 11:09:21 +1000 Subject: - 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 --- dispatch.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 dispatch.h (limited to 'dispatch.h') diff --git a/dispatch.h b/dispatch.h new file mode 100644 index 000000000..12084aafe --- /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); -- cgit v1.2.3