Changeset 95624 in vbox for trunk/src/VBox/Runtime/common/crypto
- Timestamp:
- Jul 13, 2022 8:31:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/crypto/pkcs7-sign.cpp
r95620 r95624 136 136 { 137 137 /* 138 * Do the signing.138 * Use CMS_sign with CMS_PARTIAL to start a extended the signing process. 139 139 */ 140 140 /* Create a ContentInfo we can modify using CMS_sign w/ CMS_PARTIAL. */ … … 147 147 if (pCms != NULL) 148 148 { 149 /* Set encapsulated content type if present in the auth attribs. */ 149 /* 150 * Set encapsulated content type if present in the auth attribs. 151 */ 150 152 uint32_t iAuthAttrSkip = UINT32_MAX; 151 153 for (uint32_t i = 0; i < pAdditionalAuthenticatedAttribs->cItems && RT_SUCCESS(rc); i++) … … 176 178 if (RT_SUCCESS(rc)) 177 179 { 178 /* Add a signer. */ 180 /* 181 * Add a signer. 182 */ 179 183 CMS_SignerInfo *pSignerInfo = CMS_add1_signer(pCms, pOsslSigner, pEvpPrivateKey, pEvpMd, fOsslSign); 180 184 if (pSignerInfo) 181 185 { 182 /* Add additional attributes, skipping the content type found above. */ 186 /* 187 * Add additional attributes, skipping the content type if found above. 188 */ 183 189 if (pAdditionalAuthenticatedAttribs) 184 190 for (uint32_t i = 0; i < pAdditionalAuthenticatedAttribs->cItems && RT_SUCCESS(rc); i++) … … 198 204 if (RT_SUCCESS(rc)) 199 205 { 200 /* Finally, produce the signed data. */ 206 /* 207 * Finalized and actually sign the data. 208 */ 201 209 rc = CMS_final(pCms, pOsslData, NULL /*dcont*/, fOsslSign); 202 210 if (rc > 0)
Note:
See TracChangeset
for help on using the changeset viewer.