summaryrefslogtreecommitdiff
path: root/apps/verify.c
diff options
context:
space:
mode:
authorViktor Dukhovni <openssl-users@dukhovni.org>2016-01-16 00:08:38 -0500
committerViktor Dukhovni <openssl-users@dukhovni.org>2016-01-20 19:04:26 -0500
commit0996dc5440cc233f029129182bbb6e3d4613045a (patch)
tree7b54822da3319212fc52d6b9e1d463c770fa0495 /apps/verify.c
parent6e8beabcd4b9450a3a7358bf5668b2bc70580517 (diff)
downloadopenssl-new-0996dc5440cc233f029129182bbb6e3d4613045a.tar.gz
Refactor apps load_certs/load_crls to work incrementally
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/verify.c')
-rw-r--r--apps/verify.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/apps/verify.c b/apps/verify.c
index 16b25c9ef0..183579c06d 100644
--- a/apps/verify.c
+++ b/apps/verify.c
@@ -208,22 +208,19 @@ int verify_main(int argc, char **argv)
ERR_clear_error();
if (untfile) {
- untrusted = load_certs(untfile, FORMAT_PEM,
- NULL, e, "untrusted certificates");
- if (!untrusted)
+ if (!load_certs(untfile, &untrusted, FORMAT_PEM, NULL, e,
+ "untrusted certificates"))
goto end;
}
if (trustfile) {
- trusted = load_certs(trustfile, FORMAT_PEM,
- NULL, e, "trusted certificates");
- if (!trusted)
+ if (!load_certs(trustfile, &trusted, FORMAT_PEM, NULL, e,
+ "trusted certificates"))
goto end;
}
if (crlfile) {
- crls = load_crls(crlfile, FORMAT_PEM, NULL, e, "other CRLs");
- if (!crls)
+ if (!load_crls(crlfile, &crls, FORMAT_PEM, NULL, e, "other CRLs"))
goto end;
}