diff options
author | Vincent Richard <[email protected]> | 2013-05-13 14:05:56 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-05-13 14:05:56 +0000 |
commit | ea700d80f5d65f7d6c4cab4ccd09192467b15204 (patch) | |
tree | da40c4504649b2b318c019e7d35ee856536d6abb /src/net/tls/openssl/TLSSocket_OpenSSL.cpp | |
parent | Put generated header files in a separate list. (diff) | |
download | vmime-ea700d80f5d65f7d6c4cab4ccd09192467b15204.tar.gz vmime-ea700d80f5d65f7d6c4cab4ccd09192467b15204.zip |
Cross-platform and (truly) thread-safe OpenSSL initialization.
Diffstat (limited to 'src/net/tls/openssl/TLSSocket_OpenSSL.cpp')
-rw-r--r-- | src/net/tls/openssl/TLSSocket_OpenSSL.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 = { |