From ac009f92452c7d6e715e1f893f6824fc8665c7c4 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 15 Nov 2012 11:43:20 -0500 Subject: [PATCH] Warn when openssl version in unit test mismatches compiled version. --- test/regress_ssl.c | 3 +++ 1 file changed, 3 insertions(+) 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())); + } } /* ==================== -- 2.50.1