0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

Drop const modifier for libressl

This commit is contained in:
Danilo Spinella 2018-10-29 15:37:51 +00:00
parent 0ea1ba2968
commit 4e1be6d1fd

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());