Warn when openssl version in unit test mismatches compiled version.

This commit is contained in:
Nick Mathewson 2012-11-15 11:43:20 -05:00
parent c2f30863e2
commit ac009f9245

View File

@ -158,6 +158,9 @@ init_ssl(void)
ERR_load_crypto_strings();
SSL_load_error_strings();
OpenSSL_add_all_algorithms();
if (SSLeay() != OPENSSL_VERSION_NUMBER) {
TT_DECLARE("WARN", ("Version mismatch for openssl: compiled with %lx but running with %lx", OPENSSL_VERSION_NUMBER, SSLeay()));
}
}
/* ====================