From bba21c0c87a7be38fd4d23b3526e94e89dfeeb45 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 29 May 2017 16:38:52 +1200 Subject: [PATCH] Add OpenSSL library details to -v output This is partially to meet the OpenSSL copyright requirement that binaries mention when they are using the library, and partially for admin to see which library their Squid is using when multiple are present in the system. --- src/main.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cc b/src/main.cc index e4d879c207..49e81089d0 100644 --- a/src/main.cc +++ b/src/main.cc @@ -563,6 +563,10 @@ mainParseOptions(int argc, char *argv[]) printf("Service Name: " SQUIDSBUFPH "\n", SQUIDSBUFPRINT(service_name)); if (strlen(SQUID_BUILD_INFO)) printf("%s\n",SQUID_BUILD_INFO); +#if USE_OPENSSL + printf("\nThis binary uses %s. ", SSLeay_version(SSLEAY_VERSION)); + printf("For legal restrictions on distribution see https://www.openssl.org/source/license.html\n\n"); +#endif printf( "configure options: %s\n", SQUID_CONFIGURE_OPTIONS); #if USE_WIN32_SERVICE -- 2.47.2