From ea700d80f5d65f7d6c4cab4ccd09192467b15204 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 13 May 2013 16:05:56 +0200 Subject: Cross-platform and (truly) thread-safe OpenSSL initialization. --- src/net/tls/openssl/TLSSocket_OpenSSL.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/net/tls/openssl/TLSSocket_OpenSSL.cpp') diff --git a/src/net/tls/openssl/TLSSocket_OpenSSL.cpp b/src/net/tls/openssl/TLSSocket_OpenSSL.cpp index b8ac18e9..7fda1f15 100644 --- a/src/net/tls/openssl/TLSSocket_OpenSSL.cpp +++ b/src/net/tls/openssl/TLSSocket_OpenSSL.cpp @@ -32,6 +32,7 @@ #include "vmime/net/tls/openssl/TLSSocket_OpenSSL.hpp" #include "vmime/net/tls/openssl/TLSSession_OpenSSL.hpp" +#include "vmime/net/tls/openssl/OpenSSLInitializer.hpp" #include "vmime/platform.hpp" @@ -45,6 +46,9 @@ namespace net { namespace tls { +static OpenSSLInitializer::autoInitializer openSSLInitializer; + + // static BIO_METHOD TLSSocket_OpenSSL::sm_customBIOMethod = { -- cgit