From 2f44ef51f48d39eb42d475cf753b93838844de15 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 30 Jan 2021 15:10:52 +0100 Subject: --version: print OpenSSL versions build/run-time and directories --- fetchmail.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'fetchmail.c') 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 /* for OPENSSL_NO_SSL2 and ..._SSL3 checks */ +#include /* 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 -- cgit v1.2.3