Fixes compilation issue for Debian Jessie
This commit is contained in:
parent
61847f3443
commit
702a571451
1 changed files with 5 additions and 0 deletions
|
|
@ -68,7 +68,12 @@ namespace SimpleWeb {
|
|||
|
||||
b64 = BIO_new(BIO_f_base64());
|
||||
BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
|
||||
// TODO: Cannot find the exact version this change happended
|
||||
#if OPENSSL_VERSION_NUMBER <= 0x1000114fL
|
||||
bio = BIO_new_mem_buf((char *)&base64[0], static_cast<int>(base64.size()));
|
||||
#else
|
||||
bio = BIO_new_mem_buf(&base64[0], static_cast<int>(base64.size()));
|
||||
#endif
|
||||
bio = BIO_push(b64, bio);
|
||||
|
||||
auto decoded_length = BIO_read(bio, &ascii[0], static_cast<int>(ascii.size()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue