]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Only define NEW_THREAD_API when not building with LibreSSL.
authorNick Mathewson <nickm@torproject.org>
Tue, 5 Apr 2016 14:38:15 +0000 (10:38 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 5 Apr 2016 14:38:15 +0000 (10:38 -0400)
src/common/crypto.c

index 2da579119b888538a478bc50d938dd2de19248f2..d2a42698cb0b6aa11fb0ccae0a96f78fcb946636 100644 (file)
 #define DISABLE_ENGINES
 #endif
 
-#if OPENSSL_VERSION_NUMBER >= OPENSSL_VER(1,1,0,0,4)
+#if OPENSSL_VERSION_NUMBER >= OPENSSL_VER(1,1,0,0,4) && \
+  !defined(LIBRESSL_VERSION_NUMBER)
 /* OpenSSL as of 1.1.0-pre4 has an "new" thread API, which doesn't require
  * seting up various callbacks.
  *
- * Note: Yes, using OPENSSL_VER is naughty, but theis was introduced in the
+ * Note: Yes, using OPENSSL_VER is naughty, but this was introduced in the
  * pre-release series.
  */
 #define NEW_THREAD_API