]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Do not warn about compatible OpenSSL upgrades
authorBernhard M. Wiedemann <bwiedemann@suse.de>
Mon, 15 Apr 2019 11:57:24 +0000 (13:57 +0200)
committerBernhard M. Wiedemann <bwiedemann@suse.de>
Tue, 16 Apr 2019 23:55:04 +0000 (01:55 +0200)
When releasing OpenSSL patch-level maintenance updates,
we do not want to rebuild binaries using it.
And since they guarantee ABI stability, we do not have to.

Without this patch, warning messages were produced
that confused users:
https://bugzilla.opensuse.org/show_bug.cgi?id=1129411

Fixes bug 30190; bugfix on 0.2.4.2-alpha commit 7607ad2bec

Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
changes/bug30190 [new file with mode: 0644]
src/lib/crypt_ops/crypto_openssl_mgt.c

diff --git a/changes/bug30190 b/changes/bug30190
new file mode 100644 (file)
index 0000000..e2352c3
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (lib):
+    do not log a warning for OpenSSL versions that should be compatible
+    Fixes bug 30190; bugfix on 0.2.4.2-alpha
index 60e4ea795ea8df44bc27546d1c137da05d3529be..c97815f9a4e7590debd13542ac22f92290856784 100644 (file)
@@ -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 "