From 6f7a83c043a067b2c03dbdb0e9b4a49d4d339ac4 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 30 Mar 2020 21:40:57 +0200 Subject: Make fetchmail -V print SSL/TLS library warnings... if compiled against LibreSSL, if compiled against a library that does not support TLS 1.3, if compiled without SSL/TLS support. --- fetchmail.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index c290b7a7..fb1e6015 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -303,6 +303,16 @@ int main(int argc, char **argv) ".\n"; printf(GT_("This is fetchmail release %s"), VERSION); fputs(features, stdout); +#ifdef SSL_ENABLE +#if !HAVE_DECL_TLS1_3_VERSION || defined(OPENSSL_NO_TLS1_3) + printf(GT_("WARNING: Your SSL/TLS library does not support TLS v1.3.\n")); +#endif +#ifdef LIBRESSL_VERSION_NUMBER + printf(GT_("WARNING: Compiled against LibreSSL, which is not a supported configuration.\n")); +#endif +#else + printf(GT_("WARNING: Compiled without SSL/TLS.\n")); +#endif puts(""); printcopyright(stdout); puts(""); -- cgit v1.2.3