VirtualBox

Changeset 95683 in vbox


Ignore:
Timestamp:
Jul 17, 2022 6:48:37 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152333
Message:

RTSignTool: Search the user/system stores for intermedate CAs to the signing certificate and automatically include them in the signing output. [build fix] bugref:8691

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/tools/RTSignTool.cpp

    r95682 r95683  
    831831         * after trust anchors, only intermediate certificates.
    832832         */
     833#ifdef RT_OS_WINDOWS
    833834        PCRTCRX509CERTIFICATE pChildCert = pPrev ? pPrev->pCert : pCertificateReal ? pCertificateReal : pCertificate;
     835#else
     836        PCRTCRX509CERTIFICATE pChildCert = pPrev ? pPrev->pCert : pCertificate;
     837#endif
    834838        AssertReturnStmt(pChildCert, RTCrCertCtxRelease(pPrev), NULL);
    835839
     
    880884            RTERRINFOSTATIC ErrInfo;
    881885            rc = RTCrStoreCertAddX509(hRetStore, RTCRCERTCTX_F_ENC_X509_DER | RTCRCERTCTX_F_ADD_IF_NOT_FOUND,
     886#ifdef RT_OS_WINDOWS
    882887                                      (PRTCRX509CERTIFICATE)(pCertificateReal ? pCertificateReal : pCertificate),
     888#else
     889                                      (PRTCRX509CERTIFICATE)pCertificate,
     890#endif
    883891                                      RTErrInfoInitStatic(&ErrInfo));
    884892            if (RT_SUCCESS(rc))
Note: See TracChangeset for help on using the changeset viewer.

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