Skip to content

Commit

Permalink
add in check for libress (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
kashifkhan committed Feb 14, 2023
1 parent 0bee678 commit 9627a34
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -423,4 +423,4 @@ int x509_openssl_add_certificates(SSL_CTX* ssl_ctx, const char* certificates)
}
}
return result;
}
}

0 comments on commit 9627a34

Please sign in to comment.