From 18761ec28b58eefaebd04fbc57ca1761fa9cf2a8 Mon Sep 17 00:00:00 2001 From: Chris Mc Date: Tue, 7 Apr 2020 10:57:22 -0400 Subject: [PATCH] fixes #57 --- include/jwt-cpp/jwt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h index 4dac8f7..f0a1302 100644 --- a/include/jwt-cpp/jwt.h +++ b/include/jwt-cpp/jwt.h @@ -75,7 +75,7 @@ namespace jwt { inline std::string extract_pubkey_from_cert(const std::string& certstr, const std::string& pw = "") { // TODO: Cannot find the exact version this change happended -#if OPENSSL_VERSION_NUMBER <= 0x1000114fL +#if OPENSSL_VERSION_NUMBER <= 0x10100003L std::unique_ptr certbio(BIO_new_mem_buf(const_cast(certstr.data()), certstr.size()), BIO_free_all); #else std::unique_ptr certbio(BIO_new_mem_buf(certstr.data(), certstr.size()), BIO_free_all);