From: Nick Mathewson Date: Fri, 6 Nov 2015 15:58:00 +0000 (-0500) Subject: "And now a better patch which builds the tests if LibreSSL is used." X-Git-Tag: tor-0.2.8.1-alpha~250 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af80d472f7d6cb32370176d4dd02b5194adf0f3d;p=thirdparty%2Ftor.git "And now a better patch which builds the tests if LibreSSL is used." Works on the latest LibreSSL (in OpenBSD-current). (Patch from 'rubiate' on #17253. --- diff --git a/src/test/test_tortls.c b/src/test/test_tortls.c index 280e7fa3b0..fd3d50cf7e 100644 --- a/src/test/test_tortls.c +++ b/src/test/test_tortls.c @@ -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