From 9627a34f89a1ee7c9a32cb907fe2b415f9dfef4c Mon Sep 17 00:00:00 2001 From: Kashif Khan <361477+kashifkhan@users.noreply.github.com> Date: Tue, 14 Feb 2023 08:30:18 -0600 Subject: [PATCH] add in check for libress (#361) --- .../deps/azure-c-shared-utility/adapters/x509_openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/x509_openssl.c b/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/x509_openssl.c index 12107ff8..cee380ad 100644 --- a/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/x509_openssl.c +++ b/src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/x509_openssl.c @@ -345,7 +345,7 @@ int x509_openssl_add_certificates(SSL_CTX* ssl_ctx, const char* certificates) else { /*Codes_SRS_X509_OPENSSL_02_012: [ x509_openssl_add_certificates shall get the memory BIO method function by calling BIO_s_mem. ]*/ -#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L) +#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) const BIO_METHOD* bio_method; #else BIO_METHOD* bio_method; @@ -423,4 +423,4 @@ int x509_openssl_add_certificates(SSL_CTX* ssl_ctx, const char* certificates) } } return result; -} +} \ No newline at end of file