summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-ssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'nanohttp/nanohttp-ssl.c')
-rw-r--r--nanohttp/nanohttp-ssl.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/nanohttp/nanohttp-ssl.c b/nanohttp/nanohttp-ssl.c
index 254b718..a2cdf17 100644
--- a/nanohttp/nanohttp-ssl.c
+++ b/nanohttp/nanohttp-ssl.c
@@ -166,22 +166,24 @@ user_verify (X509 * cert)
}
#endif
-SSL_CTX *
-initialize_ctx (const char *keyfile, const char *password, const char *calist)
-{
- SSL_CTX *ctx = NULL;
-
- if (password == NULL)
- password = "";
-
-
+void
+start_ssl( void ){
/* Global system initialization */
log_verbose1 ("Initializing library");
SSL_library_init ();
SSL_load_error_strings ();
ERR_load_crypto_strings ();
OpenSSL_add_ssl_algorithms ();
+}
+SSL_CTX *
+initialize_ctx (const char *keyfile, const char *password, const char *calist)
+{
+ SSL_CTX *ctx = NULL;
+
+ if (password == NULL)
+ password = "";
+
/* Create our context */
ctx = SSL_CTX_new (SSLv23_method ());