summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-03-24 07:12:34 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-03-24 07:12:34 +0100
commitd46b52cacb06c157c1ba09a7a33b0b74d51054ae (patch)
treedccaa03f8fa01c9536054df79453508d4a66b001 /src
parente192b14200b26be6fdb727586c47a81c0c2e2ec5 (diff)
downloadgnutls-d46b52cacb06c157c1ba09a7a33b0b74d51054ae.tar.gz
ocsptool: don't exit with error code on verification failures when --ignore-errors is given
Diffstat (limited to 'src')
-rw-r--r--src/ocsptool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ocsptool.c b/src/ocsptool.c
index d73ad66562..b800c5e948 100644
--- a/src/ocsptool.c
+++ b/src/ocsptool.c
@@ -460,7 +460,7 @@ static void verify_response(gnutls_datum_t *nonce)
signer = load_signer();
v = _verify_response(&dat, nonce, signer);
- if (v)
+ if (v && !HAVE_OPT(IGNORE_ERRORS))
exit(1);
}
@@ -514,7 +514,7 @@ static void ask_server(const char *url)
fwrite(resp_data.data, 1, resp_data.size, outfile);
}
- if (v)
+ if (v && !HAVE_OPT(IGNORE_ERRORS))
exit(1);
}