VirtualBox

Changeset 64865 in vbox for trunk


Ignore:
Timestamp:
Dec 14, 2016 1:39:09 PM (8 years ago)
Author:
vboxsync
Message:

IPRT/PKCS#7: Decode MS statement type attributes.

Location:
trunk
Files:
2 edited

Legend:

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

    r64819 r64865  
    8989    /** Microsoft nested PKCS\#7 signature (signtool /as). */
    9090    RTCRPKCS7ATTRIBUTETYPE_MS_NESTED_SIGNATURE,
     91    /** Microsoft statement type, use pObjIdSeqs. */
     92    RTCRPKCS7ATTRIBUTETYPE_MS_STATEMENT_TYPE,
    9193    /** Blow the type up to 32-bits. */
    9294    RTCRPKCS7ATTRIBUTETYPE_32BIT_HACK = 0x7fffffff
     
    113115        /** ASN.1 object identifiers (RTCRPKCS7ATTRIBUTETYPE_OBJ_IDS). */
    114116        PRTASN1SETOFOBJIDS              pObjIds;
     117        /** Sequence of ASN.1 object identifiers (RTCRPKCS7ATTRIBUTETYPE_MS_STATEMENT_TYPE). */
     118        PRTASN1SETOFOBJIDSEQS           pObjIdSeqs;
    115119        /** ASN.1 octet strings (RTCRPKCS7ATTRIBUTETYPE_OCTET_STRINGS). */
    116120        PRTASN1SETOFOCTETSTRINGS        pOctetStrings;
  • trunk/src/VBox/Runtime/common/crypto/pkcs7-template.h

    r64845 r64865  
    6363RTASN1TMPL_MEMBER_DYN(          uValues,    pContentInfos,  RTCRPKCS7SETOFCONTENTINFOS, RTCrPkcs7SetOfContentInfos, Allocation,
    6464    enmType, RTCRPKCS7ATTRIBUTETYPE_MS_NESTED_SIGNATURE, RTAsn1ObjId_CompareWithString(&pThis->Type, RTCR_PKCS9_ID_MS_NESTED_SIGNATURE) == 0);
     65RTASN1TMPL_MEMBER_DYN(          uValues,    pObjIdSeqs,     RTASN1SETOFOBJIDSEQS,       RTAsn1SetOfObjIdSeqs,       Allocation,
     66    enmType, RTCRPKCS7ATTRIBUTETYPE_MS_STATEMENT_TYPE, RTAsn1ObjId_CompareWithString(&pThis->Type, RTCR_PKCS9_ID_MS_STATEMENT_TYPE) == 0);
    6567RTASN1TMPL_MEMBER_DYN_DEFAULT(  uValues,    pCores,         RTASN1SETOFCORES,           RTAsn1SetOfCores,           Allocation,
    6668    enmType, RTCRPKCS7ATTRIBUTETYPE_UNKNOWN);
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