projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix OCSP_basic_verify() cert chain construction in case bs->certs is NULL
[openssl.git]
/
crypto
/
ocsp
/
ocsp_vfy.c
diff --git
a/crypto/ocsp/ocsp_vfy.c
b/crypto/ocsp/ocsp_vfy.c
index e2cfa6dda5b0500cf62cb300eca6c375f64948b7..809f7f41e13bbdd0f7de776fcaa7c2849167984d 100644
(file)
--- a/
crypto/ocsp/ocsp_vfy.c
+++ b/
crypto/ocsp/ocsp_vfy.c
@@
-73,6
+73,8
@@
int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
goto f_err;
}
}
+ } else if (certs != NULL) {
+ untrusted = certs;
} else {
untrusted = bs->certs;
}