0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00
This commit is contained in:
Jason Volk 2018-10-30 13:38:14 -07:00
commit 22d06a4670

View file

@ -1130,7 +1130,13 @@ ircd::openssl::bio::read(const const_buffer &buf,
{
const custom_ptr<BIO> bp
{
// OpenSSL branch
#if !defined(LIBRESSL_VERSION_NUMBER)
BIO_new_mem_buf(data(buf), size(buf)), BIO_free
// LibreSSL branch
#else
BIO_new_mem_buf((void *)data(buf), size(buf)), BIO_free
#endif
};
closure(bp.get());