aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2021-01-30 15:10:52 +0100
committerMatthias Andree <matthias.andree@gmx.de>2021-01-30 15:56:28 +0100
commit2f44ef51f48d39eb42d475cf753b93838844de15 (patch)
treef71be2fd1e70eddb95fef58c54f09c3c23d2f1ff /fetchmail.c
parentf2626bc6f79d7a48da2e281ba3736504ed078e04 (diff)
downloadfetchmail-2f44ef51f48d39eb42d475cf753b93838844de15.tar.gz
fetchmail-2f44ef51f48d39eb42d475cf753b93838844de15.tar.bz2
fetchmail-2f44ef51f48d39eb42d475cf753b93838844de15.zip
--version: print OpenSSL versions build/run-time and directories
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index e6ceb71a..9644aea0 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -56,6 +56,8 @@
#ifdef SSL_ENABLE
#include <openssl/ssl.h> /* for OPENSSL_NO_SSL2 and ..._SSL3 checks */
+#include <openssl/opensslv.h> /* for version queries */
+#include "tls-aux.h" /* compatibility and helper functions */
#endif
/* prototypes for internal functions */
@@ -304,6 +306,13 @@ int main(int argc, char **argv)
printf(GT_("This is fetchmail release %s"), VERSION);
fputs(features, stdout);
#ifdef SSL_ENABLE
+ printf(GT_("Compiled with SSL library %#lx \"%s\"\n"
+ "Run-time uses SSL library %#lx \"%s\"\n"),
+ OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT,
+ OpenSSL_version_num(), OpenSSL_version(OPENSSL_VERSION));
+ printf(GT_("OpenSSL: %s\nEngines: %s\n"),
+ OpenSSL_version(OPENSSL_DIR),
+ OpenSSL_version(OPENSSL_ENGINES_DIR));
#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