VirtualBox

Changeset 86551 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Oct 13, 2020 12:09:10 AM (4 years ago)
Author:
vboxsync
Message:

SUPHardNt,IPRT: If there are nested signatures (i.e. more than one signature), don't get grumpy if there are time or cert path issues with some of them, as long as one or more checks out perfectly. (Mind, all the signature data must check out, it's just the cert path or signing time we're relaxing here.) [build fix] ticketref:19743 bugref:3103

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp

    r86550 r86551  
    30063006             * Verify other signatures with the same digest type.
    30073007             */
    3008             RTLDRPEHASHRESUNION const * const pHashRes = &pInfo->HashRes;
     3008            RTLDRPEHASHRESUNION const * const pHashRes      = &pInfo->HashRes;
     3009            RTDIGESTTYPE const                enmDigestType = pInfo->enmDigest;
    30093010            for (uint32_t i = 0; i < pSignature->cNested; i++)
    30103011            {
    30113012                pInfo = &pSignature->paNested[i]; /* Note! pInfo changes! */
    30123013                if (   !pInfo->fValidatedImageHash
    3013                     && pInfo->enmDigest == pInfo->enmDigest
     3014                    && pInfo->enmDigest == enmDigestType
    30143015                    /* paranoia from the top of this function: */
    30153016                    && pInfo->pIndData
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