Changeset 52538 in vbox
- Timestamp:
- Aug 31, 2014 8:19:13 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 95793
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/tools/RTSignTool.cpp
r52403 r52538 275 275 276 276 /** 277 * @callback_method_impl{ RTCRPKCS7VERIFYCERTCALLBACK,277 * @callback_method_impl{FNRTCRPKCS7VERIFYCERTCALLBACK, 278 278 * Standard code signing. Use this for Microsoft SPC.} 279 279 */ 280 static DECLCALLBACK(int) VerifyExecCertVerifyCallback(PCRTCRX509CERTIFICATE pCert, RTCRX509CERTPATHS hCertPaths, 280 static DECLCALLBACK(int) VerifyExecCertVerifyCallback(PCRTCRX509CERTIFICATE pCert, RTCRX509CERTPATHS hCertPaths, uint32_t fFlags, 281 281 void *pvUser, PRTERRINFO pErrInfo) 282 282 { … … 315 315 * Standard code signing capabilites required. 316 316 */ 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)) 319 320 { 320 321 /* … … 401 402 * the authenticode policies into account. 402 403 */ 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, 404 408 VerifyExecCertVerifyCallback, pState, pErrInfo); 405 409 }
Note:
See TracChangeset
for help on using the changeset viewer.