diff options
author | Viktor Dukhovni <openssl-users@dukhovni.org> | 2016-01-16 00:08:38 -0500 |
---|---|---|
committer | Viktor Dukhovni <openssl-users@dukhovni.org> | 2016-01-20 19:04:26 -0500 |
commit | 0996dc5440cc233f029129182bbb6e3d4613045a (patch) | |
tree | 7b54822da3319212fc52d6b9e1d463c770fa0495 /apps/verify.c | |
parent | 6e8beabcd4b9450a3a7358bf5668b2bc70580517 (diff) |
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.c | 13 |
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; } |