mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::openssl: Add a linked version check.
This commit is contained in:
parent
dbbc22d98a
commit
3d7d15685e
1 changed files with 9 additions and 0 deletions
|
@ -1390,6 +1390,15 @@ const
|
|||
|
||||
ircd::openssl::init::init()
|
||||
{
|
||||
const auto v(version());
|
||||
if(v.first != v.second)
|
||||
log::warning
|
||||
{
|
||||
"Linked OpenSSL version '%s' is not the compiled OpenSSL version '%s'",
|
||||
v.first,
|
||||
v.second
|
||||
};
|
||||
|
||||
OPENSSL_init();
|
||||
ERR_load_crypto_strings();
|
||||
ERR_load_ERR_strings();
|
||||
|
|
Loading…
Reference in a new issue