From: Simon Josefsson Date: Thu, 27 Oct 2005 15:31:18 +0000 (+0000) Subject: Print whether verification failed due to an insecure algorithm. X-Git-Tag: gnutls_1_2_9~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bc2dc6dca2b830cf3e5c0c9f9eee5197f68c235;p=thirdparty%2Fgnutls.git Print whether verification failed due to an insecure algorithm. --- diff --git a/src/certtool.c b/src/certtool.c index 4cb7f60a59..181eda49dd 100644 --- a/src/certtool.c +++ b/src/certtool.c @@ -2240,6 +2240,13 @@ static void print_verification_res(gnutls_x509_crt crt, comma = 1; } + if (output & GNUTLS_CERT_INSECURE_ALGORITHM) { + if (comma) + fprintf(outfile, ", "); + fprintf(outfile, "Insecure algorithm"); + comma = 1; + } + /* Check expiration dates. */ @@ -2343,6 +2350,13 @@ void verify_crl(void) comma = 1; } + if (output & GNUTLS_CERT_INSECURE_ALGORITHM) { + if (comma) + fprintf(outfile, ", "); + fprintf(outfile, "Insecure algorithm"); + comma = 1; + } + /* Check expiration dates. */