Parcourir la source

"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.
Nick Mathewson il y a 8 ans
Parent
commit
af80d472f7
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/test/test_tortls.c

+ 2 - 1
src/test/test_tortls.c

@@ -53,7 +53,8 @@
 extern tor_tls_context_t *server_tls_context;
 extern tor_tls_context_t *server_tls_context;
 extern tor_tls_context_t *client_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
 #define OPENSSL_OPAQUE
 #endif
 #endif