This commit is contained in:
eidheim 2017-12-11 18:41:30 +01:00
commit 1552cdc11a

View file

@ -68,8 +68,8 @@ namespace SimpleWeb {
b64 = BIO_new(BIO_f_base64()); b64 = BIO_new(BIO_f_base64());
BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL); BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
// TODO: Cannot find the exact version this change happended. Remove in 2020 // TODO: Remove in 2020
#if OPENSSL_VERSION_NUMBER <= 0x1000114fL #if OPENSSL_VERSION_NUMBER <= 0x1000115fL
bio = BIO_new_mem_buf((char *)&base64[0], static_cast<int>(base64.size())); bio = BIO_new_mem_buf((char *)&base64[0], static_cast<int>(base64.size()));
#else #else
bio = BIO_new_mem_buf(&base64[0], static_cast<int>(base64.size())); bio = BIO_new_mem_buf(&base64[0], static_cast<int>(base64.size()));