Mercurial > dropbear
diff session.h @ 733:70811267715c
Run the cleanup handler also when we close due to TCP connection being closed
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 01 Apr 2013 22:26:55 +0800 |
parents | 00bc3df3a9c3 |
children | 077bbe1eb220 |
line wrap: on
line diff
--- a/session.h Mon Apr 01 22:26:24 2013 +0800 +++ b/session.h Mon Apr 01 22:26:55 2013 +0800 @@ -44,7 +44,7 @@ void common_session_init(int sock_in, int sock_out); void session_loop(void(*loophandler)()); -void common_session_cleanup(); +void session_cleanup(); void send_session_identification(); void send_msg_ignore(); @@ -58,7 +58,6 @@ /* Client */ void cli_session(int sock_in, int sock_out); -void cli_session_cleanup(); void cleantext(unsigned char* dirtytext); /* crypto parameters that are stored individually for transmit and receive */ @@ -181,6 +180,7 @@ void(*remoteclosed)(); /* A callback to handle closure of the remote connection */ + void(*extra_session_cleanup)(); /* client or server specific cleanup */ struct AuthState authstate; /* Common amongst client and server, since most struct elements are common */