INNER CODE UNIT · C++
certs
trailofbits/uthenticode · src/uthenticode.cpp:207
certs = p7_->d.sign->cert;
break;
}
/* NOTE(ww): I'm pretty sure Authenticode signatures are always SignedData and never
* SignedAndEnvelopedData, but it doesn't hurt us to handle the latter as well.
*/
case NID_pkcs7_signedAndEnveloped: {
certs = p7_->d.signed_and_enveloped->cert;
break;
}
}
if (certs == nullptr) {
return false;
}
auto *signers_stack_ptr = PKCS7_get0_signers(p7_, nullptr, 0);
if (signers_stack_ptr == nullptr) {