VirtualBox

Ignore:
Timestamp:
Jul 12, 2022 2:20:48 AM (3 years ago)
Author:
vboxsync
Message:

IPRT/Pkcs7: Added a parameter to RTCrPkcs7SimpleSignSignedData (not yet implemented). bugref:8691

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/pkcs7-sign.cpp

    r93115 r95595  
    8888RTDECL(int) RTCrPkcs7SimpleSignSignedData(uint32_t fFlags, PCRTCRX509CERTIFICATE pSigner, RTCRKEY hPrivateKey,
    8989                                          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)
    9192{
    9293    size_t const cbResultBuf = *pcbResult;
     
    145146                    if (pCms != NULL)
    146147                    {
     148RT_NOREF(pAdditionalAuthenticatedAttribs); /** @todo */
    147149                        if (CMS_add1_signer(pCms, pOsslSigner, pEvpPrivateKey, pEvpMd, fOsslSign) != NULL)
    148150                        {
     
    203205    return rc;
    204206#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);
    206209    *pcbResult = 0;
    207210    return VERR_NOT_IMPLEMENTED;
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