]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls-cli: --save-ocsp will work even if verification fails
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 2 Jun 2016 07:22:26 +0000 (09:22 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 2 Jun 2016 12:34:24 +0000 (14:34 +0200)
That is, allow saving the response even if the OCSP response caused
a verification error. That way the response can be examined for possible
issues.

src/cli.c

index 1e60b6c7d846c7d66a850c917343416d407aaf9e..6e87abdc991928a19bc7464239a0938547276ebe 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -1226,6 +1226,7 @@ int main(int argc, char **argv)
        if (ret < 0) {
                fprintf(stderr, "*** Handshake has failed\n");
                gnutls_perror(ret);
+               print_other_info(hd.session);
                gnutls_deinit(hd.session);
                return 1;
        } else