aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_openssl.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-10-06 12:58:49 -0400
committerNick Mathewson <nickm@torproject.org>2016-10-06 12:58:49 -0400
commit850ec1e2822482435bb0efa8853a74d6f0feaa20 (patch)
treef080f1007ad3aa124848c3abe4d2049cc042de9d /src/common/compat_openssl.h
parent80e2896d52981579042cc906766bc0444da7a1d3 (diff)
downloadtor-850ec1e2822482435bb0efa8853a74d6f0feaa20.tar.gz
tor-850ec1e2822482435bb0efa8853a74d6f0feaa20.zip
Stop implying that we support openssl 1.0.0; we don't.
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.
Diffstat (limited to 'src/common/compat_openssl.h')
-rw-r--r--src/common/compat_openssl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/compat_openssl.h b/src/common/compat_openssl.h
index a7bdb0a224..1bfe188075 100644
--- a/src/common/compat_openssl.h
+++ b/src/common/compat_openssl.h
@@ -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) && \