diff options
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 9 |
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 |