Add #define alias for local_X509_STORE_CTX_get0_store for RHEL6 build
authorJeremy Barton <jbarton@microsoft.com>
Sat, 23 Feb 2019 02:37:22 +0000 (18:37 -0800)
committerGitHub <noreply@github.com>
Sat, 23 Feb 2019 02:37:22 +0000 (18:37 -0800)
Commit migrated from https://github.com/dotnet/corefx/commit/eaafb6fd980f161c94c16b7036a73ed3df5871ae

src/libraries/Native/Unix/System.Security.Cryptography.Native/opensslshim.h

index 62a3397..4ff8356 100644 (file)
@@ -1007,6 +1007,12 @@ FOR_ALL_OPENSSL_FUNCTIONS
 #define X509_get_version local_X509_get_version
 #define X509_up_ref local_X509_up_ref
 
+#if OPENSSL_VERSION_NUMBER < OPENSSL_VERSION_1_0_2_RTM
+
+#define X509_STORE_CTX_get0_store local_X509_STORE_CTX_get0_store
+
+#endif
+
 // Restore the old names for RENAMED_FUNCTION functions.
 #define EVP_MD_CTX_free EVP_MD_CTX_destroy
 #define EVP_MD_CTX_new EVP_MD_CTX_create