0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-10 22:18:54 +02:00

ircd::openssl: Add conditional LibreSSL versions instance.

This commit is contained in:
Jason Volk 2019-06-04 14:01:33 -07:00
parent c2e2e998c8
commit 6bb746a9a0
2 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -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
//