diff options
| author | Apollon Oikonomopoulos <apoikos@debian.org> | 2018-12-03 21:21:52 +0200 |
|---|---|---|
| committer | Apollon Oikonomopoulos <apoikos@debian.org> | 2018-12-03 22:41:46 +0200 |
| commit | fe2b48560bb463d78b41b411aa6dc644ea0f4448 (patch) | |
| tree | 88168e00da66a52911b412f339590bd029d7b51b | |
| parent | 51cf78bb81f5df4d8485a5447a4fb69a92326352 (diff) | |
Fix FTBFS with OpenSSL 1.1.1
3.4.17 included backported support for counting TLS version stats,
however TLS1.3 support was not backported. Disable the parts of the
backported code that attempt to count TLS1.3 stats.
| -rw-r--r-- | debian/patches/fix-ftbfs-with-openssl-1.1.1.patch | 32 | ||||
| -rw-r--r-- | debian/patches/series | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/debian/patches/fix-ftbfs-with-openssl-1.1.1.patch b/debian/patches/fix-ftbfs-with-openssl-1.1.1.patch new file mode 100644 index 00000000000..4041a9e7836 --- /dev/null +++ b/debian/patches/fix-ftbfs-with-openssl-1.1.1.patch @@ -0,0 +1,32 @@ +From fb645a7072959db77be0aa5f792ef5a6038ffb0e Mon Sep 17 00:00:00 2001 +From: Apollon Oikonomopoulos <apoikos@debian.org> +Date: Mon, 3 Dec 2018 21:18:52 +0200 +Subject: [PATCH] Do not attempt to track TLS1.3 + +Commit 5abce331 introduced support for tracking TLS versions, however +the cherry-picked changes rely on TLS1.3 support which was not +backported from master. This causes build failures on systems with +OpenSSL 1.1.1, where TLS1_3_VERSION is defined but +mongo::TLSVersionCounts lacks the tls13 field. + +Fix this by disabling TLS1.3 tracking altogether. +--- + src/mongo/util/net/ssl_manager.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/mongo/util/net/ssl_manager.cpp b/src/mongo/util/net/ssl_manager.cpp +index dd6e73c3e0..7db9ae32ad 100644 +--- a/src/mongo/util/net/ssl_manager.cpp ++++ b/src/mongo/util/net/ssl_manager.cpp +@@ -1401,7 +1401,7 @@ void recordTLSVersion(const SSL* conn) { + case TLS1_2_VERSION: + counts.tls12.addAndFetch(1); + break; +-#ifdef TLS1_3_VERSION ++#if 0 + case TLS1_3_VERSION: + counts.tls13.addAndFetch(1); + break; +-- +2.18.0 + diff --git a/debian/patches/series b/debian/patches/series index 85239e2fc55..9ea9316dbc9 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ fix-wt-checksum-on-arm64 disable-hw-crc32-on-arm64-s390x.patch fix-ftbfs-with-gcc-7.patch asio-openssl-1.1-support.patch +fix-ftbfs-with-openssl-1.1.1.patch |
