/* MS-ADTS 7.1.6.9.3 msDS-TrustForestTrustInfo Attribute */
+ typedef struct {
+ [value(strlen_m(string))] uint32 size;
+ [charset(UTF8)] uint8 string[size];
+ } ForestTrustString;
+
typedef [flag(NDR_NOALIGN)] struct {
[value(ndr_size_dom_sid0(&sid, ndr->flags))] uint32 sid_size;
[subcontext(0),subcontext_size(sid_size)] dom_sid sid;
- utf8string2 dns_name;
- utf8string2 netbios_name;
+ ForestTrustString dns_name;
+ ForestTrustString netbios_name;
} ForestTrustDataDomainInfo;
typedef [flag(NDR_NOALIGN)] struct {
} ForestTrustDataBinaryData;
typedef [nodiscriminant] union {
- [case(FOREST_TRUST_TOP_LEVEL_NAME)] utf8string2 name;
- [case(FOREST_TRUST_TOP_LEVEL_NAME_EX)] utf8string2 name;
+ [case(FOREST_TRUST_TOP_LEVEL_NAME)] ForestTrustString name;
+ [case(FOREST_TRUST_TOP_LEVEL_NAME_EX)] ForestTrustString name;
[case(FOREST_TRUST_DOMAIN_INFO)] ForestTrustDataDomainInfo info;
[default] ForestTrustDataBinaryData data;
} ForestTrustData;
*/
#define utf8string [flag(STR_UTF8|STR_NULLTERM)] string
-/*
- an utf8 string prefixed with [size], 32 bits
- not null terminated
-*/
-#define utf8string2 [flag(STR_SIZE4|STR_UTF8|STR_NOTERM)] string
-
/*
a null terminated UCS2 string
*/