From fc3ecf82c3d0f8037e9130655128564de5d3c158 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Wed, 11 Jan 2006 10:54:43 +0000 Subject: intergrating ssl. Removing global variables SSL* like SSLctx and HSOCKET_SSL_* definition. Instead we are using HSOCKET_ERROR_SSL* definitions. introduced hsocket_init_ssl() --- nanohttp/nanohttp-ssl.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'nanohttp/nanohttp-ssl.h') 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 */ -- cgit v1.1-32-gdbae