VirtualBox

Changeset 84331 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
May 18, 2020 1:38:38 PM (5 years ago)
Author:
vboxsync
Message:

IPRT: RISKY: rtCrPkcs7VerifySignerInfo should pass trusted certificates to the path machinery too, they could be expired and otherwise unsuitable. bugref:9699

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/pkcs7-verify.cpp

    r84330 r84331  
    440440     */
    441441    int rc = VINF_SUCCESS;
    442     if (   (   hSignerCertSrc == NIL_RTCRSTORE
    443             || hSignerCertSrc != hTrustedCerts ) /** @todo 'hSignerCertSrc != hTrustedCerts' ain't making sense wrt pValidationTime */
    444         && !(fFlags & RTCRPKCS7VERIFY_SD_F_TRUST_ALL_CERTS) )
     442    if (   /*(   hSignerCertSrc == NIL_RTCRSTORE
     443            || hSignerCertSrc != hTrustedCerts )
     444        &&*/ /** @todo 'hSignerCertSrc != hTrustedCerts' ain't making sense wrt pValidationTime */
     445        !(fFlags & RTCRPKCS7VERIFY_SD_F_TRUST_ALL_CERTS) )
    445446    {
    446447        RTCRX509CERTPATHS hCertPaths;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette