diff options
author | Jakub Sławiński | 2006-02-05 15:14:03 +0100 |
---|---|---|
committer | Joshua Judson Rosen | 2014-07-17 21:15:02 +0200 |
commit | b457fec36399c1f7de093d5e92bb4fa453b79c86 (patch) | |
tree | 2084c9a78d40213015e6f10e3e9e01bc4c0c51f1 /src/make_ssl_handshake.c | |
parent | Update copyright statements. (diff) | |
download | apf-b457fec36399c1f7de093d5e92bb4fa453b79c86.tar.gz |
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
Diffstat (limited to 'src/make_ssl_handshake.c')
-rw-r--r-- | src/make_ssl_handshake.c | 24 |
1 files changed, 24 insertions, 0 deletions
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 <errno.h> #include <openssl/err.h> +/* + * 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) { |