VirtualBox

Changeset 52538 in vbox


Ignore:
Timestamp:
Aug 31, 2014 8:19:13 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95793
Message:

IPRT,SUP: First part of timestamp counter signatures support.

File:
1 edited

Legend:

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

    r52403 r52538  
    275275
    276276/**
    277  * @callback_method_impl{RTCRPKCS7VERIFYCERTCALLBACK,
     277 * @callback_method_impl{FNRTCRPKCS7VERIFYCERTCALLBACK,
    278278 * Standard code signing.  Use this for Microsoft SPC.}
    279279 */
    280 static DECLCALLBACK(int) VerifyExecCertVerifyCallback(PCRTCRX509CERTIFICATE pCert, RTCRX509CERTPATHS hCertPaths,
     280static DECLCALLBACK(int) VerifyExecCertVerifyCallback(PCRTCRX509CERTIFICATE pCert, RTCRX509CERTPATHS hCertPaths, uint32_t fFlags,
    281281                                                      void *pvUser, PRTERRINFO pErrInfo)
    282282{
     
    315315     * Standard code signing capabilites required.
    316316     */
    317     int rc = RTCrPkcs7VerifyCertCallbackCodeSigning(pCert, hCertPaths, NULL, pErrInfo);
    318     if (RT_SUCCESS(rc))
     317    int rc = RTCrPkcs7VerifyCertCallbackCodeSigning(pCert, hCertPaths, fFlags, NULL, pErrInfo);
     318    if (   RT_SUCCESS(rc)
     319        && (fFlags & RTCRPKCS7VCC_F_SIGNED_DATA))
    319320    {
    320321        /*
     
    401402             * the authenticode policies into account.
    402403             */
    403             return RTCrPkcs7VerifySignedData(pContentInfo, 0, pState->hAdditionalStore, pState->hRootStore, &ValidationTime,
     404            return RTCrPkcs7VerifySignedData(pContentInfo,
     405                                             RTCRPKCS7VERIFY_SD_F_COUNTER_SIGNATURE_SIGNING_TIME_ONLY
     406                                             | RTCRPKCS7VERIFY_SD_F_ALWAYS_USE_SIGNING_TIME_IF_PRESENT,
     407                                             pState->hAdditionalStore, pState->hRootStore, &ValidationTime,
    404408                                             VerifyExecCertVerifyCallback, pState, pErrInfo);
    405409        }
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