]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add OpenSSL library details to -v output
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 29 May 2017 03:19:47 +0000 (15:19 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 29 May 2017 03:19:47 +0000 (15:19 +1200)
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

index 1a50b0acedf8f3b2f8ea2d7fcce4a6cbfa864c7c..27f83d8f5ba6c53a86738291b9fe05b881de1515 100644 (file)
@@ -663,6 +663,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