diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2017-01-24 12:08:36 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2017-01-24 12:08:36 +0000 |
commit | 2cc4774632b785b4fed0e06b88fd6a723e1e5ce9 (patch) | |
tree | 25890b7e4671a05f42f06432a96e5cff621c3550 /usr.sbin | |
parent | d77840a5e95c604ceb14fb96d9723a1e36b46f96 (diff) |
Say no to two line error messages on failure
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ocspcheck/ocspcheck.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/ocspcheck/ocspcheck.c b/usr.sbin/ocspcheck/ocspcheck.c index 847477c2d1d..8ce1008dbef 100644 --- a/usr.sbin/ocspcheck/ocspcheck.c +++ b/usr.sbin/ocspcheck/ocspcheck.c @@ -557,10 +557,9 @@ main (int argc, char **argv) * we have been given to check. */ if ((castore = read_cacerts(cafile)) == NULL) - errx(EXIT_FAILURE, "Unable to load %s", cafile); - + exit(EXIT_FAILURE); if ((request = ocsp_request_new_from_cert(certfile, nonce)) == NULL) - errx(EXIT_FAILURE, "Unable to build OCSP request"); + exit(EXIT_FAILURE); if ((host = url2host(request->url, &port, &path)) == NULL) errx(EXIT_FAILURE, "Invalid OCSP url %s from %s", request->url, @@ -605,7 +604,7 @@ main (int argc, char **argv) OPENSSL_add_all_algorithms_noconf(); if (!validate_response(hget->bodypart, hget->bodypartsz, request, castore, host, certfile)) - errx(EXIT_FAILURE, "Can not validate %s", certfile); + exit(EXIT_FAILURE); /* * If we have been given a place to save a staple, |