X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fcrypto.c;fp=webcit%2Fcrypto.c;h=9f85b2ad9d135228b44d512d226de49e78a91f85;hp=3d9b534692b3b667504b90c282361ac6a3922b1a;hb=41a68e93ee5d46eec3cf12f4614e53c1bac84e43;hpb=c3f4724c1d230b6ff86426702e9de9241518ebd6 diff --git a/webcit/crypto.c b/webcit/crypto.c index 3d9b53469..9f85b2ad9 100644 --- a/webcit/crypto.c +++ b/webcit/crypto.c @@ -22,10 +22,6 @@ char *ssl_cipher_list = DEFAULT_SSL_CIPHER_LIST; pthread_key_t ThreadSSL; // Per-thread SSL context -void shutdown_ssl(void) { - ERR_free_strings(); -} - // Set the private key and certificate chain for the global SSL Context. // This is called during initialization, and can be called again later if the certificate changes. @@ -70,9 +66,11 @@ void bind_to_key_and_certificate(void) { // initialize ssl engine, load certs and initialize openssl internals void init_ssl(void) { - // Initialize SSL transport layer - SSL_library_init(); + // Initialize the OpenSSL library SSL_load_error_strings(); + ERR_load_crypto_strings(); + OpenSSL_add_all_algorithms(); + SSL_library_init(); // Now try to bind to the key and certificate. bind_to_key_and_certificate();