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:
parent
0ea1ba2968
commit
4e1be6d1fd
1 changed files with 6 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue