Changeset 95595 in vbox
- Timestamp:
- Jul 12, 2022 2:20:48 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/crypto/pkcs7.h
r93115 r95595 634 634 RTDECL(int) RTCrPkcs7SimpleSignSignedData(uint32_t fFlags, PCRTCRX509CERTIFICATE pSigner, RTCRKEY hPrivateKey, 635 635 void const *pvData, size_t cbData, RTDIGESTTYPE enmDigestType, 636 RTCRSTORE hAdditionalCerts, void *pvResult, size_t *pcbResult, PRTERRINFO pErrInfo); 636 RTCRSTORE hAdditionalCerts, PCRTCRPKCS7ATTRIBUTES pAdditionalAuthenticatedAttribs, 637 void *pvResult, size_t *pcbResult, PRTERRINFO pErrInfo); 637 638 638 639 /** @name RTCRPKCS7SIGN_SD_F_XXX - Flags for RTCrPkcs7SimpleSign. -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp
r95140 r95595 2448 2448 rc = RTCrPkcs7SimpleSignSignedData(RTCRPKCS7SIGN_SD_F_DEATCHED | RTCRPKCS7SIGN_SD_F_NO_SMIME_CAP, 2449 2449 pCertificate, hPrivateKey, pvManifest, (size_t)cbManifest, enmDigestType, 2450 hIntermediateCerts, NULL /*pvResult*/, &cbResult, RTErrInfoInitStatic(pErrInfo)); 2450 hIntermediateCerts, NULL /*pAdditionalAuthenticatedAttribs*/, 2451 NULL /*pvResult*/, &cbResult, RTErrInfoInitStatic(pErrInfo)); 2451 2452 if (rc == VERR_BUFFER_OVERFLOW) 2452 2453 { … … 2459 2460 rc = RTCrPkcs7SimpleSignSignedData(RTCRPKCS7SIGN_SD_F_DEATCHED | RTCRPKCS7SIGN_SD_F_NO_SMIME_CAP, 2460 2461 pCertificate, hPrivateKey, pvManifest, (size_t)cbManifest, enmDigestType, 2461 hIntermediateCerts, pvResult, &cbResult, RTErrInfoInitStatic(pErrInfo)); 2462 hIntermediateCerts, , NULL /*pAdditionalAuthenticatedAttribs*/, 2463 pvResult, &cbResult, RTErrInfoInitStatic(pErrInfo)); 2462 2464 if (RT_SUCCESS(rc)) 2463 2465 { -
trunk/src/VBox/Runtime/common/crypto/pkcs7-sign.cpp
r93115 r95595 88 88 RTDECL(int) RTCrPkcs7SimpleSignSignedData(uint32_t fFlags, PCRTCRX509CERTIFICATE pSigner, RTCRKEY hPrivateKey, 89 89 void const *pvData, size_t cbData, RTDIGESTTYPE enmDigestType, 90 RTCRSTORE hAdditionalCerts, void *pvResult, size_t *pcbResult, PRTERRINFO pErrInfo) 90 RTCRSTORE hAdditionalCerts, PCRTCRPKCS7ATTRIBUTES pAdditionalAuthenticatedAttribs, 91 void *pvResult, size_t *pcbResult, PRTERRINFO pErrInfo) 91 92 { 92 93 size_t const cbResultBuf = *pcbResult; … … 145 146 if (pCms != NULL) 146 147 { 148 RT_NOREF(pAdditionalAuthenticatedAttribs); /** @todo */ 147 149 if (CMS_add1_signer(pCms, pOsslSigner, pEvpPrivateKey, pEvpMd, fOsslSign) != NULL) 148 150 { … … 203 205 return rc; 204 206 #else 205 RT_NOREF(fFlags, pSigner, hPrivateKey, pvData, cbData, enmDigestType, hAdditionalCerts, pvResult, pErrInfo, cbResultBuf); 207 RT_NOREF(fFlags, pSigner, hPrivateKey, pvData, cbData, enmDigestType, hAdditionalCerts, pAdditionalAuthenticatedAttribs, 208 pvResult, pErrInfo, cbResultBuf); 206 209 *pcbResult = 0; 207 210 return VERR_NOT_IMPLEMENTED;
Note:
See TracChangeset
for help on using the changeset viewer.