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

ircd::openssl: Return version strings for header and linked library.

This commit is contained in:
Jason Volk 2019-02-18 14:47:27 -08:00
parent 1a2bfc1535
commit b9822a8c6c
3 changed files with 8 additions and 5 deletions

View file

@ -51,8 +51,8 @@ namespace ircd::openssl
using EC_KEY = ::ec_key_st;
using DH = ::dh_st;
// Library general
string_view version();
// Header version; library version
std::pair<string_view, string_view> version();
// Observers
string_view error_string(const mutable_buffer &buf, const ulong &);

View file

@ -44,7 +44,7 @@ ircd::info::dump()
db::version_str,
js::version(js::ver::IMPLEMENTATION),
nacl::version(),
openssl::version(),
openssl::version().second,
magic::version()
};

View file

@ -1070,10 +1070,13 @@ ircd::openssl::error_string(const mutable_buffer &buf,
return { data(buf), strnlen(data(buf), size(buf)) };
}
ircd::string_view
std::pair<ircd::string_view, ircd::string_view>
ircd::openssl::version()
{
return SSLeay_version(SSLEAY_VERSION);
return
{
OPENSSL_VERSION_TEXT, SSLeay_version(SSLEAY_VERSION)
};
}
//