Changeset 53900 in vbox
- Timestamp:
- Jan 21, 2015 2:03:50 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97749
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/crypto/x509.h
r52600 r53900 197 197 198 198 199 /** 200 * One X.509 OtherName (IPRT representation). 201 */ 202 typedef struct RTCRX509OTHERNAME 203 { 204 /** The sequence core. */ 205 RTASN1SEQUENCECORE SeqCore; 206 /** The name type identifier. */ 207 RTASN1OBJID TypeId; 208 /** The name value (explicit tag 0). */ 209 RTASN1DYNTYPE Value; 210 } RTCRX509OTHERNAME; 211 /** Pointer to a X.509 OtherName (IPRT representation). */ 212 typedef RTCRX509OTHERNAME *PRTCRX509OTHERNAME; 213 /** Pointer to a const X.509 OtherName (IPRT representation). */ 214 typedef RTCRX509OTHERNAME const *PCRTCRX509OTHERNAME; 215 RTASN1TYPE_STANDARD_PROTOTYPES(RTCRX509OTHERNAME, RTDECL, RTCrX509OtherName, SeqCore.Asn1Core); 216 199 217 200 218 typedef enum RTCRX509GENERALNAMECHOICE … … 231 249 union 232 250 { 233 /** Tag 0: Other. */ 234 struct 235 { 236 /** Context tag 0. */ 237 RTASN1CONTEXTTAG0 CtxTag0; 238 /** User defined. */ 239 RTASN1DYNTYPE Other; 240 } *pT0; 251 /** Tag 0: Other Name. */ 252 PRTCRX509OTHERNAME pT0_OtherName; 241 253 /** Tag 1: RFC-822 Name. */ 242 254 PRTASN1STRING pT1_Rfc822; -
trunk/src/VBox/Runtime/common/crypto/x509-template.h
r52521 r53900 112 112 113 113 /* 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 121 RTASN1TMPL_BEGIN_SEQCORE(); 122 RTASN1TMPL_MEMBER( TypeId, RTASN1OBJID, RTAsn1ObjId); 123 RTASN1TMPL_MEMBER( Value, RTASN1DYNTYPE, RTAsn1DynType); 124 RTASN1TMPL_END_SEQCORE(); 125 #undef RTASN1TMPL_TYPE 126 #undef RTASN1TMPL_EXT_NAME 127 #undef RTASN1TMPL_INT_NAME 128 129 130 /* 114 131 * One X.509 GeneralName. 115 132 * Note! This is simplified and might not work correctly for all types with … … 120 137 #define RTASN1TMPL_INT_NAME rtCrX509GeneralName 121 138 RTASN1TMPL_BEGIN_PCHOICE(); 122 RTASN1TMPL_PCHOICE_ XTAG( 0, RTCRX509GENERALNAMECHOICE_OTHER_NAME, u.pT0, CtxTag0, Other, RTASN1DYNTYPE, RTAsn1DynType); /** @todo */139 RTASN1TMPL_PCHOICE_ITAG( 0, RTCRX509GENERALNAMECHOICE_OTHER_NAME, u.pT0_OtherName, OtherName, RTCRX509OTHERNAME, RTCrX509OtherName); 123 140 RTASN1TMPL_PCHOICE_ITAG_CP( 1, RTCRX509GENERALNAMECHOICE_RFC822_NAME, u.pT1_Rfc822, Rfc822, RTASN1STRING, RTAsn1Ia5String); 124 141 RTASN1TMPL_PCHOICE_ITAG_CP( 2, RTCRX509GENERALNAMECHOICE_DNS_NAME, u.pT2_DnsName, DnsType, RTASN1STRING, RTAsn1Ia5String);
Note:
See TracChangeset
for help on using the changeset viewer.