From: Aaron M. Ucko Date: Thu, 2 Dec 2021 03:08:16 +0000 (-0500) Subject: suppress gnu TLS and mbed TLS version checks X-Git-Tag: archive/raspbian/2.16.0+ds-7+rpi1~1^2^2^2^2^2^2^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9414f6b2d9ef88721a68ba4a396125a66976aad8;p=ncbi-blast%2B.git suppress gnu TLS and mbed TLS version checks Prevent bailing when the exact compile-time and runtime GNU TLS versions differ; trust dpkg to disallow combinations that are actually incompatible. Likewise for mbed TLS. Gbp-Pq: Name suppress_tls_version_checks --- diff --git a/c++/src/connect/ncbi_gnutls.c b/c++/src/connect/ncbi_gnutls.c index 89709618..74d770c2 100644 --- a/c++/src/connect/ncbi_gnutls.c +++ b/c++/src/connect/ncbi_gnutls.c @@ -692,6 +692,7 @@ static EIO_Status s_GnuTlsInit(FSSLPull pull, FSSLPush push) assert(!s_GnuTlsCredAnon); +#if 0 version = gnutls_check_version(0); if (strcasecmp(GNUTLS_VERSION, version) != 0) { CORE_LOGF(eLOG_Critical, @@ -699,6 +700,7 @@ static EIO_Status s_GnuTlsInit(FSSLPull pull, FSSLPush push) GNUTLS_VERSION, version)); assert(0); } +#endif if (!pull || !push) return eIO_InvalidArg; diff --git a/c++/src/connect/ncbi_mbedtls.c b/c++/src/connect/ncbi_mbedtls.c index d8da0bb4..67043995 100644 --- a/c++/src/connect/ncbi_mbedtls.c +++ b/c++/src/connect/ncbi_mbedtls.c @@ -665,12 +665,14 @@ static EIO_Status s_MbedTlsInit(FSSLPull pull, FSSLPush push) char buf[32]; mbedtls_version_get_string(version); +#if 0 if (strcasecmp(MBEDTLS_VERSION_STRING, version) != 0) { CORE_LOGF(eLOG_Critical, ("%s version mismatch: %s headers vs. %s runtime", kMbedTls, MBEDTLS_VERSION_STRING, version)); assert(0); } +#endif if (!pull || !push) return eIO_InvalidArg;