VirtualBox

Ignore:
Timestamp:
May 10, 2020 1:04:47 AM (5 years ago)
Author:
vboxsync
Message:

IPRT,openssl: Adding RTCrPkcs7SimpleSignSignedData as a feeble start at PKCS#7/CMS signing. [build fix] bugref:9699

File:
1 edited

Legend:

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

    r84232 r84235  
    9191    *pcbResult = 0;
    9292    AssertReturn(!(fFlags & ~RTCRPKCS7SIGN_SD_F_VALID_MASK), VERR_INVALID_FLAGS);
    93 #if defined(IPRT_WITH_OPENSSL) && (OPENSSL_VERSION_NUMBER > 0x10000000L) /* 0.9.8 doesn't seem to have EVP_PKEY_CTX_set_signature_md. */
     93#if defined(IPRT_WITH_OPENSSL)
    9494    AssertReturn((int)cbData >= 0 && (unsigned)cbData == cbData, VERR_TOO_MUCH_DATA);
    9595
     
    119119                 * Create a BIO for the data buffer.
    120120                 */
    121                 BIO *pOsslData = BIO_new_mem_buf(pvData, (int)cbData);
     121                BIO *pOsslData = BIO_new_mem_buf((void *)pvData, (int)cbData);
    122122                if (pOsslData)
    123123                {
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