|
|
debe55 |
From b7700862a9a85e5bab302c158d5aa6ac1af7c5c1 Mon Sep 17 00:00:00 2001
|
|
|
debe55 |
From: Omair Majid <omajid@redhat.com>
|
|
|
debe55 |
Date: Mon, 7 Jun 2021 11:37:48 -0400
|
|
|
debe55 |
Subject: [PATCH 09/11] Use `1` instead of `true` for more portable code
|
|
|
debe55 |
|
|
|
debe55 |
---
|
|
|
debe55 |
.../opensslshim.h | 14 +++++++-------
|
|
|
debe55 |
1 file changed, 7 insertions(+), 7 deletions(-)
|
|
|
debe55 |
|
|
|
debe55 |
diff --git a/src/Native/Unix/System.Security.Cryptography.Native/opensslshim.h b/src/Native/Unix/System.Security.Cryptography.Native/opensslshim.h
|
|
|
debe55 |
index c5052c1ba5..b0d1a71671 100644
|
|
|
debe55 |
--- a/src/Native/Unix/System.Security.Cryptography.Native/opensslshim.h
|
|
|
debe55 |
+++ b/src/Native/Unix/System.Security.Cryptography.Native/opensslshim.h
|
|
|
debe55 |
@@ -91,9 +91,9 @@ void ERR_put_error(int32_t lib, int32_t func, int32_t reason, const char* file,
|
|
|
debe55 |
|
|
|
debe55 |
#ifdef FEATURE_DISTRO_AGNOSTIC_SSL
|
|
|
debe55 |
|
|
|
debe55 |
-#define NEED_OPENSSL_1_0 true
|
|
|
debe55 |
-#define NEED_OPENSSL_1_1 true
|
|
|
debe55 |
-#define NEED_OPENSSL_3_0 true
|
|
|
debe55 |
+#define NEED_OPENSSL_1_0 1
|
|
|
debe55 |
+#define NEED_OPENSSL_1_1 1
|
|
|
debe55 |
+#define NEED_OPENSSL_3_0 1
|
|
|
debe55 |
|
|
|
debe55 |
#if !HAVE_OPENSSL_EC2M
|
|
|
debe55 |
// In portable build, we need to support the following functions even if they were not present
|
|
|
debe55 |
@@ -991,14 +991,14 @@ FOR_ALL_OPENSSL_FUNCTIONS
|
|
|
debe55 |
|
|
|
debe55 |
#else // FEATURE_DISTRO_AGNOSTIC_SSL
|
|
|
debe55 |
|
|
|
debe55 |
-#define API_EXISTS(fn) true
|
|
|
debe55 |
+#define API_EXISTS(fn) 1
|
|
|
debe55 |
|
|
|
debe55 |
#if OPENSSL_VERSION_NUMBER >= OPENSSL_VERSION_3_0_RTM
|
|
|
debe55 |
-#define NEED_OPENSSL_3_0 true
|
|
|
debe55 |
+#define NEED_OPENSSL_3_0 1
|
|
|
debe55 |
#elif OPENSSL_VERSION_NUMBER >= OPENSSL_VERSION_1_1_0_RTM
|
|
|
debe55 |
-#define NEED_OPENSSL_1_1 true
|
|
|
debe55 |
+#define NEED_OPENSSL_1_1 1
|
|
|
debe55 |
#else
|
|
|
debe55 |
-#define NEED_OPENSSL_1_0 true
|
|
|
debe55 |
+#define NEED_OPENSSL_1_0 1
|
|
|
debe55 |
#endif
|
|
|
debe55 |
|
|
|
debe55 |
#if OPENSSL_VERSION_NUMBER < OPENSSL_VERSION_3_0_RTM
|
|
|
debe55 |
--
|
|
|
debe55 |
2.31.1
|
|
|
debe55 |
|