]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Stop implying that we support openssl 1.0.0; we don't.
authorNick Mathewson <nickm@torproject.org>
Thu, 6 Oct 2016 16:58:49 +0000 (12:58 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 6 Oct 2016 16:58:49 +0000 (12:58 -0400)
Closes ticket 20303.

The LIBRESSL_VERSION_NUMBER check is needed because if our openssl
is really libressl, it will have an openssl version number we can't
really believe.

changes/no_openssl_100 [new file with mode: 0644]
configure.ac
src/common/compat_openssl.h

diff --git a/changes/no_openssl_100 b/changes/no_openssl_100
new file mode 100644 (file)
index 0000000..dd89da8
--- /dev/null
@@ -0,0 +1,4 @@
+  o Required libraries:
+    - When building with OpenSSL, Tor now requires version 1.0.1 or later.
+      OpenSSL 1.0.0 and earlier are no longer supported by the openssl team,
+      and should not be used. Closes ticket 20303.
index 23371d3b4b24fd582813fa2e37b8b41dfb9601c6..af42896dc893e189960170d863cf63964ad4dcc7 100644 (file)
@@ -614,12 +614,12 @@ CPPFLAGS="$TOR_CPPFLAGS_openssl $CPPFLAGS"
 
 AC_TRY_COMPILE([
 #include <openssl/opensslv.h>
-#if OPENSSL_VERSION_NUMBER < 0x1000000fL
+#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x1000100fL
 #error "too old"
 #endif
    ], [],
    [ : ],
-   [ AC_ERROR([OpenSSL is too old. We require 1.0.0 or later. You can specify a path to a newer one with --with-openssl-dir.]) ])
+   [ AC_ERROR([OpenSSL is too old. We require 1.0.1 or later. You can specify a path to a newer one with --with-openssl-dir.]) ])
 
 AC_TRY_COMPILE([
 #include <openssl/opensslv.h>
index a7bdb0a224b9d6b6807c620d9017f4120a59d718..1bfe18807590caa42be5118932d3a692f828baef 100644 (file)
@@ -15,8 +15,9 @@
  * \brief compatability definitions for working with different openssl forks
  **/
 
-#if OPENSSL_VERSION_NUMBER < OPENSSL_V_SERIES(1,0,0)
-#error "We require OpenSSL >= 1.0.0"
+#if !defined(LIBRESSL_VERSION_NUMBER) && \
+  OPENSSL_VERSION_NUMBER < OPENSSL_V_SERIES(1,0,1)
+#error "We require OpenSSL >= 1.0.1"
 #endif
 
 #if OPENSSL_VERSION_NUMBER >= OPENSSL_V_SERIES(1,1,0) && \