From b457fec36399c1f7de093d5e92bb4fa453b79c86 Mon Sep 17 00:00:00 2001 From: Jakub Sławiński Date: Sun, 5 Feb 2006 15:14:03 +0100 Subject: v0.8 - Fixed: infinite loop after buffering message - Fixed: corrupt packets after closing connections in the stopped state - Fixed: bug in mapping user numbers between afclient and afserver - Fixed: premature close of the service connection - Fixed: invalid buffering when the connection is closing - Added: Multiple tunnels in one afclient<->afserver connection --- src/make_ssl_handshake.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/make_ssl_handshake.c') diff --git a/src/make_ssl_handshake.c b/src/make_ssl_handshake.c index 79e2fa5..21dbdb5 100644 --- a/src/make_ssl_handshake.c +++ b/src/make_ssl_handshake.c @@ -27,6 +27,12 @@ #include #include +/* + * Function name: make_ssl_initialize + * Description: Initializes the file descriptor of the SSL connection. + * Arguments: sf - pointer to SslFd structure + */ + void make_ssl_initialize(SslFd* sf) { @@ -37,6 +43,14 @@ make_ssl_initialize(SslFd* sf) } } +/* + * Function name: make_ssl_accept + * Description: Accepts new SSL connection. + * Arguments: sf - pointer to SslFd structure + * Returns: 0 - success, + * !0 - failure. + */ + int make_ssl_accept(SslFd* sf) { @@ -47,6 +61,16 @@ make_ssl_accept(SslFd* sf) return 0; } +/* + * Function name: get_ssl_error + * Description: Decodes and logs SSL errors. + * Arguments: sf - pointer to SslFd structure + * info - the header of the warning message + * result - the result from the SSL_accept function + * Returns: 1 - more i/o operations are needed to accomplish handshake, + * 2 - the error was fatal for the handshake. + */ + int get_ssl_error(SslFd* sf, char* info, int result) { -- cgit v1.1