From: Simon Josefsson Date: Tue, 13 Feb 2007 20:35:46 +0000 (+0000) Subject: Use version-etc. X-Git-Tag: gnutls_1_7_7~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98a24bec892c7fade065639d37def2cb32d43193;p=thirdparty%2Fgnutls.git Use version-etc. --- diff --git a/src/certtool.c b/src/certtool.c index df9787dd0a..62a4e209ad 100644 --- a/src/certtool.c +++ b/src/certtool.c @@ -39,6 +39,7 @@ #include #include #include +#include static void print_crl_info (gnutls_x509_crl crl, FILE *out); int generate_prime (int bits, int how); @@ -2611,27 +2612,7 @@ smime_to_pkcs7 (void) void certtool_version (void) { - const char *v = gnutls_check_version (NULL); - - printf ("certtool (GnuTLS) %s\n", LIBGNUTLS_VERSION); - if (strcmp (v, LIBGNUTLS_VERSION) != 0) - printf ("libgnutls %s\n", v); -} - -void -print_license (void) -{ - fputs ("\nCopyright (C) 2004 Free Software Foundation\n" - "This program is free software; you can redistribute it and/or modify \n" - "it under the terms of the GNU General Public License as published by \n" - "the Free Software Foundation; either version 2 of the License, or \n" - "(at your option) any later version. \n" "\n" - "This program is distributed in the hope that it will be useful, \n" - "but WITHOUT ANY WARRANTY; without even the implied warranty of \n" - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the \n" - "GNU General Public License for more details. \n" "\n" - "You should have received a copy of the GNU General Public License \n" - "along with this program; if not, write to the Free Software \n" - "Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n\n", - stdout); + version_etc (stdout, program_name, PACKAGE_STRING, + gnutls_check_version (NULL), + "Nikos Mavroyanopoulos", "Simon Josefsson", 0); }