]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Log a notice if we're running with OpenSSL before 1.0.0.
authorNick Mathewson <nickm@torproject.org>
Wed, 12 Sep 2012 23:31:24 +0000 (19:31 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 12 Sep 2012 23:32:24 +0000 (19:32 -0400)
These versions have some dubious, slow crypto implementations; 1.0.0
is a great improvement, and at this point is pretty mature.

src/common/crypto.c

index 6c6bf148933d112ddd0ce006e9988ad713023786..979ff3cfa62b46c36b0900d3f54e95d21589fa7b 100644 (file)
@@ -243,6 +243,11 @@ crypto_global_init(int useAccel, const char *accelName, const char *accelDir)
                SSLeay(), SSLeay_version(SSLEAY_VERSION));
     }
 
+    if (SSLeay() < OPENSSL_V_SERIES(1,0,0)) {
+      log_notice(LD_CRYPTO, "Your OpenSSL version seems to be %s. We "
+                 "recommend 1.0.0 or later.", crypto_openssl_get_version_str());
+    }
+
     if (useAccel > 0) {
 #ifdef DISABLE_ENGINES
       (void)accelName;