VirtualBox

Changeset 59663 in vbox for trunk/include


Ignore:
Timestamp:
Feb 14, 2016 8:11:06 PM (9 years ago)
Author:
vboxsync
Message:

IPRT: Added RTCrX509Certificate_VerifySignatureSelfSigned and RTAsn1EncodeToBuffer, corrected the name of RTAsn1EncodeWriteHeader (was RTAsnEncodeWriteHeader).

Location:
trunk/include/iprt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asn1.h

    r58106 r59663  
    14671467 *                              Optional.
    14681468 */
    1469 RTDECL(int) RTAsnEncodeWriteHeader(PCRTASN1CORE pAsn1Core, uint32_t fFlags, FNRTASN1ENCODEWRITER pfnWriter, void *pvUser,
    1470                                    PRTERRINFO pErrInfo);
    1471 
    1472 /**
    1473  * Prepares the ASN.1 structure for encoding.
    1474  *
    1475  * The preparations is mainly calculating accurate object size, but may also
    1476  * involve operations like recoding internal UTF-8 strings to the actual ASN.1
    1477  * format and other things that may require memory to allocated/reallocated.
     1469RTDECL(int) RTAsn1EncodeWriteHeader(PCRTASN1CORE pAsn1Core, uint32_t fFlags, FNRTASN1ENCODEWRITER pfnWriter, void *pvUser,
     1470                                    PRTERRINFO pErrInfo);
     1471
     1472/**
     1473 * Encodes and writes an ASN.1 object.
    14781474 *
    14791475 * @returns IPRT status code
     
    14881484RTDECL(int) RTAsn1EncodeWrite(PCRTASN1CORE pRoot, uint32_t fFlags, FNRTASN1ENCODEWRITER pfnWriter, void *pvUser,
    14891485                              PRTERRINFO pErrInfo);
     1486
     1487/**
     1488 * Encodes and writes an ASN.1 object into a caller allocated memory buffer.
     1489 *
     1490 * @returns IPRT status code
     1491 * @param   pRoot               The root of the ASN.1 object tree to encode.
     1492 * @param   fFlags              Valid combination of the RTASN1ENCODE_F_XXX
     1493 *                              flags.  Must include the encoding type.
     1494 * @param   pvBuf               The output buffer.
     1495 * @param   cbBuf               The buffer size.  This should have the size
     1496 *                              returned by RTAsn1EncodePrepare().
     1497 * @param   pErrInfo            Where to store extended error information.
     1498 *                              Optional.
     1499 */
     1500RTDECL(int) RTAsn1EncodeToBuffer(PCRTASN1CORE pRoot, uint32_t fFlags, void *pvBuf, size_t cbBuf, PRTERRINFO pErrInfo);
    14901501
    14911502/** @} */
  • trunk/include/iprt/crypto/x509.h

    r59625 r59663  
    960960                                                PCRTASN1DYNTYPE pParameters, PCRTASN1BITSTRING pPublicKey,
    961961                                                PRTERRINFO pErrInfo);
     962RTDECL(int) RTCrX509Certificate_VerifySignatureSelfSigned(PCRTCRX509CERTIFICATE pThis, PRTERRINFO pErrInfo);
    962963RTDECL(int) RTCrX509Certificate_ReadFromFile(PRTCRX509CERTIFICATE pCertificate, const char *pszFilename, uint32_t fFlags,
    963964                                             PCRTASN1ALLOCATORVTABLE pAllocator, PRTERRINFO pErrInfo);
  • trunk/include/iprt/mangling.h

    r59625 r59663  
    23802380# define RTAsn1EncodePrepare                            RT_MANGLER(RTAsn1EncodePrepare)
    23812381# define RTAsn1EncodeRecalcHdrSize                      RT_MANGLER(RTAsn1EncodeRecalcHdrSize)
     2382# define RTAsn1EncodeToBuffer                           RT_MANGLER(RTAsn1EncodeToBuffer)
    23822383# define RTAsn1EncodeWrite                              RT_MANGLER(RTAsn1EncodeWrite)
    2383 # define RTAsnEncodeWriteHeader                         RT_MANGLER(RTAsnEncodeWriteHeader)
     2384# define RTAsn1EncodeWriteHeader                        RT_MANGLER(RTAsn1EncodeWriteHeader)
    23842385# define RTAsn1BitString_CheckSanity                    RT_MANGLER(RTAsn1BitString_CheckSanity)
    23852386# define RTAsn1BitString_Clone                          RT_MANGLER(RTAsn1BitString_Clone)
     
    31523153# define RTCrX509Validity_CheckSanity                   RT_MANGLER(RTCrX509Validity_CheckSanity)
    31533154# define RTCrX509Certificate_VerifySignature            RT_MANGLER(RTCrX509Certificate_VerifySignature)
     3155# define RTCrX509Certificate_VerifySignatureSelfSigned  RT_MANGLER(RTCrX509Certificate_VerifySignatureSelfSigned)
    31543156# define RTCrTafCertPathControls_DecodeAsn1             RT_MANGLER(RTCrTafCertPathControls_DecodeAsn1)
    31553157# define RTCrTafTrustAnchorChoice_DecodeAsn1            RT_MANGLER(RTCrTafTrustAnchorChoice_DecodeAsn1)
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