Merge pull request #73 from j0nnyw/libressl-check-if-defined

Check LIBRESSL_VERSION_NUMBER only if defined.
This commit is contained in:
Arun Muralidharan 2020-12-14 13:15:41 +05:30 committed by GitHub
commit c7faccdebb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -518,7 +518,7 @@ private:
*/
static std::string public_key_ser(EVP_PKEY* pkey, jwt::string_view sign, std::error_code& ec);
#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER < 0x20700000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
//ATTN: Below 2 functions
//are Taken from https://github.com/nginnever/zogminer/issues/39