mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
ircd::openssl: Add conditional LibreSSL versions instance.
This commit is contained in:
parent
c2e2e998c8
commit
6bb746a9a0
2 changed files with 9 additions and 0 deletions
|
@ -141,6 +141,7 @@ namespace ircd::openssl
|
|||
|
||||
// Header version; library version
|
||||
extern const info::versions version_api, version_abi;
|
||||
extern const info::versions libressl_version_api;
|
||||
}
|
||||
|
||||
/// OpenSSL BIO convenience utils and wraps; also secure file IO closures
|
||||
|
|
|
@ -60,6 +60,14 @@ ircd::openssl::version_abi
|
|||
"OpenSSL", info::versions::ABI, long(::SSLeay()), {0}, ::SSLeay_version(SSLEAY_VERSION)
|
||||
};
|
||||
|
||||
#ifdef LIBRESSL_VERSION_NUMBER
|
||||
decltype(ircd::openssl::libressl_version_api)
|
||||
ircd::openssl::libressl_version_api
|
||||
{
|
||||
"LibreSSL", info::versions::API, LIBRESSL_VERSION_NUMBER, {0}, LIBRESSL_VERSION_TEXT
|
||||
};
|
||||
#endif LIBRESSL_VERSION_NUMBER
|
||||
|
||||
//
|
||||
// SNI
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue