]> granicus.if.org Git - libevent/commitdiff
Warn when openssl version in unit test mismatches compiled version.
authorNick Mathewson <nickm@torproject.org>
Thu, 15 Nov 2012 16:43:20 +0000 (11:43 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 15 Nov 2012 16:43:45 +0000 (11:43 -0500)
test/regress_ssl.c

index 1be32036167fc3f3ece7226eb03fae33eb54a7f8..271a962f5962672a6aac1a6a26a6aa655e9d27ae 100644 (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()));
+       }
 }
 
 /* ====================