re-run "make idl" after fixing idl for supplementalCredentialsSubBlob.
[kai/samba-autobuild/.git] / source / librpc / gen_ndr / drsblobs.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #include "librpc/gen_ndr/drsuapi.h"
6 #include "librpc/gen_ndr/misc.h"
7 #ifndef _HEADER_drsblobs
8 #define _HEADER_drsblobs
9
10 #define SUPPLEMENTAL_CREDENTIALS_PREFIX ( "                                                " )
11 enum drsuapi_DsAttributeId;
12
13 struct replPropertyMetaData1 {
14         enum drsuapi_DsAttributeId attid;
15         uint32_t version;
16         NTTIME originating_change_time;
17         struct GUID originating_invocation_id;
18         uint64_t originating_usn;
19         uint64_t local_usn;
20 };
21
22 struct replPropertyMetaDataCtr1 {
23         uint32_t count;
24         uint32_t reserved;
25         struct replPropertyMetaData1 *array;
26 };
27
28 union replPropertyMetaDataCtr {
29         struct replPropertyMetaDataCtr1 ctr1;/* [case] */
30 }/* [nodiscriminant] */;
31
32 struct replPropertyMetaDataBlob {
33         uint32_t version;
34         uint32_t reserved;
35         union replPropertyMetaDataCtr ctr;/* [switch_is(version)] */
36 }/* [public] */;
37
38 struct replUpToDateVectorCtr1 {
39         uint32_t count;
40         uint32_t reserved;
41         struct drsuapi_DsReplicaCursor *cursors;
42 };
43
44 struct replUpToDateVectorCtr2 {
45         uint32_t count;
46         uint32_t reserved;
47         struct drsuapi_DsReplicaCursor2 *cursors;
48 };
49
50 union replUpToDateVectorCtr {
51         struct replUpToDateVectorCtr1 ctr1;/* [case] */
52         struct replUpToDateVectorCtr2 ctr2;/* [case(2)] */
53 }/* [nodiscriminant] */;
54
55 struct replUpToDateVectorBlob {
56         uint32_t version;
57         uint32_t reserved;
58         union replUpToDateVectorCtr ctr;/* [switch_is(version)] */
59 }/* [public] */;
60
61 struct repsFromTo1OtherInfo {
62         uint32_t __dns_name_size;/* [value(strlen(dns_name)+1)] */
63         const char *dns_name;/* [charset(DOS)] */
64 }/* [gensize,public] */;
65
66 struct repsFromTo1 {
67         uint32_t blobsize;/* [value(ndr_size_repsFromTo1(this,ndr->flags)+8)] */
68         uint32_t consecutive_sync_failures;
69         NTTIME last_success;
70         NTTIME last_attempt;
71         WERROR result_last_attempt;
72         struct repsFromTo1OtherInfo *other_info;/* [relative] */
73         uint32_t other_info_length;/* [value(ndr_size_repsFromTo1OtherInfo(other_info,ndr->flags))] */
74         uint32_t replica_flags;
75         uint8_t schedule[84];
76         uint32_t reserved;
77         struct drsuapi_DsReplicaHighWaterMark highwatermark;
78         struct GUID source_dsa_obj_guid;
79         struct GUID source_dsa_invocation_id;
80         struct GUID transport_guid;
81 }/* [gensize,public,flag(LIBNDR_PRINT_ARRAY_HEX)] */;
82
83 union repsFromTo {
84         struct repsFromTo1 ctr1;/* [case] */
85 }/* [nodiscriminant] */;
86
87 struct repsFromToBlob {
88         uint32_t version;
89         uint32_t reserved;
90         union repsFromTo ctr;/* [switch_is(version)] */
91 }/* [public] */;
92
93 struct partialAttributeSetCtr1 {
94         uint32_t count;
95         enum drsuapi_DsAttributeId *array;
96 };
97
98 union partialAttributeSetCtr {
99         struct partialAttributeSetCtr1 ctr1;/* [case] */
100 }/* [nodiscriminant] */;
101
102 struct partialAttributeSetBlob {
103         uint32_t version;
104         uint32_t reserved;
105         union partialAttributeSetCtr ctr;/* [switch_is(version)] */
106 }/* [public] */;
107
108 enum prefixMapVersion
109 #ifndef USE_UINT_ENUMS
110  {
111         PREFIX_MAP_VERSION_DSDB=0x44534442
112 }
113 #else
114  { __donnot_use_enum_prefixMapVersion=0x7FFFFFFF}
115 #define PREFIX_MAP_VERSION_DSDB ( 0x44534442 )
116 #endif
117 ;
118
119 union prefixMapCtr {
120         struct drsuapi_DsReplicaOIDMapping_Ctr dsdb;/* [case(PREFIX_MAP_VERSION_DSDB)] */
121 }/* [nodiscriminant] */;
122
123 struct prefixMapBlob {
124         enum prefixMapVersion version;
125         uint32_t reserved;
126         union prefixMapCtr ctr;/* [switch_is(version)] */
127 }/* [public] */;
128
129 union ldapControlDirSyncExtra {
130         struct replUpToDateVectorBlob uptodateness_vector;/* [default] */
131 }/* [gensize,nodiscriminant] */;
132
133 struct ldapControlDirSyncBlob {
134         uint32_t u1;/* [value(3)] */
135         NTTIME time;
136         uint32_t u2;
137         uint32_t u3;
138         uint32_t extra_length;/* [value(ndr_size_ldapControlDirSyncExtra(&extra,extra.uptodateness_vector.version,0))] */
139         struct drsuapi_DsReplicaHighWaterMark highwatermark;
140         struct GUID guid1;
141         union ldapControlDirSyncExtra extra;/* [switch_is(extra_length)] */
142 };
143
144 struct ldapControlDirSyncCookie {
145         const char *msds;/* [value("MSDS"),charset(DOS)] */
146         struct ldapControlDirSyncBlob blob;/* [subcontext(0)] */
147 }/* [relative_base,public] */;
148
149 struct supplementalCredentialsPackage {
150         uint16_t name_len;/* [value(2*strlen_m(name))] */
151         uint16_t data_len;/* [value(strlen(data))] */
152         uint16_t reserved;
153         const char *name;/* [charset(UTF16)] */
154         const char *data;/* [charset(DOS)] */
155 };
156
157 enum supplementalCredentialsSignature
158 #ifndef USE_UINT_ENUMS
159  {
160         SUPPLEMENTAL_CREDENTIALS_SIGNATURE=0x0050
161 }
162 #else
163  { __donnot_use_enum_supplementalCredentialsSignature=0x7FFFFFFF}
164 #define SUPPLEMENTAL_CREDENTIALS_SIGNATURE ( 0x0050 )
165 #endif
166 ;
167
168 struct supplementalCredentialsSubBlob {
169         const char *prefix;/* [value(SUPPLEMENTAL_CREDENTIALS_PREFIX),charset(UTF16)] */
170         enum supplementalCredentialsSignature signature;/* [value(SUPPLEMENTAL_CREDENTIALS_SIGNATURE)] */
171         uint16_t num_packages;
172         struct supplementalCredentialsPackage *packages;
173 }/* [gensize] */;
174
175 struct supplementalCredentialsBlob {
176         uint32_t unknown1;/* [value(0)] */
177         uint32_t __ndr_size;/* [value(ndr_size_supplementalCredentialsSubBlob(&sub,ndr->flags))] */
178         uint32_t unknown2;/* [value(0)] */
179         struct supplementalCredentialsSubBlob sub;/* [subcontext_size(__ndr_size),subcontext(0)] */
180         uint8_t unknown3;/* [value(0)] */
181 }/* [public] */;
182
183 struct package_PackagesBlob {
184         const char ** names;/* [flag(LIBNDR_FLAG_STR_NOTERM|LIBNDR_FLAG_REMAINING)] */
185 }/* [public] */;
186
187 struct package_PrimaryKerberosString {
188         uint16_t length;/* [value(2*strlen_m(string))] */
189         uint16_t size;/* [value(2*strlen_m(string))] */
190         const char * string;/* [relative,subcontext_size(size),subcontext(0),flag(LIBNDR_FLAG_STR_NOTERM|LIBNDR_FLAG_REMAINING)] */
191 };
192
193 struct package_PrimaryKerberosKey {
194         uint32_t keytype;
195         uint32_t value_len;/* [value((value?value->length:0))] */
196         DATA_BLOB *value;/* [relative,subcontext_size(value_len),subcontext(0),flag(LIBNDR_FLAG_REMAINING)] */
197         uint32_t unknown1;/* [value(0)] */
198         uint32_t unknown2;/* [value(0)] */
199 };
200
201 struct package_PrimaryKerberosCtr3 {
202         uint16_t num_keys;
203         uint16_t num_old_keys;
204         struct package_PrimaryKerberosString salt;
205         uint32_t unknown1;/* [value(0)] */
206         uint32_t unknown2;/* [value(0)] */
207         struct package_PrimaryKerberosKey *keys;
208         struct package_PrimaryKerberosKey *old_keys;
209         uint64_t *unknown3;
210         uint64_t *unknown3_old;
211 };
212
213 union package_PrimaryKerberosCtr {
214         struct package_PrimaryKerberosCtr3 ctr3;/* [case(3)] */
215 }/* [nodiscriminant] */;
216
217 struct package_PrimaryKerberosBlob {
218         uint32_t version;/* [value(3)] */
219         union package_PrimaryKerberosCtr ctr;/* [switch_is(version)] */
220 }/* [public] */;
221
222 struct package_PrimaryCLEARTEXTBlob {
223         const char * cleartext;/* [flag(LIBNDR_FLAG_STR_NOTERM|LIBNDR_FLAG_REMAINING)] */
224 }/* [public] */;
225
226 struct package_PrimaryWDigestHash {
227         uint8_t hash[16];
228 }/* [flag(LIBNDR_PRINT_ARRAY_HEX)] */;
229
230 struct package_PrimaryWDigestBlob {
231         uint16_t unknown1;/* [value(0x31)] */
232         uint8_t unknown2;/* [value(0x01)] */
233         uint8_t num_hashes;
234         uint32_t unknown3;/* [value(0)] */
235         uint64_t uuknown4;/* [value(0)] */
236         struct package_PrimaryWDigestHash *hashes;
237 }/* [public] */;
238
239 struct trustAuthInOutSecret1 {
240         NTTIME time1;
241         uint32_t unknown1;
242         DATA_BLOB value;
243         DATA_BLOB _pad;/* [flag(LIBNDR_FLAG_ALIGN4)] */
244 };
245
246 struct trustAuthInOutCtr1 {
247         struct trustAuthInOutSecret1 *value1;/* [relative] */
248         struct trustAuthInOutSecret1 *value2;/* [relative] */
249 };
250
251 struct trustAuthInOutSecret2V1 {
252         NTTIME time1;
253         uint32_t unknown1;
254         DATA_BLOB value;
255         NTTIME time2;
256         uint32_t unknown2;
257         uint32_t unknown3;
258         uint32_t unknown4;
259         DATA_BLOB _pad;/* [flag(LIBNDR_FLAG_ALIGN4)] */
260 };
261
262 struct trustAuthInOutSecret2V2 {
263         NTTIME time1;
264         uint32_t unknown1;
265         DATA_BLOB value;
266         NTTIME time2;
267         uint32_t unknown2;
268         uint32_t unknown3;
269         DATA_BLOB _pad;/* [flag(LIBNDR_FLAG_ALIGN4)] */
270 };
271
272 struct trustAuthInOutCtr2 {
273         struct trustAuthInOutSecret2V1 *value1;/* [relative] */
274         struct trustAuthInOutSecret2V2 *value2;/* [relative] */
275 };
276
277 union trustAuthInOutCtr {
278         struct trustAuthInOutCtr1 ctr1;/* [case] */
279         struct trustAuthInOutCtr2 ctr2;/* [case(2)] */
280 }/* [nodiscriminant] */;
281
282 struct trustAuthInOutBlob {
283         uint32_t version;
284         union trustAuthInOutCtr ctr;/* [switch_is(version)] */
285 }/* [public] */;
286
287 struct DsCompressedChunk {
288         uint32_t marker;
289         DATA_BLOB data;
290 }/* [public] */;
291
292 struct DsCompressedBlob {
293         struct DsCompressedChunk chunks[5];
294 }/* [public] */;
295
296
297 struct decode_replPropertyMetaData {
298         struct {
299                 struct replPropertyMetaDataBlob blob;
300         } in;
301
302 };
303
304
305 struct decode_replUpToDateVector {
306         struct {
307                 struct replUpToDateVectorBlob blob;
308         } in;
309
310 };
311
312
313 struct decode_repsFromTo {
314         struct {
315                 struct repsFromToBlob blob;
316         } in;
317
318 };
319
320
321 struct decode_partialAttributeSet {
322         struct {
323                 struct partialAttributeSetBlob blob;
324         } in;
325
326 };
327
328
329 struct decode_prefixMap {
330         struct {
331                 struct prefixMapBlob blob;
332         } in;
333
334 };
335
336
337 struct decode_ldapControlDirSync {
338         struct {
339                 struct ldapControlDirSyncCookie cookie;
340         } in;
341
342 };
343
344
345 struct decode_supplementalCredentials {
346         struct {
347                 struct supplementalCredentialsBlob blob;
348         } in;
349
350 };
351
352
353 struct decode_Packages {
354         struct {
355                 struct package_PackagesBlob blob;
356         } in;
357
358 };
359
360
361 struct decode_PrimaryKerberos {
362         struct {
363                 struct package_PrimaryKerberosBlob blob;
364         } in;
365
366 };
367
368
369 struct decode_PrimaryCLEARTEXT {
370         struct {
371                 struct package_PrimaryCLEARTEXTBlob blob;
372         } in;
373
374 };
375
376
377 struct decode_PrimaryWDigest {
378         struct {
379                 struct package_PrimaryWDigestBlob blob;
380         } in;
381
382 };
383
384
385 struct decode_trustAuthInOut {
386         struct {
387                 struct trustAuthInOutBlob blob;
388         } in;
389
390 };
391
392
393 struct decode_DsCompressed {
394         struct {
395                 struct DsCompressedBlob blob;
396         } in;
397
398 };
399
400 #endif /* _HEADER_drsblobs */