diff options
author | 2008-05-08 12:02:23 +0000 | |
---|---|---|
committer | 2008-05-08 12:02:23 +0000 | |
commit | 2a54096d41e5f771b9e9abd3e507c56b251eb45b (patch) | |
tree | 82781456b825c0c5df58b749a40a0fac6cb344a8 /usr.bin/ssh/auth1.c | |
parent | timer_due is not needed any more (diff) | |
download | wireguard-openbsd-2a54096d41e5f771b9e9abd3e507c56b251eb45b.tar.xz wireguard-openbsd-2a54096d41e5f771b9e9abd3e507c56b251eb45b.zip |
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/auth1.c')
-rw-r--r-- | usr.bin/ssh/auth1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/auth1.c b/usr.bin/ssh/auth1.c index dcfa9e69b9d..3c6c3a6264c 100644 --- a/usr.bin/ssh/auth1.c +++ b/usr.bin/ssh/auth1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth1.c,v 1.71 2007/09/21 08:15:29 djm Exp $ */ +/* $OpenBSD: auth1.c,v 1.72 2008/05/08 12:02:23 djm Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * All rights reserved @@ -11,6 +11,7 @@ */ #include <sys/types.h> +#include <sys/queue.h> #include <stdio.h> #include <string.h> |