c3ad9ab26f1639d38a9217508f604b26360e5430
[ira/wip.git] / source / librpc / ndr / ndr_lsa.c
1 /* parser auto-generated by pidl */
2
3 #include "includes.h"
4
5 NTSTATUS ndr_push_lsa_Close(struct ndr_push *ndr, struct lsa_Close *r)
6 {
7         NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle));
8
9         return NT_STATUS_OK;
10 }
11
12 NTSTATUS ndr_pull_lsa_Close(struct ndr_pull *ndr, struct lsa_Close *r)
13 {
14         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
15
16         return NT_STATUS_OK;
17 }
18
19 NTSTATUS ndr_push_lsa_Delete(struct ndr_push *ndr, struct lsa_Delete *r)
20 {
21         NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle));
22
23         return NT_STATUS_OK;
24 }
25
26 NTSTATUS ndr_pull_lsa_Delete(struct ndr_pull *ndr, struct lsa_Delete *r)
27 {
28         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
29
30         return NT_STATUS_OK;
31 }
32
33 static NTSTATUS ndr_push_lsa_Name(struct ndr_push *ndr, int ndr_flags, struct lsa_Name *r)
34 {
35         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
36         NDR_CHECK(ndr_push_uint16(ndr, r->name_len));
37         NDR_CHECK(ndr_push_uint16(ndr, r->name_size));
38         NDR_CHECK(ndr_push_ptr(ndr, r->name));
39 buffers:
40         if (!(ndr_flags & NDR_BUFFERS)) goto done;
41         if (r->name) {
42                 NDR_CHECK(ndr_push_unistr_noterm(ndr, r->name));
43         }
44 done:
45         return NT_STATUS_OK;
46 }
47
48 static NTSTATUS ndr_pull_lsa_Name(struct ndr_pull *ndr, int ndr_flags, struct lsa_Name *r)
49 {
50         uint32 _ptr_name;
51         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
52         NDR_CHECK(ndr_pull_uint16(ndr, &r->name_len));
53         NDR_CHECK(ndr_pull_uint16(ndr, &r->name_size));
54         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_name));
55         if (_ptr_name) {
56                 NDR_ALLOC(ndr, r->name);
57         } else {
58                 r->name = NULL;
59         }
60 buffers:
61         if (!(ndr_flags & NDR_BUFFERS)) goto done;
62         if (r->name) {
63                 NDR_CHECK(ndr_pull_unistr_noterm(ndr, &r->name));
64         }
65 done:
66         return NT_STATUS_OK;
67 }
68
69 static NTSTATUS ndr_push_lsa_PrivEntry(struct ndr_push *ndr, int ndr_flags, struct lsa_PrivEntry *r)
70 {
71         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
72         NDR_CHECK(ndr_push_lsa_Name(ndr, NDR_SCALARS, &r->name));
73         NDR_CHECK(ndr_push_uint32(ndr, r->luid_low));
74         NDR_CHECK(ndr_push_uint32(ndr, r->luid_high));
75 buffers:
76         if (!(ndr_flags & NDR_BUFFERS)) goto done;
77                 NDR_CHECK(ndr_push_lsa_Name(ndr, ndr_flags, &r->name));
78 done:
79         return NT_STATUS_OK;
80 }
81
82 static NTSTATUS ndr_pull_lsa_PrivEntry(struct ndr_pull *ndr, int ndr_flags, struct lsa_PrivEntry *r)
83 {
84         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
85         NDR_CHECK(ndr_pull_lsa_Name(ndr, NDR_SCALARS, &r->name));
86         NDR_CHECK(ndr_pull_uint32(ndr, &r->luid_low));
87         NDR_CHECK(ndr_pull_uint32(ndr, &r->luid_high));
88 buffers:
89         if (!(ndr_flags & NDR_BUFFERS)) goto done;
90                 NDR_CHECK(ndr_pull_lsa_Name(ndr, ndr_flags, &r->name));
91 done:
92         return NT_STATUS_OK;
93 }
94
95 static NTSTATUS ndr_push_lsa_PrivArray(struct ndr_push *ndr, int ndr_flags, struct lsa_PrivArray *r)
96 {
97         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
98         NDR_CHECK(ndr_push_uint32(ndr, r->count));
99         NDR_CHECK(ndr_push_ptr(ndr, r->privs));
100 buffers:
101         if (!(ndr_flags & NDR_BUFFERS)) goto done;
102         if (r->privs) {
103                 NDR_CHECK(ndr_push_array(ndr, ndr_flags, r->privs, sizeof(r->privs[0]), r->count, (ndr_push_flags_fn_t)ndr_push_lsa_PrivEntry));
104         }
105 done:
106         return NT_STATUS_OK;
107 }
108
109 static NTSTATUS ndr_pull_lsa_PrivArray(struct ndr_pull *ndr, int ndr_flags, struct lsa_PrivArray *r)
110 {
111         uint32 _ptr_privs;
112         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
113         NDR_CHECK(ndr_pull_uint32(ndr, &r->count));
114         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_privs));
115         if (_ptr_privs) {
116                 NDR_ALLOC(ndr, r->privs);
117         } else {
118                 r->privs = NULL;
119         }
120 buffers:
121         if (!(ndr_flags & NDR_BUFFERS)) goto done;
122         if (r->privs) {
123                 NDR_ALLOC_N_SIZE(ndr, r->privs, r->count, sizeof(r->privs[0]));
124                 NDR_CHECK(ndr_pull_array(ndr, ndr_flags, (void **)r->privs, sizeof(r->privs[0]), r->count, (ndr_pull_flags_fn_t)ndr_pull_lsa_PrivEntry));
125         }
126 done:
127         return NT_STATUS_OK;
128 }
129
130 NTSTATUS ndr_push_lsa_EnumPrivs(struct ndr_push *ndr, struct lsa_EnumPrivs *r)
131 {
132         NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle));
133         NDR_CHECK(ndr_push_uint32(ndr, *r->in.resume_handle));
134         NDR_CHECK(ndr_push_uint32(ndr, r->in.max_count));
135
136         return NT_STATUS_OK;
137 }
138
139 NTSTATUS ndr_pull_lsa_EnumPrivs(struct ndr_pull *ndr, struct lsa_EnumPrivs *r)
140 {
141         NDR_CHECK(ndr_pull_uint32(ndr, r->out.resume_handle));
142         NDR_CHECK(ndr_pull_lsa_PrivArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.privs));
143         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
144
145         return NT_STATUS_OK;
146 }
147
148 NTSTATUS ndr_push_lsa_QuerySecObj(struct ndr_push *ndr, struct lsa_QuerySecObj *r)
149 {
150
151         return NT_STATUS_OK;
152 }
153
154 NTSTATUS ndr_pull_lsa_QuerySecObj(struct ndr_pull *ndr, struct lsa_QuerySecObj *r)
155 {
156         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
157
158         return NT_STATUS_OK;
159 }
160
161 NTSTATUS ndr_push_lsa_SetSecObj(struct ndr_push *ndr, struct lsa_SetSecObj *r)
162 {
163
164         return NT_STATUS_OK;
165 }
166
167 NTSTATUS ndr_pull_lsa_SetSecObj(struct ndr_pull *ndr, struct lsa_SetSecObj *r)
168 {
169         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
170
171         return NT_STATUS_OK;
172 }
173
174 NTSTATUS ndr_push_lsa_ChangePassword(struct ndr_push *ndr, struct lsa_ChangePassword *r)
175 {
176
177         return NT_STATUS_OK;
178 }
179
180 NTSTATUS ndr_pull_lsa_ChangePassword(struct ndr_pull *ndr, struct lsa_ChangePassword *r)
181 {
182         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
183
184         return NT_STATUS_OK;
185 }
186
187 static NTSTATUS ndr_push_lsa_QosInfo(struct ndr_push *ndr, int ndr_flags, struct lsa_QosInfo *r)
188 {
189         struct ndr_push_save _save1, _save2, _save3;
190         ndr_push_save(ndr, &_save1);
191         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
192         NDR_CHECK(ndr_push_align_uint32(ndr));
193         ndr_push_save(ndr, &_save2);
194         NDR_CHECK(ndr_push_uint32(ndr, 0));
195         NDR_CHECK(ndr_push_uint16(ndr, r->impersonation_level));
196         NDR_CHECK(ndr_push_uint8(ndr, r->context_mode));
197         NDR_CHECK(ndr_push_uint8(ndr, r->effective_only));
198 buffers:
199         if (!(ndr_flags & NDR_BUFFERS)) goto done;
200         ndr_push_save(ndr, &_save3);
201         ndr_push_restore(ndr, &_save2);
202         NDR_CHECK(ndr_push_uint32(ndr, _save3.offset - _save1.offset));
203         ndr_push_restore(ndr, &_save3);
204 done:
205         return NT_STATUS_OK;
206 }
207
208 static NTSTATUS ndr_pull_lsa_QosInfo(struct ndr_pull *ndr, int ndr_flags, struct lsa_QosInfo *r)
209 {
210         uint32 _size;
211         struct ndr_pull_save _save;
212         ndr_pull_save(ndr, &_save);
213         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
214         NDR_CHECK(ndr_pull_uint32(ndr, &_size));
215         NDR_CHECK(ndr_pull_limit_size(ndr, _size, 4));
216         NDR_CHECK(ndr_pull_uint16(ndr, &r->impersonation_level));
217         NDR_CHECK(ndr_pull_uint8(ndr, &r->context_mode));
218         NDR_CHECK(ndr_pull_uint8(ndr, &r->effective_only));
219 buffers:
220         if (!(ndr_flags & NDR_BUFFERS)) goto done;
221         ndr_pull_restore(ndr, &_save);
222         NDR_CHECK(ndr_pull_advance(ndr, _size));
223 done:
224         return NT_STATUS_OK;
225 }
226
227 static NTSTATUS ndr_push_lsa_ObjectAttribute(struct ndr_push *ndr, int ndr_flags, struct lsa_ObjectAttribute *r)
228 {
229         struct ndr_push_save _save1, _save2, _save3;
230         ndr_push_save(ndr, &_save1);
231         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
232         NDR_CHECK(ndr_push_align_uint32(ndr));
233         ndr_push_save(ndr, &_save2);
234         NDR_CHECK(ndr_push_uint32(ndr, 0));
235         NDR_CHECK(ndr_push_ptr(ndr, r->root_dir));
236         NDR_CHECK(ndr_push_ptr(ndr, r->object_name));
237         NDR_CHECK(ndr_push_uint32(ndr, r->attributes));
238         NDR_CHECK(ndr_push_ptr(ndr, r->sec_desc));
239         NDR_CHECK(ndr_push_ptr(ndr, r->sec_qos));
240 buffers:
241         if (!(ndr_flags & NDR_BUFFERS)) goto done;
242         if (r->root_dir) {
243                 NDR_CHECK(ndr_push_uint8(ndr, *r->root_dir));
244         }
245         if (r->object_name) {
246                 NDR_CHECK(ndr_push_unistr(ndr, r->object_name));
247         }
248         if (r->sec_desc) {
249                 NDR_CHECK(ndr_push_security_descriptor(ndr, r->sec_desc));
250         }
251         if (r->sec_qos) {
252                 NDR_CHECK(ndr_push_lsa_QosInfo(ndr, ndr_flags, r->sec_qos));
253         }
254         ndr_push_save(ndr, &_save3);
255         ndr_push_restore(ndr, &_save2);
256         NDR_CHECK(ndr_push_uint32(ndr, _save3.offset - _save1.offset));
257         ndr_push_restore(ndr, &_save3);
258 done:
259         return NT_STATUS_OK;
260 }
261
262 static NTSTATUS ndr_pull_lsa_ObjectAttribute(struct ndr_pull *ndr, int ndr_flags, struct lsa_ObjectAttribute *r)
263 {
264         uint32 _ptr_root_dir;
265         uint32 _ptr_object_name;
266         uint32 _ptr_sec_desc;
267         uint32 _ptr_sec_qos;
268         uint32 _size;
269         struct ndr_pull_save _save;
270         ndr_pull_save(ndr, &_save);
271         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
272         NDR_CHECK(ndr_pull_uint32(ndr, &_size));
273         NDR_CHECK(ndr_pull_limit_size(ndr, _size, 4));
274         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_root_dir));
275         if (_ptr_root_dir) {
276                 NDR_ALLOC(ndr, r->root_dir);
277         } else {
278                 r->root_dir = NULL;
279         }
280         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_object_name));
281         if (_ptr_object_name) {
282                 NDR_ALLOC(ndr, r->object_name);
283         } else {
284                 r->object_name = NULL;
285         }
286         NDR_CHECK(ndr_pull_uint32(ndr, &r->attributes));
287         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_sec_desc));
288         if (_ptr_sec_desc) {
289                 NDR_ALLOC(ndr, r->sec_desc);
290         } else {
291                 r->sec_desc = NULL;
292         }
293         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_sec_qos));
294         if (_ptr_sec_qos) {
295                 NDR_ALLOC(ndr, r->sec_qos);
296         } else {
297                 r->sec_qos = NULL;
298         }
299 buffers:
300         if (!(ndr_flags & NDR_BUFFERS)) goto done;
301         if (r->root_dir) {
302                 NDR_CHECK(ndr_pull_uint8(ndr, r->root_dir));
303         }
304         if (r->object_name) {
305                 NDR_CHECK(ndr_pull_unistr(ndr, &r->object_name));
306         }
307         if (r->sec_desc) {
308                 NDR_CHECK(ndr_pull_security_descriptor(ndr, r->sec_desc));
309         }
310         if (r->sec_qos) {
311                 NDR_CHECK(ndr_pull_lsa_QosInfo(ndr, ndr_flags, r->sec_qos));
312         }
313         ndr_pull_restore(ndr, &_save);
314         NDR_CHECK(ndr_pull_advance(ndr, _size));
315 done:
316         return NT_STATUS_OK;
317 }
318
319 NTSTATUS ndr_push_lsa_OpenPolicy(struct ndr_push *ndr, struct lsa_OpenPolicy *r)
320 {
321         NDR_CHECK(ndr_push_ptr(ndr, r->in.system_name));
322         if (r->in.system_name) {
323                 NDR_CHECK(ndr_push_uint16(ndr, *r->in.system_name));
324         }
325         NDR_CHECK(ndr_push_lsa_ObjectAttribute(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.attr));
326         NDR_CHECK(ndr_push_uint32(ndr, r->in.desired_access));
327
328         return NT_STATUS_OK;
329 }
330
331 NTSTATUS ndr_pull_lsa_OpenPolicy(struct ndr_pull *ndr, struct lsa_OpenPolicy *r)
332 {
333         NDR_CHECK(ndr_pull_policy_handle(ndr, r->out.handle));
334         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
335
336         return NT_STATUS_OK;
337 }
338
339 NTSTATUS ndr_push_lsa_QueryInfoPolicy(struct ndr_push *ndr, struct lsa_QueryInfoPolicy *r)
340 {
341
342         return NT_STATUS_OK;
343 }
344
345 NTSTATUS ndr_pull_lsa_QueryInfoPolicy(struct ndr_pull *ndr, struct lsa_QueryInfoPolicy *r)
346 {
347         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
348
349         return NT_STATUS_OK;
350 }
351
352 NTSTATUS ndr_push_lsa_SetInfoPolicy(struct ndr_push *ndr, struct lsa_SetInfoPolicy *r)
353 {
354
355         return NT_STATUS_OK;
356 }
357
358 NTSTATUS ndr_pull_lsa_SetInfoPolicy(struct ndr_pull *ndr, struct lsa_SetInfoPolicy *r)
359 {
360         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
361
362         return NT_STATUS_OK;
363 }
364
365 NTSTATUS ndr_push_lsa_ClearAuditLog(struct ndr_push *ndr, struct lsa_ClearAuditLog *r)
366 {
367
368         return NT_STATUS_OK;
369 }
370
371 NTSTATUS ndr_pull_lsa_ClearAuditLog(struct ndr_pull *ndr, struct lsa_ClearAuditLog *r)
372 {
373         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
374
375         return NT_STATUS_OK;
376 }
377
378 NTSTATUS ndr_push_lsa_CreateAccount(struct ndr_push *ndr, struct lsa_CreateAccount *r)
379 {
380
381         return NT_STATUS_OK;
382 }
383
384 NTSTATUS ndr_pull_lsa_CreateAccount(struct ndr_pull *ndr, struct lsa_CreateAccount *r)
385 {
386         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
387
388         return NT_STATUS_OK;
389 }
390
391 static NTSTATUS ndr_push_lsa_SidPtr(struct ndr_push *ndr, int ndr_flags, struct lsa_SidPtr *r)
392 {
393         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
394         NDR_CHECK(ndr_push_ptr(ndr, r->sid));
395 buffers:
396         if (!(ndr_flags & NDR_BUFFERS)) goto done;
397         if (r->sid) {
398                 NDR_CHECK(ndr_push_dom_sid2(ndr, r->sid));
399         }
400 done:
401         return NT_STATUS_OK;
402 }
403
404 static NTSTATUS ndr_pull_lsa_SidPtr(struct ndr_pull *ndr, int ndr_flags, struct lsa_SidPtr *r)
405 {
406         uint32 _ptr_sid;
407         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
408         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_sid));
409         if (_ptr_sid) {
410                 NDR_ALLOC(ndr, r->sid);
411         } else {
412                 r->sid = NULL;
413         }
414 buffers:
415         if (!(ndr_flags & NDR_BUFFERS)) goto done;
416         if (r->sid) {
417                 NDR_CHECK(ndr_pull_dom_sid2(ndr, r->sid));
418         }
419 done:
420         return NT_STATUS_OK;
421 }
422
423 static NTSTATUS ndr_push_lsa_SidArray(struct ndr_push *ndr, int ndr_flags, struct lsa_SidArray *r)
424 {
425         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
426         NDR_CHECK(ndr_push_uint32(ndr, r->num_sids));
427         NDR_CHECK(ndr_push_ptr(ndr, r->sids));
428 buffers:
429         if (!(ndr_flags & NDR_BUFFERS)) goto done;
430         if (r->sids) {
431                 NDR_CHECK(ndr_push_array(ndr, ndr_flags, r->sids, sizeof(r->sids[0]), r->num_sids, (ndr_push_flags_fn_t)ndr_push_lsa_SidPtr));
432         }
433 done:
434         return NT_STATUS_OK;
435 }
436
437 static NTSTATUS ndr_pull_lsa_SidArray(struct ndr_pull *ndr, int ndr_flags, struct lsa_SidArray *r)
438 {
439         uint32 _ptr_sids;
440         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
441         NDR_CHECK(ndr_pull_uint32(ndr, &r->num_sids));
442         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_sids));
443         if (_ptr_sids) {
444                 NDR_ALLOC(ndr, r->sids);
445         } else {
446                 r->sids = NULL;
447         }
448 buffers:
449         if (!(ndr_flags & NDR_BUFFERS)) goto done;
450         if (r->sids) {
451                 NDR_ALLOC_N_SIZE(ndr, r->sids, r->num_sids, sizeof(r->sids[0]));
452                 NDR_CHECK(ndr_pull_array(ndr, ndr_flags, (void **)r->sids, sizeof(r->sids[0]), r->num_sids, (ndr_pull_flags_fn_t)ndr_pull_lsa_SidPtr));
453         }
454 done:
455         return NT_STATUS_OK;
456 }
457
458 NTSTATUS ndr_push_lsa_EnumAccounts(struct ndr_push *ndr, struct lsa_EnumAccounts *r)
459 {
460         NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle));
461         NDR_CHECK(ndr_push_uint32(ndr, *r->in.resume_handle));
462         NDR_CHECK(ndr_push_uint32(ndr, r->in.num_entries));
463
464         return NT_STATUS_OK;
465 }
466
467 NTSTATUS ndr_pull_lsa_EnumAccounts(struct ndr_pull *ndr, struct lsa_EnumAccounts *r)
468 {
469         NDR_CHECK(ndr_pull_uint32(ndr, r->out.resume_handle));
470         NDR_CHECK(ndr_pull_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
471         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
472
473         return NT_STATUS_OK;
474 }
475
476 NTSTATUS ndr_push_lsa_CreateTrustDom(struct ndr_push *ndr, struct lsa_CreateTrustDom *r)
477 {
478
479         return NT_STATUS_OK;
480 }
481
482 NTSTATUS ndr_pull_lsa_CreateTrustDom(struct ndr_pull *ndr, struct lsa_CreateTrustDom *r)
483 {
484         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
485
486         return NT_STATUS_OK;
487 }
488
489 static NTSTATUS ndr_push_lsa_TrustInformation(struct ndr_push *ndr, int ndr_flags, struct lsa_TrustInformation *r)
490 {
491         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
492         NDR_CHECK(ndr_push_lsa_Name(ndr, NDR_SCALARS, &r->name));
493         NDR_CHECK(ndr_push_ptr(ndr, r->sid));
494 buffers:
495         if (!(ndr_flags & NDR_BUFFERS)) goto done;
496                 NDR_CHECK(ndr_push_lsa_Name(ndr, ndr_flags, &r->name));
497         if (r->sid) {
498                 NDR_CHECK(ndr_push_dom_sid2(ndr, r->sid));
499         }
500 done:
501         return NT_STATUS_OK;
502 }
503
504 static NTSTATUS ndr_pull_lsa_TrustInformation(struct ndr_pull *ndr, int ndr_flags, struct lsa_TrustInformation *r)
505 {
506         uint32 _ptr_sid;
507         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
508         NDR_CHECK(ndr_pull_lsa_Name(ndr, NDR_SCALARS, &r->name));
509         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_sid));
510         if (_ptr_sid) {
511                 NDR_ALLOC(ndr, r->sid);
512         } else {
513                 r->sid = NULL;
514         }
515 buffers:
516         if (!(ndr_flags & NDR_BUFFERS)) goto done;
517                 NDR_CHECK(ndr_pull_lsa_Name(ndr, ndr_flags, &r->name));
518         if (r->sid) {
519                 NDR_CHECK(ndr_pull_dom_sid2(ndr, r->sid));
520         }
521 done:
522         return NT_STATUS_OK;
523 }
524
525 static NTSTATUS ndr_push_lsa_RefDomainList(struct ndr_push *ndr, int ndr_flags, struct lsa_RefDomainList *r)
526 {
527         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
528         NDR_CHECK(ndr_push_uint32(ndr, r->count));
529         NDR_CHECK(ndr_push_ptr(ndr, r->domains));
530         NDR_CHECK(ndr_push_uint32(ndr, r->max_count));
531 buffers:
532         if (!(ndr_flags & NDR_BUFFERS)) goto done;
533         if (r->domains) {
534                 NDR_CHECK(ndr_push_array(ndr, ndr_flags, r->domains, sizeof(r->domains[0]), r->count, (ndr_push_flags_fn_t)ndr_push_lsa_TrustInformation));
535         }
536 done:
537         return NT_STATUS_OK;
538 }
539
540 static NTSTATUS ndr_pull_lsa_RefDomainList(struct ndr_pull *ndr, int ndr_flags, struct lsa_RefDomainList *r)
541 {
542         uint32 _ptr_domains;
543         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
544         NDR_CHECK(ndr_pull_uint32(ndr, &r->count));
545         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_domains));
546         if (_ptr_domains) {
547                 NDR_ALLOC(ndr, r->domains);
548         } else {
549                 r->domains = NULL;
550         }
551         NDR_CHECK(ndr_pull_uint32(ndr, &r->max_count));
552 buffers:
553         if (!(ndr_flags & NDR_BUFFERS)) goto done;
554         if (r->domains) {
555                 NDR_ALLOC_N_SIZE(ndr, r->domains, r->count, sizeof(r->domains[0]));
556                 NDR_CHECK(ndr_pull_array(ndr, ndr_flags, (void **)r->domains, sizeof(r->domains[0]), r->count, (ndr_pull_flags_fn_t)ndr_pull_lsa_TrustInformation));
557         }
558 done:
559         return NT_STATUS_OK;
560 }
561
562 NTSTATUS ndr_push_lsa_EnumTrustDom(struct ndr_push *ndr, struct lsa_EnumTrustDom *r)
563 {
564         NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle));
565         NDR_CHECK(ndr_push_uint32(ndr, *r->in.resume_handle));
566         NDR_CHECK(ndr_push_uint32(ndr, r->in.num_entries));
567
568         return NT_STATUS_OK;
569 }
570
571 NTSTATUS ndr_pull_lsa_EnumTrustDom(struct ndr_pull *ndr, struct lsa_EnumTrustDom *r)
572 {
573         uint32 _ptr_domains;
574         NDR_CHECK(ndr_pull_uint32(ndr, r->out.resume_handle));
575         NDR_ALLOC(ndr, r->out.domains);
576         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_domains));
577         if (_ptr_domains) {
578                 NDR_ALLOC(ndr, r->out.domains);
579         } else {
580                 r->out.domains = NULL;
581         }
582         if (r->out.domains) {
583                 NDR_CHECK(ndr_pull_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.domains));
584         }
585         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
586
587         return NT_STATUS_OK;
588 }
589
590 static NTSTATUS ndr_push_lsa_TranslatedSid(struct ndr_push *ndr, int ndr_flags, struct lsa_TranslatedSid *r)
591 {
592         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
593         NDR_CHECK(ndr_push_uint16(ndr, r->sid_type));
594         NDR_CHECK(ndr_push_uint32(ndr, r->rid));
595         NDR_CHECK(ndr_push_uint32(ndr, r->sid_index));
596 buffers:
597         if (!(ndr_flags & NDR_BUFFERS)) goto done;
598 done:
599         return NT_STATUS_OK;
600 }
601
602 static NTSTATUS ndr_pull_lsa_TranslatedSid(struct ndr_pull *ndr, int ndr_flags, struct lsa_TranslatedSid *r)
603 {
604         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
605         NDR_CHECK(ndr_pull_uint16(ndr, &r->sid_type));
606         NDR_CHECK(ndr_pull_uint32(ndr, &r->rid));
607         NDR_CHECK(ndr_pull_uint32(ndr, &r->sid_index));
608 buffers:
609         if (!(ndr_flags & NDR_BUFFERS)) goto done;
610 done:
611         return NT_STATUS_OK;
612 }
613
614 static NTSTATUS ndr_push_lsa_TransSidArray(struct ndr_push *ndr, int ndr_flags, struct lsa_TransSidArray *r)
615 {
616         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
617         NDR_CHECK(ndr_push_uint32(ndr, r->count));
618         NDR_CHECK(ndr_push_ptr(ndr, r->sids));
619 buffers:
620         if (!(ndr_flags & NDR_BUFFERS)) goto done;
621         if (r->sids) {
622                 NDR_CHECK(ndr_push_array(ndr, ndr_flags, r->sids, sizeof(r->sids[0]), r->count, (ndr_push_flags_fn_t)ndr_push_lsa_TranslatedSid));
623         }
624 done:
625         return NT_STATUS_OK;
626 }
627
628 static NTSTATUS ndr_pull_lsa_TransSidArray(struct ndr_pull *ndr, int ndr_flags, struct lsa_TransSidArray *r)
629 {
630         uint32 _ptr_sids;
631         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
632         NDR_CHECK(ndr_pull_uint32(ndr, &r->count));
633         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_sids));
634         if (_ptr_sids) {
635                 NDR_ALLOC(ndr, r->sids);
636         } else {
637                 r->sids = NULL;
638         }
639 buffers:
640         if (!(ndr_flags & NDR_BUFFERS)) goto done;
641         if (r->sids) {
642                 NDR_ALLOC_N_SIZE(ndr, r->sids, r->count, sizeof(r->sids[0]));
643                 NDR_CHECK(ndr_pull_array(ndr, ndr_flags, (void **)r->sids, sizeof(r->sids[0]), r->count, (ndr_pull_flags_fn_t)ndr_pull_lsa_TranslatedSid));
644         }
645 done:
646         return NT_STATUS_OK;
647 }
648
649 NTSTATUS ndr_push_lsa_LookupNames(struct ndr_push *ndr, struct lsa_LookupNames *r)
650 {
651         NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle));
652         NDR_CHECK(ndr_push_uint32(ndr, r->in.num_names));
653         if (r->in.names) {
654                 int ndr_flags = NDR_SCALARS|NDR_BUFFERS;
655                 NDR_CHECK(ndr_push_array(ndr, ndr_flags, r->in.names, sizeof(r->in.names[0]), r->in.num_names, (ndr_push_flags_fn_t)ndr_push_lsa_Name));
656         }
657         NDR_CHECK(ndr_push_lsa_TransSidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
658         NDR_CHECK(ndr_push_uint16(ndr, r->in.level));
659         NDR_CHECK(ndr_push_uint32(ndr, *r->in.count));
660
661         return NT_STATUS_OK;
662 }
663
664 NTSTATUS ndr_pull_lsa_LookupNames(struct ndr_pull *ndr, struct lsa_LookupNames *r)
665 {
666         uint32 _ptr_domains;
667         NDR_ALLOC(ndr, r->out.domains);
668         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_domains));
669         if (_ptr_domains) {
670                 NDR_ALLOC(ndr, r->out.domains);
671         } else {
672                 r->out.domains = NULL;
673         }
674         if (r->out.domains) {
675                 NDR_CHECK(ndr_pull_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.domains));
676         }
677         NDR_CHECK(ndr_pull_lsa_TransSidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
678         NDR_CHECK(ndr_pull_uint32(ndr, r->out.count));
679         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
680
681         return NT_STATUS_OK;
682 }
683
684 static NTSTATUS ndr_push_lsa_TranslatedName(struct ndr_push *ndr, int ndr_flags, struct lsa_TranslatedName *r)
685 {
686         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
687         NDR_CHECK(ndr_push_uint16(ndr, r->sid_type));
688         NDR_CHECK(ndr_push_lsa_Name(ndr, NDR_SCALARS, &r->name));
689         NDR_CHECK(ndr_push_uint32(ndr, r->sid_index));
690 buffers:
691         if (!(ndr_flags & NDR_BUFFERS)) goto done;
692                 NDR_CHECK(ndr_push_lsa_Name(ndr, ndr_flags, &r->name));
693 done:
694         return NT_STATUS_OK;
695 }
696
697 static NTSTATUS ndr_pull_lsa_TranslatedName(struct ndr_pull *ndr, int ndr_flags, struct lsa_TranslatedName *r)
698 {
699         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
700         NDR_CHECK(ndr_pull_uint16(ndr, &r->sid_type));
701         NDR_CHECK(ndr_pull_lsa_Name(ndr, NDR_SCALARS, &r->name));
702         NDR_CHECK(ndr_pull_uint32(ndr, &r->sid_index));
703 buffers:
704         if (!(ndr_flags & NDR_BUFFERS)) goto done;
705                 NDR_CHECK(ndr_pull_lsa_Name(ndr, ndr_flags, &r->name));
706 done:
707         return NT_STATUS_OK;
708 }
709
710 static NTSTATUS ndr_push_lsa_TransNameArray(struct ndr_push *ndr, int ndr_flags, struct lsa_TransNameArray *r)
711 {
712         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
713         NDR_CHECK(ndr_push_uint32(ndr, r->count));
714         NDR_CHECK(ndr_push_ptr(ndr, r->names));
715 buffers:
716         if (!(ndr_flags & NDR_BUFFERS)) goto done;
717         if (r->names) {
718                 NDR_CHECK(ndr_push_array(ndr, ndr_flags, r->names, sizeof(r->names[0]), r->count, (ndr_push_flags_fn_t)ndr_push_lsa_TranslatedName));
719         }
720 done:
721         return NT_STATUS_OK;
722 }
723
724 static NTSTATUS ndr_pull_lsa_TransNameArray(struct ndr_pull *ndr, int ndr_flags, struct lsa_TransNameArray *r)
725 {
726         uint32 _ptr_names;
727         if (!(ndr_flags & NDR_SCALARS)) goto buffers;
728         NDR_CHECK(ndr_pull_uint32(ndr, &r->count));
729         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_names));
730         if (_ptr_names) {
731                 NDR_ALLOC(ndr, r->names);
732         } else {
733                 r->names = NULL;
734         }
735 buffers:
736         if (!(ndr_flags & NDR_BUFFERS)) goto done;
737         if (r->names) {
738                 NDR_ALLOC_N_SIZE(ndr, r->names, r->count, sizeof(r->names[0]));
739                 NDR_CHECK(ndr_pull_array(ndr, ndr_flags, (void **)r->names, sizeof(r->names[0]), r->count, (ndr_pull_flags_fn_t)ndr_pull_lsa_TranslatedName));
740         }
741 done:
742         return NT_STATUS_OK;
743 }
744
745 NTSTATUS ndr_push_lsa_LookupSids(struct ndr_push *ndr, struct lsa_LookupSids *r)
746 {
747         NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle));
748         NDR_CHECK(ndr_push_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
749         NDR_CHECK(ndr_push_lsa_TransNameArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.names));
750         NDR_CHECK(ndr_push_uint16(ndr, r->in.level));
751         NDR_CHECK(ndr_push_uint32(ndr, *r->in.count));
752
753         return NT_STATUS_OK;
754 }
755
756 NTSTATUS ndr_pull_lsa_LookupSids(struct ndr_pull *ndr, struct lsa_LookupSids *r)
757 {
758         uint32 _ptr_domains;
759         NDR_ALLOC(ndr, r->out.domains);
760         NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_domains));
761         if (_ptr_domains) {
762                 NDR_ALLOC(ndr, r->out.domains);
763         } else {
764                 r->out.domains = NULL;
765         }
766         if (r->out.domains) {
767                 NDR_CHECK(ndr_pull_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.domains));
768         }
769         NDR_CHECK(ndr_pull_lsa_TransNameArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.names));
770         NDR_CHECK(ndr_pull_uint32(ndr, r->out.count));
771         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
772
773         return NT_STATUS_OK;
774 }
775
776 NTSTATUS ndr_push_CREATESECRET(struct ndr_push *ndr, struct CREATESECRET *r)
777 {
778
779         return NT_STATUS_OK;
780 }
781
782 NTSTATUS ndr_pull_CREATESECRET(struct ndr_pull *ndr, struct CREATESECRET *r)
783 {
784         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
785
786         return NT_STATUS_OK;
787 }
788
789 NTSTATUS ndr_push_OPENACCOUNT(struct ndr_push *ndr, struct OPENACCOUNT *r)
790 {
791
792         return NT_STATUS_OK;
793 }
794
795 NTSTATUS ndr_pull_OPENACCOUNT(struct ndr_pull *ndr, struct OPENACCOUNT *r)
796 {
797         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
798
799         return NT_STATUS_OK;
800 }
801
802 NTSTATUS ndr_push_ENUMPRIVSACCOUNT(struct ndr_push *ndr, struct ENUMPRIVSACCOUNT *r)
803 {
804
805         return NT_STATUS_OK;
806 }
807
808 NTSTATUS ndr_pull_ENUMPRIVSACCOUNT(struct ndr_pull *ndr, struct ENUMPRIVSACCOUNT *r)
809 {
810         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
811
812         return NT_STATUS_OK;
813 }
814
815 NTSTATUS ndr_push_ADDPRIVS(struct ndr_push *ndr, struct ADDPRIVS *r)
816 {
817
818         return NT_STATUS_OK;
819 }
820
821 NTSTATUS ndr_pull_ADDPRIVS(struct ndr_pull *ndr, struct ADDPRIVS *r)
822 {
823         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
824
825         return NT_STATUS_OK;
826 }
827
828 NTSTATUS ndr_push_REMOVEPRIVS(struct ndr_push *ndr, struct REMOVEPRIVS *r)
829 {
830
831         return NT_STATUS_OK;
832 }
833
834 NTSTATUS ndr_pull_REMOVEPRIVS(struct ndr_pull *ndr, struct REMOVEPRIVS *r)
835 {
836         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
837
838         return NT_STATUS_OK;
839 }
840
841 NTSTATUS ndr_push_GETQUOTAS(struct ndr_push *ndr, struct GETQUOTAS *r)
842 {
843
844         return NT_STATUS_OK;
845 }
846
847 NTSTATUS ndr_pull_GETQUOTAS(struct ndr_pull *ndr, struct GETQUOTAS *r)
848 {
849         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
850
851         return NT_STATUS_OK;
852 }
853
854 NTSTATUS ndr_push_SETQUOTAS(struct ndr_push *ndr, struct SETQUOTAS *r)
855 {
856
857         return NT_STATUS_OK;
858 }
859
860 NTSTATUS ndr_pull_SETQUOTAS(struct ndr_pull *ndr, struct SETQUOTAS *r)
861 {
862         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
863
864         return NT_STATUS_OK;
865 }
866
867 NTSTATUS ndr_push_GETSYSTEMACCOUNT(struct ndr_push *ndr, struct GETSYSTEMACCOUNT *r)
868 {
869
870         return NT_STATUS_OK;
871 }
872
873 NTSTATUS ndr_pull_GETSYSTEMACCOUNT(struct ndr_pull *ndr, struct GETSYSTEMACCOUNT *r)
874 {
875         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
876
877         return NT_STATUS_OK;
878 }
879
880 NTSTATUS ndr_push_SETSYSTEMACCOUNT(struct ndr_push *ndr, struct SETSYSTEMACCOUNT *r)
881 {
882
883         return NT_STATUS_OK;
884 }
885
886 NTSTATUS ndr_pull_SETSYSTEMACCOUNT(struct ndr_pull *ndr, struct SETSYSTEMACCOUNT *r)
887 {
888         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
889
890         return NT_STATUS_OK;
891 }
892
893 NTSTATUS ndr_push_OPENTRUSTDOM(struct ndr_push *ndr, struct OPENTRUSTDOM *r)
894 {
895
896         return NT_STATUS_OK;
897 }
898
899 NTSTATUS ndr_pull_OPENTRUSTDOM(struct ndr_pull *ndr, struct OPENTRUSTDOM *r)
900 {
901         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
902
903         return NT_STATUS_OK;
904 }
905
906 NTSTATUS ndr_push_QUERYTRUSTDOM(struct ndr_push *ndr, struct QUERYTRUSTDOM *r)
907 {
908
909         return NT_STATUS_OK;
910 }
911
912 NTSTATUS ndr_pull_QUERYTRUSTDOM(struct ndr_pull *ndr, struct QUERYTRUSTDOM *r)
913 {
914         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
915
916         return NT_STATUS_OK;
917 }
918
919 NTSTATUS ndr_push_SETINFOTRUSTDOM(struct ndr_push *ndr, struct SETINFOTRUSTDOM *r)
920 {
921
922         return NT_STATUS_OK;
923 }
924
925 NTSTATUS ndr_pull_SETINFOTRUSTDOM(struct ndr_pull *ndr, struct SETINFOTRUSTDOM *r)
926 {
927         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
928
929         return NT_STATUS_OK;
930 }
931
932 NTSTATUS ndr_push_OPENSECRET(struct ndr_push *ndr, struct OPENSECRET *r)
933 {
934
935         return NT_STATUS_OK;
936 }
937
938 NTSTATUS ndr_pull_OPENSECRET(struct ndr_pull *ndr, struct OPENSECRET *r)
939 {
940         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
941
942         return NT_STATUS_OK;
943 }
944
945 NTSTATUS ndr_push_SETSECRET(struct ndr_push *ndr, struct SETSECRET *r)
946 {
947
948         return NT_STATUS_OK;
949 }
950
951 NTSTATUS ndr_pull_SETSECRET(struct ndr_pull *ndr, struct SETSECRET *r)
952 {
953         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
954
955         return NT_STATUS_OK;
956 }
957
958 NTSTATUS ndr_push_QUERYSECRET(struct ndr_push *ndr, struct QUERYSECRET *r)
959 {
960
961         return NT_STATUS_OK;
962 }
963
964 NTSTATUS ndr_pull_QUERYSECRET(struct ndr_pull *ndr, struct QUERYSECRET *r)
965 {
966         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
967
968         return NT_STATUS_OK;
969 }
970
971 NTSTATUS ndr_push_LOOKUPPRIVVALUE(struct ndr_push *ndr, struct LOOKUPPRIVVALUE *r)
972 {
973
974         return NT_STATUS_OK;
975 }
976
977 NTSTATUS ndr_pull_LOOKUPPRIVVALUE(struct ndr_pull *ndr, struct LOOKUPPRIVVALUE *r)
978 {
979         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
980
981         return NT_STATUS_OK;
982 }
983
984 NTSTATUS ndr_push_LOOKUPPRIVNAME(struct ndr_push *ndr, struct LOOKUPPRIVNAME *r)
985 {
986
987         return NT_STATUS_OK;
988 }
989
990 NTSTATUS ndr_pull_LOOKUPPRIVNAME(struct ndr_pull *ndr, struct LOOKUPPRIVNAME *r)
991 {
992         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
993
994         return NT_STATUS_OK;
995 }
996
997 NTSTATUS ndr_push_PRIV_GET_DISPNAME(struct ndr_push *ndr, struct PRIV_GET_DISPNAME *r)
998 {
999
1000         return NT_STATUS_OK;
1001 }
1002
1003 NTSTATUS ndr_pull_PRIV_GET_DISPNAME(struct ndr_pull *ndr, struct PRIV_GET_DISPNAME *r)
1004 {
1005         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1006
1007         return NT_STATUS_OK;
1008 }
1009
1010 NTSTATUS ndr_push_DELETEOBJECT(struct ndr_push *ndr, struct DELETEOBJECT *r)
1011 {
1012
1013         return NT_STATUS_OK;
1014 }
1015
1016 NTSTATUS ndr_pull_DELETEOBJECT(struct ndr_pull *ndr, struct DELETEOBJECT *r)
1017 {
1018         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1019
1020         return NT_STATUS_OK;
1021 }
1022
1023 NTSTATUS ndr_push_ENUMACCTWITHRIGHT(struct ndr_push *ndr, struct ENUMACCTWITHRIGHT *r)
1024 {
1025
1026         return NT_STATUS_OK;
1027 }
1028
1029 NTSTATUS ndr_pull_ENUMACCTWITHRIGHT(struct ndr_pull *ndr, struct ENUMACCTWITHRIGHT *r)
1030 {
1031         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1032
1033         return NT_STATUS_OK;
1034 }
1035
1036 NTSTATUS ndr_push_ENUMACCTRIGHTS(struct ndr_push *ndr, struct ENUMACCTRIGHTS *r)
1037 {
1038
1039         return NT_STATUS_OK;
1040 }
1041
1042 NTSTATUS ndr_pull_ENUMACCTRIGHTS(struct ndr_pull *ndr, struct ENUMACCTRIGHTS *r)
1043 {
1044         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1045
1046         return NT_STATUS_OK;
1047 }
1048
1049 NTSTATUS ndr_push_ADDACCTRIGHTS(struct ndr_push *ndr, struct ADDACCTRIGHTS *r)
1050 {
1051
1052         return NT_STATUS_OK;
1053 }
1054
1055 NTSTATUS ndr_pull_ADDACCTRIGHTS(struct ndr_pull *ndr, struct ADDACCTRIGHTS *r)
1056 {
1057         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1058
1059         return NT_STATUS_OK;
1060 }
1061
1062 NTSTATUS ndr_push_REMOVEACCTRIGHTS(struct ndr_push *ndr, struct REMOVEACCTRIGHTS *r)
1063 {
1064
1065         return NT_STATUS_OK;
1066 }
1067
1068 NTSTATUS ndr_pull_REMOVEACCTRIGHTS(struct ndr_pull *ndr, struct REMOVEACCTRIGHTS *r)
1069 {
1070         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1071
1072         return NT_STATUS_OK;
1073 }
1074
1075 NTSTATUS ndr_push_QUERYTRUSTDOMINFO(struct ndr_push *ndr, struct QUERYTRUSTDOMINFO *r)
1076 {
1077
1078         return NT_STATUS_OK;
1079 }
1080
1081 NTSTATUS ndr_pull_QUERYTRUSTDOMINFO(struct ndr_pull *ndr, struct QUERYTRUSTDOMINFO *r)
1082 {
1083         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1084
1085         return NT_STATUS_OK;
1086 }
1087
1088 NTSTATUS ndr_push_SETTRUSTDOMINFO(struct ndr_push *ndr, struct SETTRUSTDOMINFO *r)
1089 {
1090
1091         return NT_STATUS_OK;
1092 }
1093
1094 NTSTATUS ndr_pull_SETTRUSTDOMINFO(struct ndr_pull *ndr, struct SETTRUSTDOMINFO *r)
1095 {
1096         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1097
1098         return NT_STATUS_OK;
1099 }
1100
1101 NTSTATUS ndr_push_DELETETRUSTDOM(struct ndr_push *ndr, struct DELETETRUSTDOM *r)
1102 {
1103
1104         return NT_STATUS_OK;
1105 }
1106
1107 NTSTATUS ndr_pull_DELETETRUSTDOM(struct ndr_pull *ndr, struct DELETETRUSTDOM *r)
1108 {
1109         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1110
1111         return NT_STATUS_OK;
1112 }
1113
1114 NTSTATUS ndr_push_STOREPRIVDATA(struct ndr_push *ndr, struct STOREPRIVDATA *r)
1115 {
1116
1117         return NT_STATUS_OK;
1118 }
1119
1120 NTSTATUS ndr_pull_STOREPRIVDATA(struct ndr_pull *ndr, struct STOREPRIVDATA *r)
1121 {
1122         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1123
1124         return NT_STATUS_OK;
1125 }
1126
1127 NTSTATUS ndr_push_RETRPRIVDATA(struct ndr_push *ndr, struct RETRPRIVDATA *r)
1128 {
1129
1130         return NT_STATUS_OK;
1131 }
1132
1133 NTSTATUS ndr_pull_RETRPRIVDATA(struct ndr_pull *ndr, struct RETRPRIVDATA *r)
1134 {
1135         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1136
1137         return NT_STATUS_OK;
1138 }
1139
1140 NTSTATUS ndr_push_lsa_OpenPolicy2(struct ndr_push *ndr, struct lsa_OpenPolicy2 *r)
1141 {
1142         NDR_CHECK(ndr_push_ptr(ndr, r->in.system_name));
1143         if (r->in.system_name) {
1144                 NDR_CHECK(ndr_push_unistr(ndr, r->in.system_name));
1145         }
1146         NDR_CHECK(ndr_push_lsa_ObjectAttribute(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.attr));
1147         NDR_CHECK(ndr_push_uint32(ndr, r->in.desired_access));
1148
1149         return NT_STATUS_OK;
1150 }
1151
1152 NTSTATUS ndr_pull_lsa_OpenPolicy2(struct ndr_pull *ndr, struct lsa_OpenPolicy2 *r)
1153 {
1154         NDR_CHECK(ndr_pull_policy_handle(ndr, r->out.handle));
1155         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1156
1157         return NT_STATUS_OK;
1158 }
1159
1160 NTSTATUS ndr_push_UNK_GET_CONNUSER(struct ndr_push *ndr, struct UNK_GET_CONNUSER *r)
1161 {
1162
1163         return NT_STATUS_OK;
1164 }
1165
1166 NTSTATUS ndr_pull_UNK_GET_CONNUSER(struct ndr_pull *ndr, struct UNK_GET_CONNUSER *r)
1167 {
1168         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1169
1170         return NT_STATUS_OK;
1171 }
1172
1173 NTSTATUS ndr_push_QUERYINFO2(struct ndr_push *ndr, struct QUERYINFO2 *r)
1174 {
1175
1176         return NT_STATUS_OK;
1177 }
1178
1179 NTSTATUS ndr_pull_QUERYINFO2(struct ndr_pull *ndr, struct QUERYINFO2 *r)
1180 {
1181         NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result));
1182
1183         return NT_STATUS_OK;
1184 }
1185