summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2008-05-08 12:02:24 +0000
committerDamien Miller <djm@cvs.openbsd.org>2008-05-08 12:02:24 +0000
commit1e325f2a90e53ea6a2c04110feba6e635db362c7 (patch)
tree3dc0d973422108c16e2300700da613dd1563f0e0 /usr.bin/ssh/sshd.c
parent6ff229c1bd179c584a9f4a83ef4781458bac14aa (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/sshd.c')
-rw-r--r--usr.bin/ssh/sshd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index 2e52fff7c9d..6861a83b7c6 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshd.c,v 1.356 2008/04/13 00:22:17 djm Exp $ */
+/* $OpenBSD: sshd.c,v 1.357 2008/05/08 12:02:23 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -49,6 +49,7 @@
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/time.h>
+#include <sys/queue.h>
#include <errno.h>
#include <fcntl.h>