Skip to content
Snippets Groups Projects
Commit 5a54579a authored by Tobias S. Josefowitz's avatar Tobias S. Josefowitz
Browse files

Standards.X509: options can be a bool

Check if it is a mapping before accessing it as such.
parent 2bdf7af2
No related merge requests found
...@@ -1937,7 +1937,8 @@ mapping verify_certificate_chain(array(string) cert_chain, ...@@ -1937,7 +1937,8 @@ mapping verify_certificate_chain(array(string) cert_chain,
foreach(verifiers || ({}), Verifier v) { foreach(verifiers || ({}), Verifier v) {
if( v->verify(chain_cert[idx][1], if( v->verify(chain_cert[idx][1],
chain_cert[idx][0]->get_der(), chain_cert[idx][0]->get_der(),
chain_cert[idx][2]->value, options->?verifier_algorithms) chain_cert[idx][2]->value,
mappingp(options) && options->verifier_algorithms)
&& tbs) && tbs)
{ {
DBG("signature is verified..\n"); DBG("signature is verified..\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment