aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2020-03-30 21:40:57 +0200
committerMatthias Andree <matthias.andree@gmx.de>2020-03-30 21:45:29 +0200
commit6f7a83c043a067b2c03dbdb0e9b4a49d4d339ac4 (patch)
treeaabdb1c08ba644075b1c9c399f5368c16f2b59ca /fetchmail.c
parent0e590bf4f02938c6d1a36f392d9689081e04f60d (diff)
downloadfetchmail-6f7a83c043a067b2c03dbdb0e9b4a49d4d339ac4.tar.gz
fetchmail-6f7a83c043a067b2c03dbdb0e9b4a49d4d339ac4.tar.bz2
fetchmail-6f7a83c043a067b2c03dbdb0e9b4a49d4d339ac4.zip
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.
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c10
1 files changed, 10 insertions, 0 deletions
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("");