diff options
Diffstat (limited to 'dispatch.c')
-rw-r--r-- | dispatch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dispatch.c b/dispatch.c index 3daac2022..db8951c1b 100644 --- a/dispatch.c +++ b/dispatch.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | #include "includes.h" | 24 | #include "includes.h" |
25 | RCSID("$OpenBSD: dispatch.c,v 1.4 2000/09/07 20:27:51 deraadt Exp $"); | 25 | RCSID("$OpenBSD: dispatch.c,v 1.5 2000/09/21 11:25:34 markus Exp $"); |
26 | #include "ssh.h" | 26 | #include "ssh.h" |
27 | #include "dispatch.h" | 27 | #include "dispatch.h" |
28 | #include "packet.h" | 28 | #include "packet.h" |
@@ -33,7 +33,7 @@ RCSID("$OpenBSD: dispatch.c,v 1.4 2000/09/07 20:27:51 deraadt Exp $"); | |||
33 | dispatch_fn *dispatch[DISPATCH_MAX]; | 33 | dispatch_fn *dispatch[DISPATCH_MAX]; |
34 | 34 | ||
35 | void | 35 | void |
36 | dispatch_protocol_error(int type, int plen) | 36 | dispatch_protocol_error(int type, int plen, void *ctxt) |
37 | { | 37 | { |
38 | error("Hm, dispatch protocol error: type %d plen %d", type, plen); | 38 | error("Hm, dispatch protocol error: type %d plen %d", type, plen); |
39 | } | 39 | } |
@@ -50,7 +50,7 @@ dispatch_set(int type, dispatch_fn *fn) | |||
50 | dispatch[type] = fn; | 50 | dispatch[type] = fn; |
51 | } | 51 | } |
52 | void | 52 | void |
53 | dispatch_run(int mode, int *done) | 53 | dispatch_run(int mode, int *done, void *ctxt) |
54 | { | 54 | { |
55 | for (;;) { | 55 | for (;;) { |
56 | int plen; | 56 | int plen; |
@@ -64,7 +64,7 @@ dispatch_run(int mode, int *done) | |||
64 | return; | 64 | return; |
65 | } | 65 | } |
66 | if (type > 0 && type < DISPATCH_MAX && dispatch[type] != NULL) | 66 | if (type > 0 && type < DISPATCH_MAX && dispatch[type] != NULL) |
67 | (*dispatch[type])(type, plen); | 67 | (*dispatch[type])(type, plen, ctxt); |
68 | else | 68 | else |
69 | packet_disconnect("protocol error: rcvd type %d", type); | 69 | packet_disconnect("protocol error: rcvd type %d", type); |
70 | if (done != NULL && *done) | 70 | if (done != NULL && *done) |