VirtualBox

Ignore:
Timestamp:
Jan 21, 2015 2:03:50 PM (10 years ago)
Author:
vboxsync
Message:

IPRT: Implemented X.509 OtherName.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/x509-template.h

    r52521 r53900  
    112112
    113113/*
     114 * One X.509 OtherName.
     115 * Note! This is simplified and might not work correctly for all types with
     116 *       non-DER compatible encodings.
     117 */
     118#define RTASN1TMPL_TYPE         RTCRX509OTHERNAME
     119#define RTASN1TMPL_EXT_NAME     RTCrX509OtherName
     120#define RTASN1TMPL_INT_NAME     rtCrX509OtherName
     121RTASN1TMPL_BEGIN_SEQCORE();
     122RTASN1TMPL_MEMBER(              TypeId,             RTASN1OBJID,                    RTAsn1ObjId);
     123RTASN1TMPL_MEMBER(              Value,              RTASN1DYNTYPE,                  RTAsn1DynType);
     124RTASN1TMPL_END_SEQCORE();
     125#undef RTASN1TMPL_TYPE
     126#undef RTASN1TMPL_EXT_NAME
     127#undef RTASN1TMPL_INT_NAME
     128
     129
     130/*
    114131 * One X.509 GeneralName.
    115132 * Note! This is simplified and might not work correctly for all types with
     
    120137#define RTASN1TMPL_INT_NAME     rtCrX509GeneralName
    121138RTASN1TMPL_BEGIN_PCHOICE();
    122 RTASN1TMPL_PCHOICE_XTAG(        0, RTCRX509GENERALNAMECHOICE_OTHER_NAME,     u.pT0, CtxTag0, Other,         RTASN1DYNTYPE, RTAsn1DynType); /** @todo */
     139RTASN1TMPL_PCHOICE_ITAG(        0, RTCRX509GENERALNAMECHOICE_OTHER_NAME,     u.pT0_OtherName, OtherName,    RTCRX509OTHERNAME, RTCrX509OtherName);
    123140RTASN1TMPL_PCHOICE_ITAG_CP(     1, RTCRX509GENERALNAMECHOICE_RFC822_NAME,    u.pT1_Rfc822,   Rfc822,        RTASN1STRING,  RTAsn1Ia5String);
    124141RTASN1TMPL_PCHOICE_ITAG_CP(     2, RTCRX509GENERALNAMECHOICE_DNS_NAME,       u.pT2_DnsName,  DnsType,       RTASN1STRING,  RTAsn1Ia5String);
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