Skip to content

Commit 9627a34

Browse files
authored
add in check for libress (#361)
1 parent 0bee678 commit 9627a34

File tree

1 file changed

+2
-2
lines changed
  • src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters

1 file changed

+2
-2
lines changed

src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/x509_openssl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ int x509_openssl_add_certificates(SSL_CTX* ssl_ctx, const char* certificates)
345345
else
346346
{
347347
/*Codes_SRS_X509_OPENSSL_02_012: [ x509_openssl_add_certificates shall get the memory BIO method function by calling BIO_s_mem. ]*/
348-
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L)
348+
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
349349
const BIO_METHOD* bio_method;
350350
#else
351351
BIO_METHOD* bio_method;
@@ -423,4 +423,4 @@ int x509_openssl_add_certificates(SSL_CTX* ssl_ctx, const char* certificates)
423423
}
424424
}
425425
return result;
426-
}
426+
}

0 commit comments

Comments
 (0)