]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Reverse the direction of the test for openssl 3.0.0
authorNick Mathewson <nickm@torproject.org>
Fri, 5 Nov 2021 17:23:05 +0000 (13:23 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 5 Nov 2021 17:23:05 +0000 (13:23 -0400)
Previously the logic was reversed, and always gave the wrong answer.
This has no other effect than to change whether we suppress
deprecated API warnings.

Fixes #40429; bugfix on 0.3.5.13.

changes/bug40429 [new file with mode: 0644]
configure.ac

diff --git a/changes/bug40429 b/changes/bug40429
new file mode 100644 (file)
index 0000000..9bf3b63
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes (compilation):
+    - Fix our configuration logic to detect whether we had OpenSSL 3:
+      previously, our logic was reversed. This has no other effect than to
+      change whether we suppress deprecated API warnings. Fixes
+      bug 40429; bugfix on 0.3.5.13.
index 930862442c794c319ea45fceeab8a252292118b9..249a250a2f5dbc4e3ac937211fb2d4f3b471485a 100644 (file)
@@ -945,7 +945,7 @@ dnl warnings.
 AC_MSG_CHECKING([for OpenSSL >= 3.0.0])
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 #include <openssl/opensslv.h>
-#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER <= 0x30000000L
+#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x30000000L
 #error "you_have_version_3"
 #endif
    ]], [[]])],