Here's a small change to print out the OpenSSL version with the -V &
--help parameters.


2003-09-16  Christopher G. Lewis <[EMAIL PROTECTED]>
        * main.c (main): Trivial change to show OpenSSL libray version
in
--help and -V


--- wget20030915s/wget.20030915/src/main.c      2003-09-16
12:32:42.000000000 -0500
+++ wget20030915s_original/wget.20030915/src/main.c     2003-09-15
00:04:14.000000000 -0500
@@ -131,14 +131,8 @@
 static void
 print_help (void)
 {
-#ifndef HAVE_SSL
   printf (_("GNU Wget %s, a non-interactive network retriever.\n"),
     version_string);
-#else
-  printf (_("GNU Wget %s %s, a non-interactive network retriever.\n"),
-    version_string, SSLeay_version(SSLEAY_VERSION));
-#endif
-
   print_usage ();
   /* Had to split this in parts, so the #@@#%# Ultrix compiler and cpp
      don't bitch.  Also, it makes translation much easier.  */
@@ -510,11 +504,8 @@
     setval ("recursive", "on");
     break;
   case 'V':
-    printf ("GNU Wget %s\n", version_string);
-#ifdef HAVE_SSL
-    printf("  %s\n",SSLeay_version(SSLEAY_VERSION));
-#endif
-    printf ("\n%s", _("\
+         printf ("GNU Wget %s\n\n", version_string);
+         printf ("%s", _("\
 Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001 Free Software
Foundation,
Inc.\n"));
     printf ("%s", _("\
 This program is distributed in the hope that it will be useful,\n\

Reply via email to