diff options
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 */ |