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/session.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/session.c')
-rw-r--r-- | usr.bin/ssh/session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c index 5a874043187..48ebc859bcc 100644 --- a/usr.bin/ssh/session.c +++ b/usr.bin/ssh/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.235 2008/05/07 05:49:37 pyr Exp $ */ +/* $OpenBSD: session.c,v 1.236 2008/05/08 12:02:23 djm Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * All rights reserved @@ -39,6 +39,7 @@ #include <sys/stat.h> #include <sys/socket.h> #include <sys/param.h> +#include <sys/queue.h> #include <errno.h> #include <grp.h> |