mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
Merge branch 'libressl-2' of https://github.com/DanySpin97/charybdis
This commit is contained in:
commit
22d06a4670
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