From bdec618caad7cbb952e649da66faac04af8a2f76 Mon Sep 17 00:00:00 2001 From: Jonny Weir Date: Mon, 16 Nov 2020 16:53:30 +0000 Subject: [PATCH] Check LIBRESSL_VERSION_NUMBER only if defined. --- include/jwt/algorithm.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/jwt/algorithm.hpp b/include/jwt/algorithm.hpp index 77632fb..0308018 100644 --- a/include/jwt/algorithm.hpp +++ b/include/jwt/algorithm.hpp @@ -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