diff options
author | teor <teor@torproject.org> | 2019-08-12 13:10:05 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-08-12 13:10:05 +1000 |
commit | 20943d00f10af11133d9ece90f1cbed658a21aed (patch) | |
tree | d104f9ff5565f7340169b1872b31c3723bf21379 /src/lib | |
parent | a1d8409ee28b609a7d6a1a138a53628cb214a113 (diff) | |
parent | d253b31cec04c35c551618b9b1ffa50ae4426303 (diff) | |
download | tor-20943d00f10af11133d9ece90f1cbed658a21aed.tar.gz tor-20943d00f10af11133d9ece90f1cbed658a21aed.zip |
Merge branch 'maint-0.3.5' into maint-0.4.0
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/crypt_ops/crypto_openssl_mgt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/crypt_ops/crypto_openssl_mgt.c b/src/lib/crypt_ops/crypto_openssl_mgt.c index 60e4ea795e..c97815f9a4 100644 --- a/src/lib/crypt_ops/crypto_openssl_mgt.c +++ b/src/lib/crypt_ops/crypto_openssl_mgt.c @@ -213,6 +213,14 @@ crypto_openssl_early_init(void) !strcmp(version_str, OPENSSL_VERSION_TEXT)) { log_info(LD_CRYPTO, "OpenSSL version matches version from headers " "(%lx: %s).", version_num, version_str); + } else if ((version_num & 0xffff0000) == + (OPENSSL_VERSION_NUMBER & 0xffff0000)) { + log_notice(LD_CRYPTO, + "We compiled with OpenSSL %lx: %s and we " + "are running with OpenSSL %lx: %s. " + "These two versions should be binary compatible.", + (unsigned long)OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT, + version_num, version_str); } else { log_warn(LD_CRYPTO, "OpenSSL version from headers does not match the " "version we're running with. If you get weird crashes, that " |