(verify): Friendlier error message.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20916 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-06-05 03:59:36 +00:00
parent 8a865fee2e
commit a5c1aa04ce

View File

@@ -470,7 +470,6 @@ print_certificate(hx509_context hxcontext, hx509_cert cert, int verbose)
hx509_validate_cert(hxcontext, vctx, cert); hx509_validate_cert(hxcontext, vctx, cert);
hx509_validate_ctx_free(vctx); hx509_validate_ctx_free(vctx);
} }
} }
@@ -663,14 +662,14 @@ pcert_verify(struct verify_options *opt, int argc, char **argv)
ret = hx509_certs_append(context, chain, NULL, s); ret = hx509_certs_append(context, chain, NULL, s);
if (ret) if (ret)
errx(1, "hx509_certs_append: chain: %s: %d", s, ret); hx509_err(context, 1, ret, "hx509_certs_append: chain: %s: %d", s, ret);
} else if (strncmp(s, "anchor:", 7) == 0) { } else if (strncmp(s, "anchor:", 7) == 0) {
s += 7; s += 7;
ret = hx509_certs_append(context, anchors, NULL, s); ret = hx509_certs_append(context, anchors, NULL, s);
if (ret) if (ret)
errx(1, "hx509_certs_append: anchor: %s: %d", s, ret); hx509_err(context, 1, ret, "hx509_certs_append: anchor: %s: %d", s, ret);
} else if (strncmp(s, "cert:", 5) == 0) { } else if (strncmp(s, "cert:", 5) == 0) {
s += 5; s += 5;