From: Nick Mathewson Date: Thu, 15 Nov 2012 16:43:20 +0000 (-0500) Subject: Warn when openssl version in unit test mismatches compiled version. X-Git-Tag: release-2.0.21-stable~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac009f92452c7d6e715e1f893f6824fc8665c7c4;p=libevent Warn when openssl version in unit test mismatches compiled version. --- diff --git a/test/regress_ssl.c b/test/regress_ssl.c index 1be32036..271a962f 100644 --- a/test/regress_ssl.c +++ b/test/regress_ssl.c @@ -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())); + } } /* ====================