diff options
author | Damien Miller <djm@mindrot.org> | 2000-04-04 14:38:59 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-04-04 14:38:59 +1000 |
commit | 33b13568b520b25990261206e10c941a9270238f (patch) | |
tree | be9d549ee0c9c7774e3ec1da8d807b2e04b00bec /nchan.h | |
parent | 193ba88dd6e9d6bcd5f476c7f5ddde8fd0b752bf (diff) |
- OpenBSD CVS update:
- [packet.h packet.c]
ssh2 packet format
- [packet.h packet.c nchan2.ms nchan.h compat.h compat.c]
[channels.h channels.c]
channel layer support for ssh2
- [kex.h kex.c hmac.h hmac.c dsa.c dsa.h]
DSA, keyexchange, algorithm agreement for ssh2
Diffstat (limited to 'nchan.h')
-rw-r--r-- | nchan.h | 30 |
1 files changed, 19 insertions, 11 deletions
@@ -27,7 +27,7 @@ | |||
27 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 | */ | 28 | */ |
29 | 29 | ||
30 | /* RCSID("$Id: nchan.h,v 1.4 2000/04/01 01:09:24 damien Exp $"); */ | 30 | /* RCSID("$Id: nchan.h,v 1.5 2000/04/04 04:39:02 damien Exp $"); */ |
31 | 31 | ||
32 | #ifndef NCHAN_H | 32 | #ifndef NCHAN_H |
33 | #define NCHAN_H | 33 | #define NCHAN_H |
@@ -72,17 +72,25 @@ | |||
72 | #define CHAN_OUTPUT_WAIT_IEOF 0x40 | 72 | #define CHAN_OUTPUT_WAIT_IEOF 0x40 |
73 | #define CHAN_OUTPUT_CLOSED 0x80 | 73 | #define CHAN_OUTPUT_CLOSED 0x80 |
74 | 74 | ||
75 | /* EVENTS for the input state */ | 75 | #define CHAN_CLOSE_SENT 0x01 |
76 | void chan_rcvd_oclose(Channel * c); | 76 | #define CHAN_CLOSE_RCVD 0x02 |
77 | void chan_read_failed(Channel * c); | ||
78 | void chan_ibuf_empty(Channel * c); | ||
79 | 77 | ||
80 | /* EVENTS for the output state */ | ||
81 | void chan_rcvd_ieof(Channel * c); | ||
82 | void chan_write_failed(Channel * c); | ||
83 | void chan_obuf_empty(Channel * c); | ||
84 | 78 | ||
85 | void chan_init_iostates(Channel * c); | 79 | /* Channel EVENTS */ |
80 | typedef void chan_event_fn(Channel * c); | ||
81 | |||
82 | /* for the input state */ | ||
83 | extern chan_event_fn *chan_rcvd_oclose; | ||
84 | extern chan_event_fn *chan_read_failed; | ||
85 | extern chan_event_fn *chan_ibuf_empty; | ||
86 | |||
87 | /* for the output state */ | ||
88 | extern chan_event_fn *chan_rcvd_ieof; | ||
89 | extern chan_event_fn *chan_write_failed; | ||
90 | extern chan_event_fn *chan_obuf_empty; | ||
86 | 91 | ||
87 | void chan_delete_if_full_closed(Channel *c); | 92 | extern chan_event_fn *chan_delete_if_full_closed; |
93 | |||
94 | void chan_init_iostates(Channel * c); | ||
95 | void chan_init(void); | ||
88 | #endif | 96 | #endif |