diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2008-05-08 12:02:24 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2008-05-08 12:02:24 +0000 |
commit | 1e325f2a90e53ea6a2c04110feba6e635db362c7 (patch) | |
tree | 3dc0d973422108c16e2300700da613dd1563f0e0 /usr.bin/ssh/servconf.c | |
parent | 6ff229c1bd179c584a9f4a83ef4781458bac14aa (diff) |
Implement a channel success/failure status confirmation callback
mechanism. Each channel maintains a queue of callbacks, which will
be drained in order (RFC4253 guarantees confirm messages are not
reordered within an channel).
Also includes a abandonment callback to clean up if a channel is
closed without sending confirmation messages. This probably
shouldn't happen in compliant implementations, but it could be
abused to leak memory.
ok markus@ (as part of a larger diff)
Diffstat (limited to 'usr.bin/ssh/servconf.c')
-rw-r--r-- | usr.bin/ssh/servconf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/servconf.c b/usr.bin/ssh/servconf.c index cf428681382..ee47a9d9814 100644 --- a/usr.bin/ssh/servconf.c +++ b/usr.bin/ssh/servconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: servconf.c,v 1.178 2008/05/07 05:49:37 pyr Exp $ */ +/* $OpenBSD: servconf.c,v 1.179 2008/05/08 12:02:23 djm Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * All rights reserved @@ -12,6 +12,7 @@ #include <sys/types.h> #include <sys/socket.h> +#include <sys/queue.h> #include <netdb.h> #include <pwd.h> |