mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
Merge branch 'master' into cmake-picojson-fix
This commit is contained in:
@@ -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<BIO, decltype(&BIO_free_all)> certbio(BIO_new_mem_buf(const_cast<char*>(certstr.data()), certstr.size()), BIO_free_all);
|
||||
#else
|
||||
std::unique_ptr<BIO, decltype(&BIO_free_all)> certbio(BIO_new_mem_buf(certstr.data(), certstr.size()), BIO_free_all);
|
||||
|
||||
Reference in New Issue
Block a user