VirtualBox

Changeset 51812 in vbox for trunk/src


Ignore:
Timestamp:
Jul 2, 2014 2:13:16 PM (11 years ago)
Author:
vboxsync
Message:

Fixed a pCert use that I'd missed (pCert / pTaInfo).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyImage-win.cpp

    r51770 r51812  
    711711                    while ((pCertCtx = RTCrStoreCertSearchNext(g_hNtKernelRootStore, &Search)) != NULL)
    712712                    {
    713                         if (RTCrX509SubjectPublicKeyInfo_Compare(&pCertCtx->pCert->TbsCertificate.SubjectPublicKeyInfo,
    714                                                                  pPublicKeyInfo) == 0)
     713                        PCRTCRX509SUBJECTPUBLICKEYINFO pCertPubKeyInfo = NULL;
     714                        if (pCertCtx->pCert)
     715                            pCertPubKeyInfo = &pCertCtx->pCert->TbsCertificate.SubjectPublicKeyInfo;
     716                        else if (pCertCtx->pTaInfo)
     717                            pCertPubKeyInfo = &pCertCtx->pTaInfo->PubKey;
     718                        else
     719                            pCertPubKeyInfo = NULL;
     720                        if (   pCertPubKeyInfo
     721                            && RTCrX509SubjectPublicKeyInfo_Compare(pCertPubKeyInfo, pPublicKeyInfo) == 0)
    715722                            cFound++;
    716723                        RTCrCertCtxRelease(pCertCtx);
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