]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
"And now a better patch which builds the tests if LibreSSL is used."
authorNick Mathewson <nickm@torproject.org>
Fri, 6 Nov 2015 15:58:00 +0000 (10:58 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 6 Nov 2015 15:58:00 +0000 (10:58 -0500)
Works on the latest LibreSSL (in OpenBSD-current).

(Patch from 'rubiate' on #17253.

src/test/test_tortls.c

index 280e7fa3b03cbe304c1ae37b23ddf1d4b64dff19..fd3d50cf7e777537f83d04b8ba6f54d6ab83cc42 100644 (file)
@@ -53,7 +53,8 @@
 extern tor_tls_context_t *server_tls_context;
 extern tor_tls_context_t *client_tls_context;
 
-#if OPENSSL_VERSION_NUMBER >= OPENSSL_V_SERIES(1,1,0)
+#if OPENSSL_VERSION_NUMBER >= OPENSSL_V_SERIES(1,1,0) \
+    && !defined(LIBRESSL_VERSION_NUMBER)
 #define OPENSSL_OPAQUE
 #endif