From c691251feaffa310a51e0c2255eefc6b42f0e728 Mon Sep 17 00:00:00 2001 From: Jakub Sławiński Date: Fri, 9 Jan 2004 18:48:31 +0100 Subject: v0.5.3 - Added: client password identification (weak) - Added: sigint intercepting and server closing - Modified: communication between server and client - Added: 'nossl' and 'nozlib' modes - Added: zlib support - Lightly Modified: verbose mode - Modified/Added: help screen and long options support --- network.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'network.h') diff --git a/network.h b/network.h index c4d168c..930a842 100644 --- a/network.h +++ b/network.h @@ -34,9 +34,18 @@ #include #include +typedef struct { + int commfd; + SSL* ssl; +} clifd; + int ip_listen(const char *host, const char *serv, socklen_t *addrlenp, const char *type); /* socket, bind, listen... */ int ip_connect(const char *host, const char *serv, const char *type); /* socket, connect... */ char* sock_ntop(const struct sockaddr* sa, socklen_t salen); /* return the hostname of connected user */ + +int send_message(char type, clifd fd, unsigned char* buf, int amount); +int get_message(char type, clifd fd, unsigned char* buf, int amount); + int SSL_writen(SSL* fd, unsigned char* buf, int amount); int SSL_readn(SSL* fd, unsigned char* buf, int amount); int writen(int fd, unsigned char* buf, int amount); -- cgit v1.1