mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-29 10:59:35 -05:00
print cert error on failure
git-svn-id: file:///svn/unbound/trunk@2267 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
cbe4354928
commit
45ef5b2ad6
1 changed files with 5 additions and 0 deletions
|
|
@ -1476,6 +1476,7 @@ verify_p7sig(BIO* data, BIO* p7s, STACK_OF(X509)* trust, time_t now)
|
|||
|
||||
/* convert trust to trusted certificate store */
|
||||
/* set current time */
|
||||
if(verb >= 2) printf("time set to %u %s", (unsigned)now, ctime(&now));
|
||||
X509_VERIFY_PARAM_set_time(param, now);
|
||||
/* do the selfcheck on the root certificate; it checks that the
|
||||
* input is valid */
|
||||
|
|
@ -1496,6 +1497,10 @@ verify_p7sig(BIO* data, BIO* p7s, STACK_OF(X509)* trust, time_t now)
|
|||
if(PKCS7_verify(p7, NULL, store, data, NULL, 0) == 1) {
|
||||
secure = 1;
|
||||
if(verb) printf("the PKCS7 signature verified\n");
|
||||
} else {
|
||||
if(verb) {
|
||||
ERR_print_errors_fp(stdout);
|
||||
}
|
||||
}
|
||||
|
||||
X509_STORE_free(store);
|
||||
|
|
|
|||
Loading…
Reference in a new issue