diff options
author | snowdrop | 2006-01-11 10:54:43 +0000 |
---|---|---|
committer | snowdrop | 2006-01-11 10:54:43 +0000 |
commit | fc3ecf82c3d0f8037e9130655128564de5d3c158 (patch) | |
tree | dcbec599d761d8b0a9052a40151a2fea2af50b83 /nanohttp/nanohttp-ssl.h | |
parent | 3a17b921e00936e3007807439f60e4bd7c7d6a51 (diff) | |
download | csoap-fc3ecf82c3d0f8037e9130655128564de5d3c158.tar.gz csoap-fc3ecf82c3d0f8037e9130655128564de5d3c158.tar.bz2 |
intergrating ssl. Removing global variables SSL* like SSLctx and HSOCKET_SSL_* definition. Instead we are using HSOCKET_ERROR_SSL* definitions. introduced hsocket_init_ssl()
Diffstat (limited to 'nanohttp/nanohttp-ssl.h')
-rw-r--r-- | nanohttp/nanohttp-ssl.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/nanohttp/nanohttp-ssl.h b/nanohttp/nanohttp-ssl.h index f4ec7ef..5cb4cc3 100644 --- a/nanohttp/nanohttp-ssl.h +++ b/nanohttp/nanohttp-ssl.h @@ -63,7 +63,9 @@ typedef struct Con * Initialize the context */ -SSL_CTX *initialize_ctx(char *keyfile, char *password, char *calist); +SSL_CTX *initialize_ctx(const char *keyfile, + const char *password, + const char *calist); /* * Quick function for verifying a portion of the cert @@ -98,6 +100,14 @@ SSL *init_ssl(SSL_CTX * ctx, int sock, int type); void ssl_cleanup(); +/** + Log funtion to report ssl failures + @param ssl + @param ret + */ +void +log_ssl_error (SSL * ssl, int ret); + #endif #endif /* HAVE_SSL */ |