From: Nikos Mavrogiannopoulos Date: Sat, 28 Jan 2012 11:40:18 +0000 (+0100) Subject: allow the usage of --load-trust with --ask X-Git-Tag: gnutls_3_0_13~172 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb3ba487cd5881107f8c63dd3ae4356ccb847dff;p=thirdparty%2Fgnutls.git allow the usage of --load-trust with --ask --- diff --git a/src/ocsptool.c b/src/ocsptool.c index 9810f0db43..0e48e44ca0 100644 --- a/src/ocsptool.c +++ b/src/ocsptool.c @@ -365,6 +365,7 @@ _verify_response (gnutls_datum_t *data) error (EXIT_FAILURE, 0, "error parsing CAs: %s", gnutls_strerror (ret)); +#if 0 if (HAVE_OPT(VERBOSE)) { unsigned int i; @@ -382,6 +383,7 @@ _verify_response (gnutls_datum_t *data) gnutls_free (out.data); } } +#endif ret = gnutls_x509_trust_list_add_cas (list, x509_ca_list, x509_ncas, 0); if (ret < 0) @@ -598,7 +600,7 @@ socket_st hd; _response_info (&resp_data); - if (HAVE_OPT(LOAD_SIGNER)) + if (HAVE_OPT(LOAD_SIGNER) || HAVE_OPT(LOAD_TRUST)) { fprintf(outfile, "\n"); v = _verify_response(&resp_data);