VirtualBox

Changeset 84230 in vbox for trunk/include/iprt/crypto


Ignore:
Timestamp:
May 10, 2020 12:52:05 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137838
Message:

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

Location:
trunk/include/iprt/crypto
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/crypto/pem.h

    r84172 r84230  
    224224                                const void *pvContent, size_t cbContent, const char *pszMarker);
    225225
     226RTDECL(ssize_t) RTCrPemWriteBlobToVfsIoStrm(RTVFSIOSTREAM hVfsIos, const void *pvContent, size_t cbContent, const char *pszMarker);
     227RTDECL(ssize_t) RTCrPemWriteBlobToVfsFile(RTVFSFILE hVfsFile, const void *pvContent, size_t cbContent, const char *pszMarker);
     228
    226229/**
    227230 * PEM formatter for a generic ASN.1 structure.
  • trunk/include/iprt/crypto/pkcs7.h

    r82968 r84230  
    561561 *  timestamp counter sigantures. */
    562562#define RTCRPKCS7VERIFY_SD_F_ALWAYS_USE_MS_TIMESTAMP_IF_PRESENT     RT_BIT_32(1)
    563 /** Only use signging time attributes from counter signatures. */
     563/** Only use signing time attributes from counter signatures. */
    564564#define RTCRPKCS7VERIFY_SD_F_COUNTER_SIGNATURE_SIGNING_TIME_ONLY    RT_BIT_32(2)
    565565/** Don't validate the counter signature containing the signing time, just use
     
    584584/** @} */
    585585
     586
     587/** @name RTCRPKCS7SIGN_SD_F_XXX - Flags for RTCrPkcs7SimpleSign.
     588 * @{ */
     589/** Detached data. */
     590#define RTCRPKCS7SIGN_SD_F_DEATCHED      RT_BIT_32(0)
     591/** No SMIME capabilities attribute. */
     592#define RTCRPKCS7SIGN_SD_F_NO_SMIME_CAP  RT_BIT_32(1)
     593/** Valid flag mask.   */
     594#define RTCRPKCS7SIGN_SD_F_VALID_MASK    UINT32_C(0x00000003)
    586595/** @} */
    587596
     597RTDECL(int) RTCrPkcs7SimpleSignSignedData(uint32_t fFlags, PCRTCRX509CERTIFICATE pSigner, RTCRKEY hPrivateKey,
     598                                          void const *pvData, size_t cbData, RTCRSTORE hAdditionalCerts,
     599                                          void *pvResult, size_t *pcbResult, PRTERRINFO pErrInfo);
     600
     601/** @} */
     602
    588603RT_C_DECLS_END
    589604
  • trunk/include/iprt/crypto/store.h

    r82968 r84230  
    310310RTDECL(int) RTCrStoreCertSearchDestroy(RTCRSTORE hStore, PRTCRSTORECERTSEARCH pSearch);
    311311
    312 RTDECL(int) RTCrStoreConvertToOpenSslCertStore(RTCRSTORE hStore, uint32_t fFlags, void **ppvOpenSslStore);
    313 RTDECL(int) RTCrStoreConvertToOpenSslCertStack(RTCRSTORE hStore, uint32_t fFlags, void **ppvOpenSslStack);
     312RTDECL(int) RTCrStoreConvertToOpenSslCertStore(RTCRSTORE hStore, uint32_t fFlags, void **ppvOpenSslStore, PRTERRINFO pErrInfo);
     313RTDECL(int) RTCrStoreConvertToOpenSslCertStack(RTCRSTORE hStore, uint32_t fFlags, void **ppvOpenSslStack, PRTERRINFO pErrInfo);
    314314
    315315
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette