take care about opneSSL < 1.0.2
@@ -357,9 +357,12 @@ return;
/*===========================================================================*/
static bool initlists()
{
+static unsigned long opensslversion;
static const char nastring[] = { "N/A" };
-unsigned long opensslversion;
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+SSL_library_init();
+#endif
opensslversion = OpenSSL_version_num();
opensslversionmajor = (opensslversion & 0x10000000L) >> 28;
opensslversionminor = (opensslversion & 0x01100000L) >> 20;
