Line data Source code
1 : /* parser auto-generated by pidl */
2 :
3 : #include "includes.h"
4 : #include "bin/default/librpc/gen_ndr/ndr_lsa.h"
5 :
6 : #include "librpc/gen_ndr/ndr_misc.h"
7 : #include "librpc/gen_ndr/ndr_security.h"
8 1842364 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_String(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_String *r)
9 : {
10 1842364 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
11 1842364 : if (ndr_flags & NDR_SCALARS) {
12 932007 : NDR_CHECK(ndr_push_align(ndr, 5));
13 932007 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, 2 * strlen_m(r->string)));
14 932007 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, 2 * strlen_m(r->string)));
15 932007 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->string));
16 932007 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
17 : }
18 1842364 : if (ndr_flags & NDR_BUFFERS) {
19 932007 : if (r->string) {
20 898261 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 2 * strlen_m(r->string) / 2));
21 898261 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
22 898261 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 2 * strlen_m(r->string) / 2));
23 898261 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->string, 2 * strlen_m(r->string) / 2, sizeof(uint16_t), CH_UTF16));
24 : }
25 : }
26 1741902 : return NDR_ERR_SUCCESS;
27 : }
28 :
29 3155155 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_String(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_String *r)
30 : {
31 91417 : uint32_t _ptr_string;
32 3155155 : uint32_t size_string_1 = 0;
33 3155155 : uint32_t length_string_1 = 0;
34 3155155 : TALLOC_CTX *_mem_save_string_0 = NULL;
35 3155155 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
36 3155155 : if (ndr_flags & NDR_SCALARS) {
37 1587563 : NDR_CHECK(ndr_pull_align(ndr, 5));
38 1587563 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->length));
39 1587563 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->size));
40 1587563 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_string));
41 1587563 : if (_ptr_string) {
42 1555185 : NDR_PULL_ALLOC(ndr, r->string);
43 : } else {
44 32378 : r->string = NULL;
45 : }
46 1587563 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
47 : }
48 3155155 : if (ndr_flags & NDR_BUFFERS) {
49 1587563 : if (r->string) {
50 1555185 : _mem_save_string_0 = NDR_PULL_GET_MEM_CTX(ndr);
51 1555185 : NDR_PULL_SET_MEM_CTX(ndr, r->string, 0);
52 1555185 : NDR_CHECK(ndr_pull_array_size(ndr, &r->string));
53 1555185 : NDR_CHECK(ndr_pull_array_length(ndr, &r->string));
54 1555185 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->string, &size_string_1));
55 1555185 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->string, &length_string_1));
56 1555185 : if (length_string_1 > size_string_1) {
57 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_string_1, length_string_1);
58 : }
59 1555185 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->string, length_string_1, sizeof(uint16_t), CH_UTF16));
60 1555185 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_string_0, 0);
61 : }
62 1587563 : if (r->string) {
63 1555185 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->string, r->size / 2));
64 : }
65 1587563 : if (r->string) {
66 1555185 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->string, r->length / 2));
67 : }
68 : }
69 3063738 : return NDR_ERR_SUCCESS;
70 : }
71 :
72 0 : static void ndr_print_flags_lsa_String(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_String *r)
73 : {
74 0 : ndr_print_lsa_String(ndr, name, r);
75 0 : }
76 :
77 42229 : _PUBLIC_ void ndr_print_lsa_String(struct ndr_print *ndr, const char *name, const struct lsa_String *r)
78 : {
79 42229 : ndr_print_struct(ndr, name, "lsa_String");
80 42229 : if (r == NULL) { ndr_print_null(ndr); return; }
81 42229 : ndr->depth++;
82 42229 : ndr_print_uint16(ndr, "length", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?2 * strlen_m(r->string):r->length);
83 42229 : ndr_print_uint16(ndr, "size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?2 * strlen_m(r->string):r->size);
84 42229 : ndr_print_ptr(ndr, "string", r->string);
85 42229 : ndr->depth++;
86 42229 : if (r->string) {
87 41543 : ndr_print_string(ndr, "string", r->string);
88 : }
89 42229 : ndr->depth--;
90 42229 : ndr->depth--;
91 : }
92 :
93 504671 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_StringLarge(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_StringLarge *r)
94 : {
95 504671 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
96 504671 : if (ndr_flags & NDR_SCALARS) {
97 252514 : NDR_CHECK(ndr_push_align(ndr, 5));
98 252514 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, 2 * strlen_m(r->string)));
99 252514 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, 2 * strlen_m_term(r->string)));
100 252514 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->string));
101 252514 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
102 : }
103 504671 : if (ndr_flags & NDR_BUFFERS) {
104 252514 : if (r->string) {
105 250111 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 2 * strlen_m_term(r->string) / 2));
106 250111 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
107 250111 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 2 * strlen_m(r->string) / 2));
108 250111 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->string, 2 * strlen_m(r->string) / 2, sizeof(uint16_t), CH_UTF16));
109 : }
110 : }
111 483169 : return NDR_ERR_SUCCESS;
112 : }
113 :
114 953742 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_StringLarge(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_StringLarge *r)
115 : {
116 19014 : uint32_t _ptr_string;
117 953742 : uint32_t size_string_1 = 0;
118 953742 : uint32_t length_string_1 = 0;
119 953742 : TALLOC_CTX *_mem_save_string_0 = NULL;
120 953742 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
121 953742 : if (ndr_flags & NDR_SCALARS) {
122 477064 : NDR_CHECK(ndr_pull_align(ndr, 5));
123 477064 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->length));
124 477064 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->size));
125 477064 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_string));
126 477064 : if (_ptr_string) {
127 474541 : NDR_PULL_ALLOC(ndr, r->string);
128 : } else {
129 2523 : r->string = NULL;
130 : }
131 477064 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
132 : }
133 953742 : if (ndr_flags & NDR_BUFFERS) {
134 477064 : if (r->string) {
135 474541 : _mem_save_string_0 = NDR_PULL_GET_MEM_CTX(ndr);
136 474541 : NDR_PULL_SET_MEM_CTX(ndr, r->string, 0);
137 474541 : NDR_CHECK(ndr_pull_array_size(ndr, &r->string));
138 474541 : NDR_CHECK(ndr_pull_array_length(ndr, &r->string));
139 474541 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->string, &size_string_1));
140 474541 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->string, &length_string_1));
141 474541 : if (length_string_1 > size_string_1) {
142 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_string_1, length_string_1);
143 : }
144 474541 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->string, length_string_1, sizeof(uint16_t), CH_UTF16));
145 474541 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_string_0, 0);
146 : }
147 477064 : if (r->string) {
148 474541 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->string, r->size / 2));
149 : }
150 477064 : if (r->string) {
151 474541 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->string, r->length / 2));
152 : }
153 : }
154 934728 : return NDR_ERR_SUCCESS;
155 : }
156 :
157 0 : static void ndr_print_flags_lsa_StringLarge(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_StringLarge *r)
158 : {
159 0 : ndr_print_lsa_StringLarge(ndr, name, r);
160 0 : }
161 :
162 14923 : _PUBLIC_ void ndr_print_lsa_StringLarge(struct ndr_print *ndr, const char *name, const struct lsa_StringLarge *r)
163 : {
164 14923 : ndr_print_struct(ndr, name, "lsa_StringLarge");
165 14923 : if (r == NULL) { ndr_print_null(ndr); return; }
166 14923 : ndr->depth++;
167 14923 : ndr_print_uint16(ndr, "length", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?2 * strlen_m(r->string):r->length);
168 14923 : ndr_print_uint16(ndr, "size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?2 * strlen_m_term(r->string):r->size);
169 14923 : ndr_print_ptr(ndr, "string", r->string);
170 14923 : ndr->depth++;
171 14923 : if (r->string) {
172 14005 : ndr_print_string(ndr, "string", r->string);
173 : }
174 14923 : ndr->depth--;
175 14923 : ndr->depth--;
176 : }
177 :
178 1579 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_Strings(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_Strings *r)
179 : {
180 0 : uint32_t cntr_names_1;
181 1579 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
182 1579 : if (ndr_flags & NDR_SCALARS) {
183 1579 : NDR_CHECK(ndr_push_align(ndr, 5));
184 1579 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
185 1579 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->names));
186 1579 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
187 : }
188 1579 : if (ndr_flags & NDR_BUFFERS) {
189 1579 : if (r->names) {
190 1572 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
191 6099 : for (cntr_names_1 = 0; cntr_names_1 < (r->count); cntr_names_1++) {
192 4527 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS, &r->names[cntr_names_1]));
193 : }
194 6099 : for (cntr_names_1 = 0; cntr_names_1 < (r->count); cntr_names_1++) {
195 4527 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_BUFFERS, &r->names[cntr_names_1]));
196 : }
197 : }
198 : }
199 1579 : return NDR_ERR_SUCCESS;
200 : }
201 :
202 1063 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_Strings(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_Strings *r)
203 : {
204 0 : uint32_t _ptr_names;
205 1063 : uint32_t size_names_1 = 0;
206 0 : uint32_t cntr_names_1;
207 1063 : TALLOC_CTX *_mem_save_names_0 = NULL;
208 1063 : TALLOC_CTX *_mem_save_names_1 = NULL;
209 1063 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
210 1063 : if (ndr_flags & NDR_SCALARS) {
211 1063 : NDR_CHECK(ndr_pull_align(ndr, 5));
212 1063 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
213 1063 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_names));
214 1063 : if (_ptr_names) {
215 1054 : NDR_PULL_ALLOC(ndr, r->names);
216 : } else {
217 9 : r->names = NULL;
218 : }
219 1063 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
220 : }
221 1063 : if (ndr_flags & NDR_BUFFERS) {
222 1063 : if (r->names) {
223 1054 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
224 1054 : NDR_PULL_SET_MEM_CTX(ndr, r->names, 0);
225 1054 : NDR_CHECK(ndr_pull_array_size(ndr, &r->names));
226 1054 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->names, &size_names_1));
227 1054 : NDR_PULL_ALLOC_N(ndr, r->names, size_names_1);
228 1054 : _mem_save_names_1 = NDR_PULL_GET_MEM_CTX(ndr);
229 1054 : NDR_PULL_SET_MEM_CTX(ndr, r->names, 0);
230 2145 : for (cntr_names_1 = 0; cntr_names_1 < (size_names_1); cntr_names_1++) {
231 1091 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS, &r->names[cntr_names_1]));
232 : }
233 2145 : for (cntr_names_1 = 0; cntr_names_1 < (size_names_1); cntr_names_1++) {
234 1091 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_BUFFERS, &r->names[cntr_names_1]));
235 : }
236 1054 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_1, 0);
237 1054 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, 0);
238 : }
239 1063 : if (r->names) {
240 1054 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->names, r->count));
241 : }
242 2154 : for (cntr_names_1 = 0; cntr_names_1 < (size_names_1); cntr_names_1++) {
243 0 : }
244 : }
245 1063 : return NDR_ERR_SUCCESS;
246 : }
247 :
248 0 : static void ndr_print_flags_lsa_Strings(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_Strings *r)
249 : {
250 0 : ndr_print_lsa_Strings(ndr, name, r);
251 0 : }
252 :
253 60 : _PUBLIC_ void ndr_print_lsa_Strings(struct ndr_print *ndr, const char *name, const struct lsa_Strings *r)
254 : {
255 0 : uint32_t cntr_names_1;
256 60 : ndr_print_struct(ndr, name, "lsa_Strings");
257 60 : if (r == NULL) { ndr_print_null(ndr); return; }
258 60 : ndr->depth++;
259 60 : ndr_print_uint32(ndr, "count", r->count);
260 60 : ndr_print_ptr(ndr, "names", r->names);
261 60 : ndr->depth++;
262 60 : if (r->names) {
263 60 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "names", (uint32_t)(r->count));
264 60 : ndr->depth++;
265 120 : for (cntr_names_1 = 0; cntr_names_1 < (r->count); cntr_names_1++) {
266 60 : ndr_print_lsa_String(ndr, "names", &r->names[cntr_names_1]);
267 : }
268 60 : ndr->depth--;
269 : }
270 60 : ndr->depth--;
271 60 : ndr->depth--;
272 : }
273 :
274 112 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_AsciiString(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_AsciiString *r)
275 : {
276 112 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
277 112 : if (ndr_flags & NDR_SCALARS) {
278 112 : NDR_CHECK(ndr_push_align(ndr, 5));
279 112 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, strlen_m(r->string)));
280 112 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, strlen_m(r->string)));
281 112 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->string));
282 112 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
283 : }
284 112 : if (ndr_flags & NDR_BUFFERS) {
285 112 : if (r->string) {
286 112 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, strlen_m(r->string)));
287 112 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
288 112 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, strlen_m(r->string)));
289 112 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->string, strlen_m(r->string), sizeof(uint8_t), CH_DOS));
290 : }
291 : }
292 112 : return NDR_ERR_SUCCESS;
293 : }
294 :
295 56 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_AsciiString(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_AsciiString *r)
296 : {
297 0 : uint32_t _ptr_string;
298 56 : uint32_t size_string_1 = 0;
299 56 : uint32_t length_string_1 = 0;
300 56 : TALLOC_CTX *_mem_save_string_0 = NULL;
301 56 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
302 56 : if (ndr_flags & NDR_SCALARS) {
303 56 : NDR_CHECK(ndr_pull_align(ndr, 5));
304 56 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->length));
305 56 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->size));
306 56 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_string));
307 56 : if (_ptr_string) {
308 56 : NDR_PULL_ALLOC(ndr, r->string);
309 : } else {
310 0 : r->string = NULL;
311 : }
312 56 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
313 : }
314 56 : if (ndr_flags & NDR_BUFFERS) {
315 56 : if (r->string) {
316 56 : _mem_save_string_0 = NDR_PULL_GET_MEM_CTX(ndr);
317 56 : NDR_PULL_SET_MEM_CTX(ndr, r->string, 0);
318 56 : NDR_CHECK(ndr_pull_array_size(ndr, &r->string));
319 56 : NDR_CHECK(ndr_pull_array_length(ndr, &r->string));
320 56 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->string, &size_string_1));
321 56 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->string, &length_string_1));
322 56 : if (length_string_1 > size_string_1) {
323 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_string_1, length_string_1);
324 : }
325 56 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->string, length_string_1, sizeof(uint8_t), CH_DOS));
326 56 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_string_0, 0);
327 : }
328 56 : if (r->string) {
329 56 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->string, r->size));
330 : }
331 56 : if (r->string) {
332 56 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->string, r->length));
333 : }
334 : }
335 56 : return NDR_ERR_SUCCESS;
336 : }
337 :
338 0 : static void ndr_print_flags_lsa_AsciiString(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_AsciiString *r)
339 : {
340 0 : ndr_print_lsa_AsciiString(ndr, name, r);
341 0 : }
342 :
343 0 : _PUBLIC_ void ndr_print_lsa_AsciiString(struct ndr_print *ndr, const char *name, const struct lsa_AsciiString *r)
344 : {
345 0 : ndr_print_struct(ndr, name, "lsa_AsciiString");
346 0 : if (r == NULL) { ndr_print_null(ndr); return; }
347 0 : ndr->depth++;
348 0 : ndr_print_uint16(ndr, "length", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?strlen_m(r->string):r->length);
349 0 : ndr_print_uint16(ndr, "size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?strlen_m(r->string):r->size);
350 0 : ndr_print_ptr(ndr, "string", r->string);
351 0 : ndr->depth++;
352 0 : if (r->string) {
353 0 : ndr_print_string(ndr, "string", r->string);
354 : }
355 0 : ndr->depth--;
356 0 : ndr->depth--;
357 : }
358 :
359 1388 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_AsciiStringLarge(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_AsciiStringLarge *r)
360 : {
361 1388 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
362 1388 : if (ndr_flags & NDR_SCALARS) {
363 694 : NDR_CHECK(ndr_push_align(ndr, 5));
364 694 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, strlen_m(r->string)));
365 694 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, strlen_m_term(r->string)));
366 694 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->string));
367 694 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
368 : }
369 1388 : if (ndr_flags & NDR_BUFFERS) {
370 694 : if (r->string) {
371 694 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, strlen_m_term(r->string)));
372 694 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
373 694 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, strlen_m(r->string)));
374 694 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->string, strlen_m(r->string), sizeof(uint8_t), CH_DOS));
375 : }
376 : }
377 1388 : return NDR_ERR_SUCCESS;
378 : }
379 :
380 1564 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_AsciiStringLarge(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_AsciiStringLarge *r)
381 : {
382 0 : uint32_t _ptr_string;
383 1564 : uint32_t size_string_1 = 0;
384 1564 : uint32_t length_string_1 = 0;
385 1564 : TALLOC_CTX *_mem_save_string_0 = NULL;
386 1564 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
387 1564 : if (ndr_flags & NDR_SCALARS) {
388 782 : NDR_CHECK(ndr_pull_align(ndr, 5));
389 782 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->length));
390 782 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->size));
391 782 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_string));
392 782 : if (_ptr_string) {
393 782 : NDR_PULL_ALLOC(ndr, r->string);
394 : } else {
395 0 : r->string = NULL;
396 : }
397 782 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
398 : }
399 1564 : if (ndr_flags & NDR_BUFFERS) {
400 782 : if (r->string) {
401 782 : _mem_save_string_0 = NDR_PULL_GET_MEM_CTX(ndr);
402 782 : NDR_PULL_SET_MEM_CTX(ndr, r->string, 0);
403 782 : NDR_CHECK(ndr_pull_array_size(ndr, &r->string));
404 782 : NDR_CHECK(ndr_pull_array_length(ndr, &r->string));
405 782 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->string, &size_string_1));
406 782 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->string, &length_string_1));
407 782 : if (length_string_1 > size_string_1) {
408 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_string_1, length_string_1);
409 : }
410 782 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->string, length_string_1, sizeof(uint8_t), CH_DOS));
411 782 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_string_0, 0);
412 : }
413 782 : if (r->string) {
414 782 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->string, r->size));
415 : }
416 782 : if (r->string) {
417 782 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->string, r->length));
418 : }
419 : }
420 1564 : return NDR_ERR_SUCCESS;
421 : }
422 :
423 0 : static void ndr_print_flags_lsa_AsciiStringLarge(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_AsciiStringLarge *r)
424 : {
425 0 : ndr_print_lsa_AsciiStringLarge(ndr, name, r);
426 0 : }
427 :
428 0 : _PUBLIC_ void ndr_print_lsa_AsciiStringLarge(struct ndr_print *ndr, const char *name, const struct lsa_AsciiStringLarge *r)
429 : {
430 0 : ndr_print_struct(ndr, name, "lsa_AsciiStringLarge");
431 0 : if (r == NULL) { ndr_print_null(ndr); return; }
432 0 : ndr->depth++;
433 0 : ndr_print_uint16(ndr, "length", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?strlen_m(r->string):r->length);
434 0 : ndr_print_uint16(ndr, "size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?strlen_m_term(r->string):r->size);
435 0 : ndr_print_ptr(ndr, "string", r->string);
436 0 : ndr->depth++;
437 0 : if (r->string) {
438 0 : ndr_print_string(ndr, "string", r->string);
439 : }
440 0 : ndr->depth--;
441 0 : ndr->depth--;
442 : }
443 :
444 38014 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_BinaryString(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_BinaryString *r)
445 : {
446 1080 : uint32_t cntr_array_1;
447 38014 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
448 38014 : if (ndr_flags & NDR_SCALARS) {
449 19007 : NDR_CHECK(ndr_push_align(ndr, 5));
450 19007 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->length));
451 19007 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->size));
452 19007 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->array));
453 19007 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
454 : }
455 38014 : if (ndr_flags & NDR_BUFFERS) {
456 19007 : if (r->array) {
457 1577 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->size / 2));
458 1577 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
459 1577 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->length / 2));
460 11440 : for (cntr_array_1 = 0; cntr_array_1 < (r->length / 2); cntr_array_1++) {
461 9863 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->array[cntr_array_1]));
462 : }
463 : }
464 : }
465 36934 : return NDR_ERR_SUCCESS;
466 : }
467 :
468 38140 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_BinaryString(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_BinaryString *r)
469 : {
470 1080 : uint32_t _ptr_array;
471 38140 : uint32_t size_array_1 = 0;
472 38140 : uint32_t length_array_1 = 0;
473 1080 : uint32_t cntr_array_1;
474 38140 : TALLOC_CTX *_mem_save_array_0 = NULL;
475 38140 : TALLOC_CTX *_mem_save_array_1 = NULL;
476 38140 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
477 38140 : if (ndr_flags & NDR_SCALARS) {
478 19070 : NDR_CHECK(ndr_pull_align(ndr, 5));
479 19070 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->length));
480 19070 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->size));
481 19070 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_array));
482 19070 : if (_ptr_array) {
483 1797 : NDR_PULL_ALLOC(ndr, r->array);
484 : } else {
485 17273 : r->array = NULL;
486 : }
487 19070 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
488 : }
489 38140 : if (ndr_flags & NDR_BUFFERS) {
490 19070 : if (r->array) {
491 1797 : _mem_save_array_0 = NDR_PULL_GET_MEM_CTX(ndr);
492 1797 : NDR_PULL_SET_MEM_CTX(ndr, r->array, 0);
493 1797 : NDR_CHECK(ndr_pull_array_size(ndr, &r->array));
494 1797 : NDR_CHECK(ndr_pull_array_length(ndr, &r->array));
495 1797 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->array, &size_array_1));
496 1797 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->array, &length_array_1));
497 1797 : if (length_array_1 > size_array_1) {
498 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_array_1, length_array_1);
499 : }
500 1797 : NDR_PULL_ALLOC_N(ndr, r->array, size_array_1);
501 1797 : _mem_save_array_1 = NDR_PULL_GET_MEM_CTX(ndr);
502 1797 : NDR_PULL_SET_MEM_CTX(ndr, r->array, 0);
503 10658 : for (cntr_array_1 = 0; cntr_array_1 < (length_array_1); cntr_array_1++) {
504 8861 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->array[cntr_array_1]));
505 : }
506 1797 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_array_1, 0);
507 1797 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_array_0, 0);
508 : }
509 19070 : if (r->array) {
510 1797 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->array, r->size / 2));
511 : }
512 19070 : if (r->array) {
513 1797 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->array, r->length / 2));
514 : }
515 : }
516 37060 : return NDR_ERR_SUCCESS;
517 : }
518 :
519 0 : static void ndr_print_flags_lsa_BinaryString(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_BinaryString *r)
520 : {
521 0 : ndr_print_lsa_BinaryString(ndr, name, r);
522 0 : }
523 :
524 258 : _PUBLIC_ void ndr_print_lsa_BinaryString(struct ndr_print *ndr, const char *name, const struct lsa_BinaryString *r)
525 : {
526 0 : uint32_t cntr_array_1;
527 258 : ndr_print_struct(ndr, name, "lsa_BinaryString");
528 258 : if (r == NULL) { ndr_print_null(ndr); return; }
529 258 : ndr->depth++;
530 258 : ndr_print_uint16(ndr, "length", r->length);
531 258 : ndr_print_uint16(ndr, "size", r->size);
532 258 : ndr_print_ptr(ndr, "array", r->array);
533 258 : ndr->depth++;
534 258 : if (r->array) {
535 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "array", (uint32_t)(r->length / 2));
536 0 : ndr->depth++;
537 0 : for (cntr_array_1 = 0; cntr_array_1 < (r->length / 2); cntr_array_1++) {
538 0 : ndr_print_uint16(ndr, "array", r->array[cntr_array_1]);
539 : }
540 0 : ndr->depth--;
541 : }
542 258 : ndr->depth--;
543 258 : ndr->depth--;
544 : }
545 :
546 636 : static enum ndr_err_code ndr_push_lsa_LUID(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_LUID *r)
547 : {
548 636 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
549 636 : if (ndr_flags & NDR_SCALARS) {
550 636 : NDR_CHECK(ndr_push_align(ndr, 4));
551 636 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->low));
552 636 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->high));
553 636 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
554 : }
555 636 : if (ndr_flags & NDR_BUFFERS) {
556 0 : }
557 636 : return NDR_ERR_SUCCESS;
558 : }
559 :
560 644 : static enum ndr_err_code ndr_pull_lsa_LUID(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_LUID *r)
561 : {
562 644 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
563 644 : if (ndr_flags & NDR_SCALARS) {
564 644 : NDR_CHECK(ndr_pull_align(ndr, 4));
565 644 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->low));
566 644 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->high));
567 644 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
568 : }
569 644 : if (ndr_flags & NDR_BUFFERS) {
570 58 : }
571 644 : return NDR_ERR_SUCCESS;
572 : }
573 :
574 222 : _PUBLIC_ void ndr_print_lsa_LUID(struct ndr_print *ndr, const char *name, const struct lsa_LUID *r)
575 : {
576 222 : ndr_print_struct(ndr, name, "lsa_LUID");
577 222 : if (r == NULL) { ndr_print_null(ndr); return; }
578 222 : ndr->depth++;
579 222 : ndr_print_uint32(ndr, "low", r->low);
580 222 : ndr_print_uint32(ndr, "high", r->high);
581 222 : ndr->depth--;
582 : }
583 :
584 250 : static enum ndr_err_code ndr_push_lsa_PrivEntry(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_PrivEntry *r)
585 : {
586 250 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
587 250 : if (ndr_flags & NDR_SCALARS) {
588 125 : NDR_CHECK(ndr_push_align(ndr, 5));
589 125 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->name));
590 125 : NDR_CHECK(ndr_push_lsa_LUID(ndr, NDR_SCALARS, &r->luid));
591 125 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
592 : }
593 250 : if (ndr_flags & NDR_BUFFERS) {
594 125 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->name));
595 : }
596 250 : return NDR_ERR_SUCCESS;
597 : }
598 :
599 352 : static enum ndr_err_code ndr_pull_lsa_PrivEntry(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_PrivEntry *r)
600 : {
601 352 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
602 352 : if (ndr_flags & NDR_SCALARS) {
603 176 : NDR_CHECK(ndr_pull_align(ndr, 5));
604 176 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->name));
605 176 : NDR_CHECK(ndr_pull_lsa_LUID(ndr, NDR_SCALARS, &r->luid));
606 176 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
607 : }
608 352 : if (ndr_flags & NDR_BUFFERS) {
609 176 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->name));
610 : }
611 236 : return NDR_ERR_SUCCESS;
612 : }
613 :
614 108 : _PUBLIC_ void ndr_print_lsa_PrivEntry(struct ndr_print *ndr, const char *name, const struct lsa_PrivEntry *r)
615 : {
616 108 : ndr_print_struct(ndr, name, "lsa_PrivEntry");
617 108 : if (r == NULL) { ndr_print_null(ndr); return; }
618 108 : ndr->depth++;
619 108 : ndr_print_lsa_StringLarge(ndr, "name", &r->name);
620 108 : ndr_print_lsa_LUID(ndr, "luid", &r->luid);
621 108 : ndr->depth--;
622 : }
623 :
624 5 : static enum ndr_err_code ndr_push_lsa_PrivArray(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_PrivArray *r)
625 : {
626 0 : uint32_t cntr_privs_1;
627 5 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
628 5 : if (ndr_flags & NDR_SCALARS) {
629 5 : NDR_CHECK(ndr_push_align(ndr, 5));
630 5 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
631 5 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->privs));
632 5 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
633 : }
634 5 : if (ndr_flags & NDR_BUFFERS) {
635 5 : if (r->privs) {
636 5 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
637 130 : for (cntr_privs_1 = 0; cntr_privs_1 < (r->count); cntr_privs_1++) {
638 125 : NDR_CHECK(ndr_push_lsa_PrivEntry(ndr, NDR_SCALARS, &r->privs[cntr_privs_1]));
639 : }
640 130 : for (cntr_privs_1 = 0; cntr_privs_1 < (r->count); cntr_privs_1++) {
641 125 : NDR_CHECK(ndr_push_lsa_PrivEntry(ndr, NDR_BUFFERS, &r->privs[cntr_privs_1]));
642 : }
643 : }
644 : }
645 5 : return NDR_ERR_SUCCESS;
646 : }
647 :
648 8 : static enum ndr_err_code ndr_pull_lsa_PrivArray(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_PrivArray *r)
649 : {
650 2 : uint32_t _ptr_privs;
651 8 : uint32_t size_privs_1 = 0;
652 2 : uint32_t cntr_privs_1;
653 8 : TALLOC_CTX *_mem_save_privs_0 = NULL;
654 8 : TALLOC_CTX *_mem_save_privs_1 = NULL;
655 8 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
656 8 : if (ndr_flags & NDR_SCALARS) {
657 8 : NDR_CHECK(ndr_pull_align(ndr, 5));
658 8 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
659 8 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_privs));
660 8 : if (_ptr_privs) {
661 8 : NDR_PULL_ALLOC(ndr, r->privs);
662 : } else {
663 0 : r->privs = NULL;
664 : }
665 8 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
666 : }
667 8 : if (ndr_flags & NDR_BUFFERS) {
668 8 : if (r->privs) {
669 8 : _mem_save_privs_0 = NDR_PULL_GET_MEM_CTX(ndr);
670 8 : NDR_PULL_SET_MEM_CTX(ndr, r->privs, 0);
671 8 : NDR_CHECK(ndr_pull_array_size(ndr, &r->privs));
672 8 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->privs, &size_privs_1));
673 8 : NDR_PULL_ALLOC_N(ndr, r->privs, size_privs_1);
674 8 : _mem_save_privs_1 = NDR_PULL_GET_MEM_CTX(ndr);
675 8 : NDR_PULL_SET_MEM_CTX(ndr, r->privs, 0);
676 184 : for (cntr_privs_1 = 0; cntr_privs_1 < (size_privs_1); cntr_privs_1++) {
677 176 : NDR_CHECK(ndr_pull_lsa_PrivEntry(ndr, NDR_SCALARS, &r->privs[cntr_privs_1]));
678 : }
679 184 : for (cntr_privs_1 = 0; cntr_privs_1 < (size_privs_1); cntr_privs_1++) {
680 176 : NDR_CHECK(ndr_pull_lsa_PrivEntry(ndr, NDR_BUFFERS, &r->privs[cntr_privs_1]));
681 : }
682 8 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_privs_1, 0);
683 8 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_privs_0, 0);
684 : }
685 8 : if (r->privs) {
686 8 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->privs, r->count));
687 : }
688 184 : for (cntr_privs_1 = 0; cntr_privs_1 < (size_privs_1); cntr_privs_1++) {
689 58 : }
690 : }
691 6 : return NDR_ERR_SUCCESS;
692 : }
693 :
694 4 : _PUBLIC_ void ndr_print_lsa_PrivArray(struct ndr_print *ndr, const char *name, const struct lsa_PrivArray *r)
695 : {
696 2 : uint32_t cntr_privs_1;
697 4 : ndr_print_struct(ndr, name, "lsa_PrivArray");
698 4 : if (r == NULL) { ndr_print_null(ndr); return; }
699 4 : ndr->depth++;
700 4 : ndr_print_uint32(ndr, "count", r->count);
701 4 : ndr_print_ptr(ndr, "privs", r->privs);
702 4 : ndr->depth++;
703 4 : if (r->privs) {
704 4 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "privs", (uint32_t)(r->count));
705 4 : ndr->depth++;
706 112 : for (cntr_privs_1 = 0; cntr_privs_1 < (r->count); cntr_privs_1++) {
707 108 : ndr_print_lsa_PrivEntry(ndr, "privs", &r->privs[cntr_privs_1]);
708 : }
709 4 : ndr->depth--;
710 : }
711 4 : ndr->depth--;
712 4 : ndr->depth--;
713 : }
714 :
715 11336 : static enum ndr_err_code ndr_push_lsa_SecurityImpersonationLevel(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_SecurityImpersonationLevel r)
716 : {
717 11336 : NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
718 11216 : return NDR_ERR_SUCCESS;
719 : }
720 :
721 11003 : static enum ndr_err_code ndr_pull_lsa_SecurityImpersonationLevel(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_SecurityImpersonationLevel *r)
722 : {
723 125 : uint16_t v;
724 11003 : NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
725 11003 : *r = v;
726 11003 : return NDR_ERR_SUCCESS;
727 : }
728 :
729 4 : _PUBLIC_ void ndr_print_lsa_SecurityImpersonationLevel(struct ndr_print *ndr, const char *name, enum lsa_SecurityImpersonationLevel r)
730 : {
731 4 : const char *val = NULL;
732 :
733 4 : switch (r) {
734 0 : case LSA_SECURITY_ANONYMOUS: val = "LSA_SECURITY_ANONYMOUS"; break;
735 0 : case LSA_SECURITY_IDENTIFICATION: val = "LSA_SECURITY_IDENTIFICATION"; break;
736 4 : case LSA_SECURITY_IMPERSONATION: val = "LSA_SECURITY_IMPERSONATION"; break;
737 0 : case LSA_SECURITY_DELEGATION: val = "LSA_SECURITY_DELEGATION"; break;
738 : }
739 4 : ndr_print_enum(ndr, name, "ENUM", val, r);
740 4 : }
741 :
742 11336 : static enum ndr_err_code ndr_push_lsa_QosInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_QosInfo *r)
743 : {
744 11336 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
745 11336 : if (ndr_flags & NDR_SCALARS) {
746 11336 : NDR_CHECK(ndr_push_align(ndr, 5));
747 11336 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->len));
748 11456 : NDR_CHECK(ndr_push_lsa_SecurityImpersonationLevel(ndr, NDR_SCALARS, r->impersonation_level));
749 11336 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->context_mode));
750 11336 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->effective_only));
751 11336 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
752 : }
753 11336 : if (ndr_flags & NDR_BUFFERS) {
754 120 : }
755 11336 : return NDR_ERR_SUCCESS;
756 : }
757 :
758 11003 : static enum ndr_err_code ndr_pull_lsa_QosInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_QosInfo *r)
759 : {
760 11003 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
761 11003 : if (ndr_flags & NDR_SCALARS) {
762 11003 : NDR_CHECK(ndr_pull_align(ndr, 5));
763 11003 : NDR_CHECK(ndr_pull_uint3264(ndr, NDR_SCALARS, &r->len));
764 11128 : NDR_CHECK(ndr_pull_lsa_SecurityImpersonationLevel(ndr, NDR_SCALARS, &r->impersonation_level));
765 11003 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->context_mode));
766 11003 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->effective_only));
767 11003 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
768 : }
769 11003 : if (ndr_flags & NDR_BUFFERS) {
770 125 : }
771 11003 : return NDR_ERR_SUCCESS;
772 : }
773 :
774 4 : _PUBLIC_ void ndr_print_lsa_QosInfo(struct ndr_print *ndr, const char *name, const struct lsa_QosInfo *r)
775 : {
776 4 : ndr_print_struct(ndr, name, "lsa_QosInfo");
777 4 : if (r == NULL) { ndr_print_null(ndr); return; }
778 4 : ndr->depth++;
779 4 : ndr_print_uint3264(ndr, "len", r->len);
780 4 : ndr_print_lsa_SecurityImpersonationLevel(ndr, "impersonation_level", r->impersonation_level);
781 4 : ndr_print_uint8(ndr, "context_mode", r->context_mode);
782 4 : ndr_print_uint8(ndr, "effective_only", r->effective_only);
783 4 : ndr->depth--;
784 : }
785 :
786 12370 : static enum ndr_err_code ndr_push_lsa_ObjectAttribute(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_ObjectAttribute *r)
787 : {
788 12370 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
789 12370 : if (ndr_flags & NDR_SCALARS) {
790 12370 : NDR_CHECK(ndr_push_align(ndr, 5));
791 12370 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->len));
792 12370 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->root_dir));
793 12370 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->object_name));
794 12370 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->attributes));
795 12370 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->sec_desc));
796 12370 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->sec_qos));
797 12370 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
798 : }
799 12370 : if (ndr_flags & NDR_BUFFERS) {
800 12370 : if (r->root_dir) {
801 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->root_dir));
802 : }
803 12370 : if (r->object_name) {
804 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->object_name, CH_UTF16)));
805 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
806 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->object_name, CH_UTF16)));
807 0 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->object_name, ndr_charset_length(r->object_name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
808 : }
809 12370 : if (r->sec_desc) {
810 0 : NDR_CHECK(ndr_push_security_descriptor(ndr, NDR_SCALARS|NDR_BUFFERS, r->sec_desc));
811 : }
812 12370 : if (r->sec_qos) {
813 11336 : NDR_CHECK(ndr_push_lsa_QosInfo(ndr, NDR_SCALARS, r->sec_qos));
814 : }
815 : }
816 12250 : return NDR_ERR_SUCCESS;
817 : }
818 :
819 11988 : static enum ndr_err_code ndr_pull_lsa_ObjectAttribute(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_ObjectAttribute *r)
820 : {
821 125 : uint32_t _ptr_root_dir;
822 11988 : TALLOC_CTX *_mem_save_root_dir_0 = NULL;
823 125 : uint32_t _ptr_object_name;
824 11988 : uint32_t size_object_name_1 = 0;
825 11988 : uint32_t length_object_name_1 = 0;
826 11988 : TALLOC_CTX *_mem_save_object_name_0 = NULL;
827 125 : uint32_t _ptr_sec_desc;
828 11988 : TALLOC_CTX *_mem_save_sec_desc_0 = NULL;
829 125 : uint32_t _ptr_sec_qos;
830 11988 : TALLOC_CTX *_mem_save_sec_qos_0 = NULL;
831 11988 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
832 11988 : if (ndr_flags & NDR_SCALARS) {
833 11988 : NDR_CHECK(ndr_pull_align(ndr, 5));
834 11988 : NDR_CHECK(ndr_pull_uint3264(ndr, NDR_SCALARS, &r->len));
835 11988 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_root_dir));
836 11988 : if (_ptr_root_dir) {
837 0 : NDR_PULL_ALLOC(ndr, r->root_dir);
838 : } else {
839 11988 : r->root_dir = NULL;
840 : }
841 11988 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_object_name));
842 11988 : if (_ptr_object_name) {
843 0 : NDR_PULL_ALLOC(ndr, r->object_name);
844 : } else {
845 11988 : r->object_name = NULL;
846 : }
847 11988 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->attributes));
848 11988 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sec_desc));
849 11988 : if (_ptr_sec_desc) {
850 0 : NDR_PULL_ALLOC(ndr, r->sec_desc);
851 : } else {
852 11988 : r->sec_desc = NULL;
853 : }
854 11988 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sec_qos));
855 11988 : if (_ptr_sec_qos) {
856 11003 : NDR_PULL_ALLOC(ndr, r->sec_qos);
857 : } else {
858 985 : r->sec_qos = NULL;
859 : }
860 11988 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
861 : }
862 11988 : if (ndr_flags & NDR_BUFFERS) {
863 11988 : if (r->root_dir) {
864 0 : _mem_save_root_dir_0 = NDR_PULL_GET_MEM_CTX(ndr);
865 0 : NDR_PULL_SET_MEM_CTX(ndr, r->root_dir, 0);
866 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->root_dir));
867 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_root_dir_0, 0);
868 : }
869 11988 : if (r->object_name) {
870 0 : _mem_save_object_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
871 0 : NDR_PULL_SET_MEM_CTX(ndr, r->object_name, 0);
872 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->object_name));
873 0 : NDR_CHECK(ndr_pull_array_length(ndr, &r->object_name));
874 0 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->object_name, &size_object_name_1));
875 0 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->object_name, &length_object_name_1));
876 0 : if (length_object_name_1 > size_object_name_1) {
877 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_object_name_1, length_object_name_1);
878 : }
879 0 : NDR_CHECK(ndr_check_string_terminator(ndr, length_object_name_1, sizeof(uint16_t)));
880 0 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->object_name, length_object_name_1, sizeof(uint16_t), CH_UTF16));
881 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_object_name_0, 0);
882 : }
883 11988 : if (r->sec_desc) {
884 0 : _mem_save_sec_desc_0 = NDR_PULL_GET_MEM_CTX(ndr);
885 0 : NDR_PULL_SET_MEM_CTX(ndr, r->sec_desc, 0);
886 0 : NDR_CHECK(ndr_pull_security_descriptor(ndr, NDR_SCALARS|NDR_BUFFERS, r->sec_desc));
887 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sec_desc_0, 0);
888 : }
889 11988 : if (r->sec_qos) {
890 11003 : _mem_save_sec_qos_0 = NDR_PULL_GET_MEM_CTX(ndr);
891 11003 : NDR_PULL_SET_MEM_CTX(ndr, r->sec_qos, 0);
892 11003 : NDR_CHECK(ndr_pull_lsa_QosInfo(ndr, NDR_SCALARS, r->sec_qos));
893 11003 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sec_qos_0, 0);
894 : }
895 : }
896 11863 : return NDR_ERR_SUCCESS;
897 : }
898 :
899 6 : _PUBLIC_ void ndr_print_lsa_ObjectAttribute(struct ndr_print *ndr, const char *name, const struct lsa_ObjectAttribute *r)
900 : {
901 6 : ndr_print_struct(ndr, name, "lsa_ObjectAttribute");
902 6 : if (r == NULL) { ndr_print_null(ndr); return; }
903 6 : ndr->depth++;
904 6 : ndr_print_uint3264(ndr, "len", r->len);
905 6 : ndr_print_ptr(ndr, "root_dir", r->root_dir);
906 6 : ndr->depth++;
907 6 : if (r->root_dir) {
908 0 : ndr_print_uint8(ndr, "root_dir", *r->root_dir);
909 : }
910 6 : ndr->depth--;
911 6 : ndr_print_ptr(ndr, "object_name", r->object_name);
912 6 : ndr->depth++;
913 6 : if (r->object_name) {
914 0 : ndr_print_string(ndr, "object_name", r->object_name);
915 : }
916 6 : ndr->depth--;
917 6 : ndr_print_uint32(ndr, "attributes", r->attributes);
918 6 : ndr_print_ptr(ndr, "sec_desc", r->sec_desc);
919 6 : ndr->depth++;
920 6 : if (r->sec_desc) {
921 0 : ndr_print_security_descriptor(ndr, "sec_desc", r->sec_desc);
922 : }
923 6 : ndr->depth--;
924 6 : ndr_print_ptr(ndr, "sec_qos", r->sec_qos);
925 6 : ndr->depth++;
926 6 : if (r->sec_qos) {
927 4 : ndr_print_lsa_QosInfo(ndr, "sec_qos", r->sec_qos);
928 : }
929 6 : ndr->depth--;
930 6 : ndr->depth--;
931 : }
932 :
933 12370 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_PolicyAccessMask(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
934 : {
935 12370 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
936 12250 : return NDR_ERR_SUCCESS;
937 : }
938 :
939 11988 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_PolicyAccessMask(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
940 : {
941 125 : uint32_t v;
942 11988 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
943 11988 : *r = v;
944 11988 : return NDR_ERR_SUCCESS;
945 : }
946 :
947 6 : _PUBLIC_ void ndr_print_lsa_PolicyAccessMask(struct ndr_print *ndr, const char *name, uint32_t r)
948 : {
949 6 : ndr_print_uint32(ndr, name, r);
950 6 : ndr->depth++;
951 6 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_VIEW_LOCAL_INFORMATION", LSA_POLICY_VIEW_LOCAL_INFORMATION, r);
952 6 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_VIEW_AUDIT_INFORMATION", LSA_POLICY_VIEW_AUDIT_INFORMATION, r);
953 6 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_GET_PRIVATE_INFORMATION", LSA_POLICY_GET_PRIVATE_INFORMATION, r);
954 6 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_TRUST_ADMIN", LSA_POLICY_TRUST_ADMIN, r);
955 6 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_CREATE_ACCOUNT", LSA_POLICY_CREATE_ACCOUNT, r);
956 6 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_CREATE_SECRET", LSA_POLICY_CREATE_SECRET, r);
957 6 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_CREATE_PRIVILEGE", LSA_POLICY_CREATE_PRIVILEGE, r);
958 6 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_SET_DEFAULT_QUOTA_LIMITS", LSA_POLICY_SET_DEFAULT_QUOTA_LIMITS, r);
959 6 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_SET_AUDIT_REQUIREMENTS", LSA_POLICY_SET_AUDIT_REQUIREMENTS, r);
960 6 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_AUDIT_LOG_ADMIN", LSA_POLICY_AUDIT_LOG_ADMIN, r);
961 6 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_SERVER_ADMIN", LSA_POLICY_SERVER_ADMIN, r);
962 6 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_LOOKUP_NAMES", LSA_POLICY_LOOKUP_NAMES, r);
963 6 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_NOTIFICATION", LSA_POLICY_NOTIFICATION, r);
964 6 : ndr->depth--;
965 6 : }
966 :
967 92 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_AccountAccessMask(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
968 : {
969 92 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
970 92 : return NDR_ERR_SUCCESS;
971 : }
972 :
973 86 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_AccountAccessMask(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
974 : {
975 2 : uint32_t v;
976 86 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
977 86 : *r = v;
978 86 : return NDR_ERR_SUCCESS;
979 : }
980 :
981 14 : _PUBLIC_ void ndr_print_lsa_AccountAccessMask(struct ndr_print *ndr, const char *name, uint32_t r)
982 : {
983 14 : ndr_print_uint32(ndr, name, r);
984 14 : ndr->depth++;
985 14 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_ACCOUNT_VIEW", LSA_ACCOUNT_VIEW, r);
986 14 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_ACCOUNT_ADJUST_PRIVILEGES", LSA_ACCOUNT_ADJUST_PRIVILEGES, r);
987 14 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_ACCOUNT_ADJUST_QUOTAS", LSA_ACCOUNT_ADJUST_QUOTAS, r);
988 14 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_ACCOUNT_ADJUST_SYSTEM_ACCESS", LSA_ACCOUNT_ADJUST_SYSTEM_ACCESS, r);
989 14 : ndr->depth--;
990 14 : }
991 :
992 2394 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_SecretAccessMask(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
993 : {
994 2394 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
995 2394 : return NDR_ERR_SUCCESS;
996 : }
997 :
998 1758 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_SecretAccessMask(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
999 : {
1000 4 : uint32_t v;
1001 1758 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
1002 1758 : *r = v;
1003 1758 : return NDR_ERR_SUCCESS;
1004 : }
1005 :
1006 4 : _PUBLIC_ void ndr_print_lsa_SecretAccessMask(struct ndr_print *ndr, const char *name, uint32_t r)
1007 : {
1008 4 : ndr_print_uint32(ndr, name, r);
1009 4 : ndr->depth++;
1010 4 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_SECRET_SET_VALUE", LSA_SECRET_SET_VALUE, r);
1011 4 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_SECRET_QUERY_VALUE", LSA_SECRET_QUERY_VALUE, r);
1012 4 : ndr->depth--;
1013 4 : }
1014 :
1015 608 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_TrustedAccessMask(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
1016 : {
1017 608 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
1018 608 : return NDR_ERR_SUCCESS;
1019 : }
1020 :
1021 610 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_TrustedAccessMask(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
1022 : {
1023 2 : uint32_t v;
1024 610 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
1025 610 : *r = v;
1026 610 : return NDR_ERR_SUCCESS;
1027 : }
1028 :
1029 2 : _PUBLIC_ void ndr_print_lsa_TrustedAccessMask(struct ndr_print *ndr, const char *name, uint32_t r)
1030 : {
1031 2 : ndr_print_uint32(ndr, name, r);
1032 2 : ndr->depth++;
1033 2 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUSTED_QUERY_DOMAIN_NAME", LSA_TRUSTED_QUERY_DOMAIN_NAME, r);
1034 2 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUSTED_QUERY_CONTROLLERS", LSA_TRUSTED_QUERY_CONTROLLERS, r);
1035 2 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUSTED_SET_CONTROLLERS", LSA_TRUSTED_SET_CONTROLLERS, r);
1036 2 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUSTED_QUERY_POSIX", LSA_TRUSTED_QUERY_POSIX, r);
1037 2 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUSTED_SET_POSIX", LSA_TRUSTED_SET_POSIX, r);
1038 2 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUSTED_SET_AUTH", LSA_TRUSTED_SET_AUTH, r);
1039 2 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUSTED_QUERY_AUTH", LSA_TRUSTED_QUERY_AUTH, r);
1040 2 : ndr->depth--;
1041 2 : }
1042 :
1043 40 : static enum ndr_err_code ndr_push_lsa_AuditLogInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_AuditLogInfo *r)
1044 : {
1045 40 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1046 40 : if (ndr_flags & NDR_SCALARS) {
1047 40 : NDR_CHECK(ndr_push_align(ndr, 8));
1048 40 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->percent_full));
1049 40 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->maximum_log_size));
1050 40 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->retention_time));
1051 40 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->shutdown_in_progress));
1052 40 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->time_to_shutdown));
1053 40 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->next_audit_record));
1054 40 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1055 : }
1056 40 : if (ndr_flags & NDR_BUFFERS) {
1057 0 : }
1058 40 : return NDR_ERR_SUCCESS;
1059 : }
1060 :
1061 34 : static enum ndr_err_code ndr_pull_lsa_AuditLogInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_AuditLogInfo *r)
1062 : {
1063 34 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1064 34 : if (ndr_flags & NDR_SCALARS) {
1065 34 : NDR_CHECK(ndr_pull_align(ndr, 8));
1066 34 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->percent_full));
1067 34 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->maximum_log_size));
1068 34 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->retention_time));
1069 34 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->shutdown_in_progress));
1070 34 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->time_to_shutdown));
1071 34 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->next_audit_record));
1072 34 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
1073 : }
1074 34 : if (ndr_flags & NDR_BUFFERS) {
1075 0 : }
1076 34 : return NDR_ERR_SUCCESS;
1077 : }
1078 :
1079 16 : _PUBLIC_ void ndr_print_lsa_AuditLogInfo(struct ndr_print *ndr, const char *name, const struct lsa_AuditLogInfo *r)
1080 : {
1081 16 : ndr_print_struct(ndr, name, "lsa_AuditLogInfo");
1082 16 : if (r == NULL) { ndr_print_null(ndr); return; }
1083 16 : ndr->depth++;
1084 16 : ndr_print_uint32(ndr, "percent_full", r->percent_full);
1085 16 : ndr_print_uint32(ndr, "maximum_log_size", r->maximum_log_size);
1086 16 : ndr_print_hyper(ndr, "retention_time", r->retention_time);
1087 16 : ndr_print_uint8(ndr, "shutdown_in_progress", r->shutdown_in_progress);
1088 16 : ndr_print_hyper(ndr, "time_to_shutdown", r->time_to_shutdown);
1089 16 : ndr_print_uint32(ndr, "next_audit_record", r->next_audit_record);
1090 16 : ndr->depth--;
1091 : }
1092 :
1093 0 : static enum ndr_err_code ndr_push_lsa_PolicyAuditPolicy(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_PolicyAuditPolicy r)
1094 : {
1095 0 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1096 0 : return NDR_ERR_SUCCESS;
1097 : }
1098 :
1099 14 : static enum ndr_err_code ndr_pull_lsa_PolicyAuditPolicy(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_PolicyAuditPolicy *r)
1100 : {
1101 0 : uint32_t v;
1102 14 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1103 14 : *r = v;
1104 14 : return NDR_ERR_SUCCESS;
1105 : }
1106 :
1107 0 : _PUBLIC_ void ndr_print_lsa_PolicyAuditPolicy(struct ndr_print *ndr, const char *name, enum lsa_PolicyAuditPolicy r)
1108 : {
1109 0 : const char *val = NULL;
1110 :
1111 0 : switch (r) {
1112 0 : case LSA_AUDIT_POLICY_NONE: val = "LSA_AUDIT_POLICY_NONE"; break;
1113 0 : case LSA_AUDIT_POLICY_SUCCESS: val = "LSA_AUDIT_POLICY_SUCCESS"; break;
1114 0 : case LSA_AUDIT_POLICY_FAILURE: val = "LSA_AUDIT_POLICY_FAILURE"; break;
1115 0 : case LSA_AUDIT_POLICY_ALL: val = "LSA_AUDIT_POLICY_ALL"; break;
1116 0 : case LSA_AUDIT_POLICY_CLEAR: val = "LSA_AUDIT_POLICY_CLEAR"; break;
1117 : }
1118 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
1119 0 : }
1120 :
1121 80 : static enum ndr_err_code ndr_push_lsa_AuditEventsInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_AuditEventsInfo *r)
1122 : {
1123 0 : uint32_t cntr_settings_1;
1124 80 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1125 80 : if (ndr_flags & NDR_SCALARS) {
1126 40 : NDR_CHECK(ndr_push_align(ndr, 5));
1127 40 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->auditing_mode));
1128 40 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->settings));
1129 40 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
1130 40 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1131 : }
1132 80 : if (ndr_flags & NDR_BUFFERS) {
1133 40 : if (r->settings) {
1134 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
1135 0 : for (cntr_settings_1 = 0; cntr_settings_1 < (r->count); cntr_settings_1++) {
1136 0 : NDR_CHECK(ndr_push_lsa_PolicyAuditPolicy(ndr, NDR_SCALARS, r->settings[cntr_settings_1]));
1137 : }
1138 : }
1139 : }
1140 80 : return NDR_ERR_SUCCESS;
1141 : }
1142 :
1143 68 : static enum ndr_err_code ndr_pull_lsa_AuditEventsInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_AuditEventsInfo *r)
1144 : {
1145 0 : uint32_t _ptr_settings;
1146 68 : uint32_t size_settings_1 = 0;
1147 0 : uint32_t cntr_settings_1;
1148 68 : TALLOC_CTX *_mem_save_settings_0 = NULL;
1149 68 : TALLOC_CTX *_mem_save_settings_1 = NULL;
1150 68 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1151 68 : if (ndr_flags & NDR_SCALARS) {
1152 34 : NDR_CHECK(ndr_pull_align(ndr, 5));
1153 34 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->auditing_mode));
1154 34 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_settings));
1155 34 : if (_ptr_settings) {
1156 2 : NDR_PULL_ALLOC(ndr, r->settings);
1157 : } else {
1158 32 : r->settings = NULL;
1159 : }
1160 34 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
1161 34 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1162 : }
1163 68 : if (ndr_flags & NDR_BUFFERS) {
1164 34 : if (r->settings) {
1165 2 : _mem_save_settings_0 = NDR_PULL_GET_MEM_CTX(ndr);
1166 2 : NDR_PULL_SET_MEM_CTX(ndr, r->settings, 0);
1167 2 : NDR_CHECK(ndr_pull_array_size(ndr, &r->settings));
1168 2 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->settings, &size_settings_1));
1169 2 : NDR_PULL_ALLOC_N(ndr, r->settings, size_settings_1);
1170 2 : _mem_save_settings_1 = NDR_PULL_GET_MEM_CTX(ndr);
1171 2 : NDR_PULL_SET_MEM_CTX(ndr, r->settings, 0);
1172 16 : for (cntr_settings_1 = 0; cntr_settings_1 < (size_settings_1); cntr_settings_1++) {
1173 14 : NDR_CHECK(ndr_pull_lsa_PolicyAuditPolicy(ndr, NDR_SCALARS, &r->settings[cntr_settings_1]));
1174 : }
1175 2 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_settings_1, 0);
1176 2 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_settings_0, 0);
1177 : }
1178 34 : if (r->settings) {
1179 2 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->settings, r->count));
1180 : }
1181 : }
1182 68 : return NDR_ERR_SUCCESS;
1183 : }
1184 :
1185 16 : _PUBLIC_ void ndr_print_lsa_AuditEventsInfo(struct ndr_print *ndr, const char *name, const struct lsa_AuditEventsInfo *r)
1186 : {
1187 0 : uint32_t cntr_settings_1;
1188 16 : ndr_print_struct(ndr, name, "lsa_AuditEventsInfo");
1189 16 : if (r == NULL) { ndr_print_null(ndr); return; }
1190 16 : ndr->depth++;
1191 16 : ndr_print_uint32(ndr, "auditing_mode", r->auditing_mode);
1192 16 : ndr_print_ptr(ndr, "settings", r->settings);
1193 16 : ndr->depth++;
1194 16 : if (r->settings) {
1195 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "settings", (uint32_t)(r->count));
1196 0 : ndr->depth++;
1197 0 : for (cntr_settings_1 = 0; cntr_settings_1 < (r->count); cntr_settings_1++) {
1198 0 : ndr_print_lsa_PolicyAuditPolicy(ndr, "settings", r->settings[cntr_settings_1]);
1199 : }
1200 0 : ndr->depth--;
1201 : }
1202 16 : ndr->depth--;
1203 16 : ndr_print_uint32(ndr, "count", r->count);
1204 16 : ndr->depth--;
1205 : }
1206 :
1207 33138 : static enum ndr_err_code ndr_push_lsa_DomainInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_DomainInfo *r)
1208 : {
1209 33138 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1210 33138 : if (ndr_flags & NDR_SCALARS) {
1211 16593 : NDR_CHECK(ndr_push_align(ndr, 5));
1212 16593 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->name));
1213 16593 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->sid));
1214 16593 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1215 : }
1216 33138 : if (ndr_flags & NDR_BUFFERS) {
1217 16593 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->name));
1218 16593 : if (r->sid) {
1219 16593 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
1220 : }
1221 : }
1222 32634 : return NDR_ERR_SUCCESS;
1223 : }
1224 :
1225 27130 : static enum ndr_err_code ndr_pull_lsa_DomainInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_DomainInfo *r)
1226 : {
1227 478 : uint32_t _ptr_sid;
1228 27130 : TALLOC_CTX *_mem_save_sid_0 = NULL;
1229 27130 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1230 27130 : if (ndr_flags & NDR_SCALARS) {
1231 13590 : NDR_CHECK(ndr_pull_align(ndr, 5));
1232 13590 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->name));
1233 13590 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sid));
1234 13590 : if (_ptr_sid) {
1235 13588 : NDR_PULL_ALLOC(ndr, r->sid);
1236 : } else {
1237 2 : r->sid = NULL;
1238 : }
1239 13590 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1240 : }
1241 27130 : if (ndr_flags & NDR_BUFFERS) {
1242 13590 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->name));
1243 13590 : if (r->sid) {
1244 13588 : _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
1245 13588 : NDR_PULL_SET_MEM_CTX(ndr, r->sid, 0);
1246 13588 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
1247 13588 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, 0);
1248 : }
1249 : }
1250 26652 : return NDR_ERR_SUCCESS;
1251 : }
1252 :
1253 1260 : _PUBLIC_ void ndr_print_lsa_DomainInfo(struct ndr_print *ndr, const char *name, const struct lsa_DomainInfo *r)
1254 : {
1255 1260 : ndr_print_struct(ndr, name, "lsa_DomainInfo");
1256 1260 : if (r == NULL) { ndr_print_null(ndr); return; }
1257 1260 : ndr->depth++;
1258 1260 : ndr_print_lsa_StringLarge(ndr, "name", &r->name);
1259 1260 : ndr_print_ptr(ndr, "sid", r->sid);
1260 1260 : ndr->depth++;
1261 1260 : if (r->sid) {
1262 1260 : ndr_print_dom_sid2(ndr, "sid", r->sid);
1263 : }
1264 1260 : ndr->depth--;
1265 1260 : ndr->depth--;
1266 : }
1267 :
1268 80 : static enum ndr_err_code ndr_push_lsa_PDAccountInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_PDAccountInfo *r)
1269 : {
1270 80 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1271 80 : if (ndr_flags & NDR_SCALARS) {
1272 40 : NDR_CHECK(ndr_push_align(ndr, 5));
1273 40 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS, &r->name));
1274 40 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1275 : }
1276 80 : if (ndr_flags & NDR_BUFFERS) {
1277 40 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_BUFFERS, &r->name));
1278 : }
1279 80 : return NDR_ERR_SUCCESS;
1280 : }
1281 :
1282 68 : static enum ndr_err_code ndr_pull_lsa_PDAccountInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_PDAccountInfo *r)
1283 : {
1284 68 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1285 68 : if (ndr_flags & NDR_SCALARS) {
1286 34 : NDR_CHECK(ndr_pull_align(ndr, 5));
1287 34 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS, &r->name));
1288 34 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1289 : }
1290 68 : if (ndr_flags & NDR_BUFFERS) {
1291 34 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_BUFFERS, &r->name));
1292 : }
1293 68 : return NDR_ERR_SUCCESS;
1294 : }
1295 :
1296 16 : _PUBLIC_ void ndr_print_lsa_PDAccountInfo(struct ndr_print *ndr, const char *name, const struct lsa_PDAccountInfo *r)
1297 : {
1298 16 : ndr_print_struct(ndr, name, "lsa_PDAccountInfo");
1299 16 : if (r == NULL) { ndr_print_null(ndr); return; }
1300 16 : ndr->depth++;
1301 16 : ndr_print_lsa_String(ndr, "name", &r->name);
1302 16 : ndr->depth--;
1303 : }
1304 :
1305 40 : static enum ndr_err_code ndr_push_lsa_Role(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_Role r)
1306 : {
1307 40 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
1308 40 : return NDR_ERR_SUCCESS;
1309 : }
1310 :
1311 34 : static enum ndr_err_code ndr_pull_lsa_Role(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_Role *r)
1312 : {
1313 0 : uint32_t v;
1314 34 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
1315 34 : *r = v;
1316 34 : return NDR_ERR_SUCCESS;
1317 : }
1318 :
1319 16 : _PUBLIC_ void ndr_print_lsa_Role(struct ndr_print *ndr, const char *name, enum lsa_Role r)
1320 : {
1321 16 : const char *val = NULL;
1322 :
1323 16 : switch (r) {
1324 0 : case LSA_ROLE_BACKUP: val = "LSA_ROLE_BACKUP"; break;
1325 16 : case LSA_ROLE_PRIMARY: val = "LSA_ROLE_PRIMARY"; break;
1326 : }
1327 16 : ndr_print_enum(ndr, name, "ENUM", val, r);
1328 16 : }
1329 :
1330 40 : static enum ndr_err_code ndr_push_lsa_ServerRole(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_ServerRole *r)
1331 : {
1332 40 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1333 40 : if (ndr_flags & NDR_SCALARS) {
1334 40 : NDR_CHECK(ndr_push_align(ndr, 4));
1335 40 : NDR_CHECK(ndr_push_lsa_Role(ndr, NDR_SCALARS, r->role));
1336 40 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
1337 : }
1338 40 : if (ndr_flags & NDR_BUFFERS) {
1339 0 : }
1340 40 : return NDR_ERR_SUCCESS;
1341 : }
1342 :
1343 34 : static enum ndr_err_code ndr_pull_lsa_ServerRole(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_ServerRole *r)
1344 : {
1345 34 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1346 34 : if (ndr_flags & NDR_SCALARS) {
1347 34 : NDR_CHECK(ndr_pull_align(ndr, 4));
1348 34 : NDR_CHECK(ndr_pull_lsa_Role(ndr, NDR_SCALARS, &r->role));
1349 34 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
1350 : }
1351 34 : if (ndr_flags & NDR_BUFFERS) {
1352 0 : }
1353 34 : return NDR_ERR_SUCCESS;
1354 : }
1355 :
1356 16 : _PUBLIC_ void ndr_print_lsa_ServerRole(struct ndr_print *ndr, const char *name, const struct lsa_ServerRole *r)
1357 : {
1358 16 : ndr_print_struct(ndr, name, "lsa_ServerRole");
1359 16 : if (r == NULL) { ndr_print_null(ndr); return; }
1360 16 : ndr->depth++;
1361 16 : ndr_print_lsa_Role(ndr, "role", r->role);
1362 16 : ndr->depth--;
1363 : }
1364 :
1365 80 : static enum ndr_err_code ndr_push_lsa_ReplicaSourceInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_ReplicaSourceInfo *r)
1366 : {
1367 80 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1368 80 : if (ndr_flags & NDR_SCALARS) {
1369 40 : NDR_CHECK(ndr_push_align(ndr, 5));
1370 40 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS, &r->source));
1371 40 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS, &r->account));
1372 40 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1373 : }
1374 80 : if (ndr_flags & NDR_BUFFERS) {
1375 40 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_BUFFERS, &r->source));
1376 40 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_BUFFERS, &r->account));
1377 : }
1378 80 : return NDR_ERR_SUCCESS;
1379 : }
1380 :
1381 68 : static enum ndr_err_code ndr_pull_lsa_ReplicaSourceInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_ReplicaSourceInfo *r)
1382 : {
1383 68 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1384 68 : if (ndr_flags & NDR_SCALARS) {
1385 34 : NDR_CHECK(ndr_pull_align(ndr, 5));
1386 34 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS, &r->source));
1387 34 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS, &r->account));
1388 34 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1389 : }
1390 68 : if (ndr_flags & NDR_BUFFERS) {
1391 34 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_BUFFERS, &r->source));
1392 34 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_BUFFERS, &r->account));
1393 : }
1394 68 : return NDR_ERR_SUCCESS;
1395 : }
1396 :
1397 16 : _PUBLIC_ void ndr_print_lsa_ReplicaSourceInfo(struct ndr_print *ndr, const char *name, const struct lsa_ReplicaSourceInfo *r)
1398 : {
1399 16 : ndr_print_struct(ndr, name, "lsa_ReplicaSourceInfo");
1400 16 : if (r == NULL) { ndr_print_null(ndr); return; }
1401 16 : ndr->depth++;
1402 16 : ndr_print_lsa_String(ndr, "source", &r->source);
1403 16 : ndr_print_lsa_String(ndr, "account", &r->account);
1404 16 : ndr->depth--;
1405 : }
1406 :
1407 40 : static enum ndr_err_code ndr_push_lsa_DefaultQuotaInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_DefaultQuotaInfo *r)
1408 : {
1409 40 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1410 40 : if (ndr_flags & NDR_SCALARS) {
1411 40 : NDR_CHECK(ndr_push_align(ndr, 8));
1412 40 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->paged_pool));
1413 40 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->non_paged_pool));
1414 40 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->min_wss));
1415 40 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->max_wss));
1416 40 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->pagefile));
1417 40 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->unknown));
1418 40 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1419 : }
1420 40 : if (ndr_flags & NDR_BUFFERS) {
1421 0 : }
1422 40 : return NDR_ERR_SUCCESS;
1423 : }
1424 :
1425 34 : static enum ndr_err_code ndr_pull_lsa_DefaultQuotaInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_DefaultQuotaInfo *r)
1426 : {
1427 34 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1428 34 : if (ndr_flags & NDR_SCALARS) {
1429 34 : NDR_CHECK(ndr_pull_align(ndr, 8));
1430 34 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->paged_pool));
1431 34 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->non_paged_pool));
1432 34 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->min_wss));
1433 34 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->max_wss));
1434 34 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->pagefile));
1435 34 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->unknown));
1436 34 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
1437 : }
1438 34 : if (ndr_flags & NDR_BUFFERS) {
1439 0 : }
1440 34 : return NDR_ERR_SUCCESS;
1441 : }
1442 :
1443 16 : _PUBLIC_ void ndr_print_lsa_DefaultQuotaInfo(struct ndr_print *ndr, const char *name, const struct lsa_DefaultQuotaInfo *r)
1444 : {
1445 16 : ndr_print_struct(ndr, name, "lsa_DefaultQuotaInfo");
1446 16 : if (r == NULL) { ndr_print_null(ndr); return; }
1447 16 : ndr->depth++;
1448 16 : ndr_print_uint32(ndr, "paged_pool", r->paged_pool);
1449 16 : ndr_print_uint32(ndr, "non_paged_pool", r->non_paged_pool);
1450 16 : ndr_print_uint32(ndr, "min_wss", r->min_wss);
1451 16 : ndr_print_uint32(ndr, "max_wss", r->max_wss);
1452 16 : ndr_print_uint32(ndr, "pagefile", r->pagefile);
1453 16 : ndr_print_hyper(ndr, "unknown", r->unknown);
1454 16 : ndr->depth--;
1455 : }
1456 :
1457 0 : static enum ndr_err_code ndr_push_lsa_ModificationInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_ModificationInfo *r)
1458 : {
1459 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1460 0 : if (ndr_flags & NDR_SCALARS) {
1461 0 : NDR_CHECK(ndr_push_align(ndr, 8));
1462 0 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->modified_id));
1463 0 : NDR_CHECK(ndr_push_NTTIME_hyper(ndr, NDR_SCALARS, r->db_create_time));
1464 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
1465 : }
1466 0 : if (ndr_flags & NDR_BUFFERS) {
1467 0 : }
1468 0 : return NDR_ERR_SUCCESS;
1469 : }
1470 :
1471 0 : static enum ndr_err_code ndr_pull_lsa_ModificationInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_ModificationInfo *r)
1472 : {
1473 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1474 0 : if (ndr_flags & NDR_SCALARS) {
1475 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
1476 0 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->modified_id));
1477 0 : NDR_CHECK(ndr_pull_NTTIME_hyper(ndr, NDR_SCALARS, &r->db_create_time));
1478 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
1479 : }
1480 0 : if (ndr_flags & NDR_BUFFERS) {
1481 0 : }
1482 0 : return NDR_ERR_SUCCESS;
1483 : }
1484 :
1485 0 : _PUBLIC_ void ndr_print_lsa_ModificationInfo(struct ndr_print *ndr, const char *name, const struct lsa_ModificationInfo *r)
1486 : {
1487 0 : ndr_print_struct(ndr, name, "lsa_ModificationInfo");
1488 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1489 0 : ndr->depth++;
1490 0 : ndr_print_hyper(ndr, "modified_id", r->modified_id);
1491 0 : ndr_print_NTTIME_hyper(ndr, "db_create_time", r->db_create_time);
1492 0 : ndr->depth--;
1493 : }
1494 :
1495 0 : static enum ndr_err_code ndr_push_lsa_AuditFullSetInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_AuditFullSetInfo *r)
1496 : {
1497 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1498 0 : if (ndr_flags & NDR_SCALARS) {
1499 0 : NDR_CHECK(ndr_push_align(ndr, 1));
1500 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->shutdown_on_full));
1501 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
1502 : }
1503 0 : if (ndr_flags & NDR_BUFFERS) {
1504 0 : }
1505 0 : return NDR_ERR_SUCCESS;
1506 : }
1507 :
1508 0 : static enum ndr_err_code ndr_pull_lsa_AuditFullSetInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_AuditFullSetInfo *r)
1509 : {
1510 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1511 0 : if (ndr_flags & NDR_SCALARS) {
1512 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
1513 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->shutdown_on_full));
1514 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
1515 : }
1516 0 : if (ndr_flags & NDR_BUFFERS) {
1517 0 : }
1518 0 : return NDR_ERR_SUCCESS;
1519 : }
1520 :
1521 0 : _PUBLIC_ void ndr_print_lsa_AuditFullSetInfo(struct ndr_print *ndr, const char *name, const struct lsa_AuditFullSetInfo *r)
1522 : {
1523 0 : ndr_print_struct(ndr, name, "lsa_AuditFullSetInfo");
1524 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1525 0 : ndr->depth++;
1526 0 : ndr_print_uint8(ndr, "shutdown_on_full", r->shutdown_on_full);
1527 0 : ndr->depth--;
1528 : }
1529 :
1530 0 : static enum ndr_err_code ndr_push_lsa_AuditFullQueryInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_AuditFullQueryInfo *r)
1531 : {
1532 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1533 0 : if (ndr_flags & NDR_SCALARS) {
1534 0 : NDR_CHECK(ndr_push_align(ndr, 1));
1535 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->shutdown_on_full));
1536 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->log_is_full));
1537 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 1));
1538 : }
1539 0 : if (ndr_flags & NDR_BUFFERS) {
1540 0 : }
1541 0 : return NDR_ERR_SUCCESS;
1542 : }
1543 :
1544 0 : static enum ndr_err_code ndr_pull_lsa_AuditFullQueryInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_AuditFullQueryInfo *r)
1545 : {
1546 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1547 0 : if (ndr_flags & NDR_SCALARS) {
1548 0 : NDR_CHECK(ndr_pull_align(ndr, 1));
1549 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->shutdown_on_full));
1550 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->log_is_full));
1551 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
1552 : }
1553 0 : if (ndr_flags & NDR_BUFFERS) {
1554 0 : }
1555 0 : return NDR_ERR_SUCCESS;
1556 : }
1557 :
1558 0 : _PUBLIC_ void ndr_print_lsa_AuditFullQueryInfo(struct ndr_print *ndr, const char *name, const struct lsa_AuditFullQueryInfo *r)
1559 : {
1560 0 : ndr_print_struct(ndr, name, "lsa_AuditFullQueryInfo");
1561 0 : if (r == NULL) { ndr_print_null(ndr); return; }
1562 0 : ndr->depth++;
1563 0 : ndr_print_uint8(ndr, "shutdown_on_full", r->shutdown_on_full);
1564 0 : ndr_print_uint8(ndr, "log_is_full", r->log_is_full);
1565 0 : ndr->depth--;
1566 : }
1567 :
1568 2546 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_DnsDomainInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_DnsDomainInfo *r)
1569 : {
1570 2546 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1571 2546 : if (ndr_flags & NDR_SCALARS) {
1572 1273 : NDR_CHECK(ndr_push_align(ndr, 5));
1573 1273 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->name));
1574 1273 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->dns_domain));
1575 1273 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->dns_forest));
1576 1273 : NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->domain_guid));
1577 1273 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->sid));
1578 1273 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
1579 : }
1580 2546 : if (ndr_flags & NDR_BUFFERS) {
1581 1273 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->name));
1582 1273 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->dns_domain));
1583 1273 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->dns_forest));
1584 1273 : if (r->sid) {
1585 1273 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
1586 : }
1587 : }
1588 2326 : return NDR_ERR_SUCCESS;
1589 : }
1590 :
1591 10860 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_DnsDomainInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_DnsDomainInfo *r)
1592 : {
1593 184 : uint32_t _ptr_sid;
1594 10860 : TALLOC_CTX *_mem_save_sid_0 = NULL;
1595 10860 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1596 10860 : if (ndr_flags & NDR_SCALARS) {
1597 5430 : NDR_CHECK(ndr_pull_align(ndr, 5));
1598 5430 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->name));
1599 5430 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->dns_domain));
1600 5430 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->dns_forest));
1601 5430 : NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->domain_guid));
1602 5430 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sid));
1603 5430 : if (_ptr_sid) {
1604 5426 : NDR_PULL_ALLOC(ndr, r->sid);
1605 : } else {
1606 4 : r->sid = NULL;
1607 : }
1608 5430 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
1609 : }
1610 10860 : if (ndr_flags & NDR_BUFFERS) {
1611 5430 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->name));
1612 5430 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->dns_domain));
1613 5430 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->dns_forest));
1614 5430 : if (r->sid) {
1615 5426 : _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
1616 5426 : NDR_PULL_SET_MEM_CTX(ndr, r->sid, 0);
1617 5426 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
1618 5426 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, 0);
1619 : }
1620 : }
1621 10676 : return NDR_ERR_SUCCESS;
1622 : }
1623 :
1624 0 : static void ndr_print_flags_lsa_DnsDomainInfo(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_DnsDomainInfo *r)
1625 : {
1626 0 : ndr_print_lsa_DnsDomainInfo(ndr, name, r);
1627 0 : }
1628 :
1629 287 : _PUBLIC_ void ndr_print_lsa_DnsDomainInfo(struct ndr_print *ndr, const char *name, const struct lsa_DnsDomainInfo *r)
1630 : {
1631 287 : ndr_print_struct(ndr, name, "lsa_DnsDomainInfo");
1632 287 : if (r == NULL) { ndr_print_null(ndr); return; }
1633 287 : ndr->depth++;
1634 287 : ndr_print_lsa_StringLarge(ndr, "name", &r->name);
1635 287 : ndr_print_lsa_StringLarge(ndr, "dns_domain", &r->dns_domain);
1636 287 : ndr_print_lsa_StringLarge(ndr, "dns_forest", &r->dns_forest);
1637 287 : ndr_print_GUID(ndr, "domain_guid", &r->domain_guid);
1638 287 : ndr_print_ptr(ndr, "sid", r->sid);
1639 287 : ndr->depth++;
1640 287 : if (r->sid) {
1641 287 : ndr_print_dom_sid2(ndr, "sid", r->sid);
1642 : }
1643 287 : ndr->depth--;
1644 287 : ndr->depth--;
1645 : }
1646 :
1647 3222 : static enum ndr_err_code ndr_push_lsa_PolicyInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_PolicyInfo r)
1648 : {
1649 3222 : NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
1650 3040 : return NDR_ERR_SUCCESS;
1651 : }
1652 :
1653 3070 : static enum ndr_err_code ndr_pull_lsa_PolicyInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_PolicyInfo *r)
1654 : {
1655 182 : uint16_t v;
1656 3070 : NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
1657 3070 : *r = v;
1658 3070 : return NDR_ERR_SUCCESS;
1659 : }
1660 :
1661 2 : _PUBLIC_ void ndr_print_lsa_PolicyInfo(struct ndr_print *ndr, const char *name, enum lsa_PolicyInfo r)
1662 : {
1663 2 : const char *val = NULL;
1664 :
1665 2 : switch (r) {
1666 0 : case LSA_POLICY_INFO_AUDIT_LOG: val = "LSA_POLICY_INFO_AUDIT_LOG"; break;
1667 0 : case LSA_POLICY_INFO_AUDIT_EVENTS: val = "LSA_POLICY_INFO_AUDIT_EVENTS"; break;
1668 0 : case LSA_POLICY_INFO_DOMAIN: val = "LSA_POLICY_INFO_DOMAIN"; break;
1669 0 : case LSA_POLICY_INFO_PD: val = "LSA_POLICY_INFO_PD"; break;
1670 2 : case LSA_POLICY_INFO_ACCOUNT_DOMAIN: val = "LSA_POLICY_INFO_ACCOUNT_DOMAIN"; break;
1671 0 : case LSA_POLICY_INFO_ROLE: val = "LSA_POLICY_INFO_ROLE"; break;
1672 0 : case LSA_POLICY_INFO_REPLICA: val = "LSA_POLICY_INFO_REPLICA"; break;
1673 0 : case LSA_POLICY_INFO_QUOTA: val = "LSA_POLICY_INFO_QUOTA"; break;
1674 0 : case LSA_POLICY_INFO_MOD: val = "LSA_POLICY_INFO_MOD"; break;
1675 0 : case LSA_POLICY_INFO_AUDIT_FULL_SET: val = "LSA_POLICY_INFO_AUDIT_FULL_SET"; break;
1676 0 : case LSA_POLICY_INFO_AUDIT_FULL_QUERY: val = "LSA_POLICY_INFO_AUDIT_FULL_QUERY"; break;
1677 0 : case LSA_POLICY_INFO_DNS: val = "LSA_POLICY_INFO_DNS"; break;
1678 0 : case LSA_POLICY_INFO_DNS_INT: val = "LSA_POLICY_INFO_DNS_INT"; break;
1679 0 : case LSA_POLICY_INFO_L_ACCOUNT_DOMAIN: val = "LSA_POLICY_INFO_L_ACCOUNT_DOMAIN"; break;
1680 : }
1681 2 : ndr_print_enum(ndr, name, "ENUM", val, r);
1682 2 : }
1683 :
1684 3213 : static enum ndr_err_code ndr_push_lsa_PolicyInformation(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union lsa_PolicyInformation *r)
1685 : {
1686 218 : uint32_t level;
1687 3213 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
1688 3213 : if (ndr_flags & NDR_SCALARS) {
1689 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
1690 3213 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
1691 3213 : NDR_CHECK(ndr_push_union_align(ndr, 8));
1692 3213 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, level));
1693 3213 : NDR_CHECK(ndr_push_union_align(ndr, 8));
1694 3213 : switch (level) {
1695 40 : case LSA_POLICY_INFO_AUDIT_LOG: {
1696 40 : NDR_CHECK(ndr_push_lsa_AuditLogInfo(ndr, NDR_SCALARS, &r->audit_log));
1697 40 : break; }
1698 :
1699 40 : case LSA_POLICY_INFO_AUDIT_EVENTS: {
1700 40 : NDR_CHECK(ndr_push_lsa_AuditEventsInfo(ndr, NDR_SCALARS, &r->audit_events));
1701 40 : break; }
1702 :
1703 855 : case LSA_POLICY_INFO_DOMAIN: {
1704 855 : NDR_CHECK(ndr_push_lsa_DomainInfo(ndr, NDR_SCALARS, &r->domain));
1705 747 : break; }
1706 :
1707 40 : case LSA_POLICY_INFO_PD: {
1708 40 : NDR_CHECK(ndr_push_lsa_PDAccountInfo(ndr, NDR_SCALARS, &r->pd));
1709 40 : break; }
1710 :
1711 905 : case LSA_POLICY_INFO_ACCOUNT_DOMAIN: {
1712 905 : NDR_CHECK(ndr_push_lsa_DomainInfo(ndr, NDR_SCALARS, &r->account_domain));
1713 905 : break; }
1714 :
1715 40 : case LSA_POLICY_INFO_ROLE: {
1716 40 : NDR_CHECK(ndr_push_lsa_ServerRole(ndr, NDR_SCALARS, &r->role));
1717 40 : break; }
1718 :
1719 40 : case LSA_POLICY_INFO_REPLICA: {
1720 40 : NDR_CHECK(ndr_push_lsa_ReplicaSourceInfo(ndr, NDR_SCALARS, &r->replica));
1721 40 : break; }
1722 :
1723 40 : case LSA_POLICY_INFO_QUOTA: {
1724 40 : NDR_CHECK(ndr_push_lsa_DefaultQuotaInfo(ndr, NDR_SCALARS, &r->quota));
1725 40 : break; }
1726 :
1727 0 : case LSA_POLICY_INFO_MOD: {
1728 0 : NDR_CHECK(ndr_push_lsa_ModificationInfo(ndr, NDR_SCALARS, &r->mod));
1729 0 : break; }
1730 :
1731 0 : case LSA_POLICY_INFO_AUDIT_FULL_SET: {
1732 0 : NDR_CHECK(ndr_push_lsa_AuditFullSetInfo(ndr, NDR_SCALARS, &r->auditfullset));
1733 0 : break; }
1734 :
1735 0 : case LSA_POLICY_INFO_AUDIT_FULL_QUERY: {
1736 0 : NDR_CHECK(ndr_push_lsa_AuditFullQueryInfo(ndr, NDR_SCALARS, &r->auditfullquery));
1737 0 : break; }
1738 :
1739 1133 : case LSA_POLICY_INFO_DNS: {
1740 1133 : NDR_CHECK(ndr_push_lsa_DnsDomainInfo(ndr, NDR_SCALARS, &r->dns));
1741 1023 : break; }
1742 :
1743 40 : case LSA_POLICY_INFO_DNS_INT: {
1744 40 : NDR_CHECK(ndr_push_lsa_DnsDomainInfo(ndr, NDR_SCALARS, &r->dns_int));
1745 40 : break; }
1746 :
1747 40 : case LSA_POLICY_INFO_L_ACCOUNT_DOMAIN: {
1748 40 : NDR_CHECK(ndr_push_lsa_DomainInfo(ndr, NDR_SCALARS, &r->l_account_domain));
1749 40 : break; }
1750 :
1751 0 : default:
1752 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
1753 : }
1754 : }
1755 3213 : if (ndr_flags & NDR_BUFFERS) {
1756 3213 : if (!(ndr_flags & NDR_SCALARS)) {
1757 : /* We didn't get it above, and the token is not needed after this. */
1758 0 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
1759 : }
1760 3213 : switch (level) {
1761 40 : case LSA_POLICY_INFO_AUDIT_LOG:
1762 40 : break;
1763 :
1764 40 : case LSA_POLICY_INFO_AUDIT_EVENTS:
1765 40 : NDR_CHECK(ndr_push_lsa_AuditEventsInfo(ndr, NDR_BUFFERS, &r->audit_events));
1766 40 : break;
1767 :
1768 855 : case LSA_POLICY_INFO_DOMAIN:
1769 855 : NDR_CHECK(ndr_push_lsa_DomainInfo(ndr, NDR_BUFFERS, &r->domain));
1770 747 : break;
1771 :
1772 40 : case LSA_POLICY_INFO_PD:
1773 40 : NDR_CHECK(ndr_push_lsa_PDAccountInfo(ndr, NDR_BUFFERS, &r->pd));
1774 40 : break;
1775 :
1776 905 : case LSA_POLICY_INFO_ACCOUNT_DOMAIN:
1777 905 : NDR_CHECK(ndr_push_lsa_DomainInfo(ndr, NDR_BUFFERS, &r->account_domain));
1778 905 : break;
1779 :
1780 40 : case LSA_POLICY_INFO_ROLE:
1781 40 : break;
1782 :
1783 40 : case LSA_POLICY_INFO_REPLICA:
1784 40 : NDR_CHECK(ndr_push_lsa_ReplicaSourceInfo(ndr, NDR_BUFFERS, &r->replica));
1785 40 : break;
1786 :
1787 40 : case LSA_POLICY_INFO_QUOTA:
1788 40 : break;
1789 :
1790 0 : case LSA_POLICY_INFO_MOD:
1791 0 : break;
1792 :
1793 0 : case LSA_POLICY_INFO_AUDIT_FULL_SET:
1794 0 : break;
1795 :
1796 0 : case LSA_POLICY_INFO_AUDIT_FULL_QUERY:
1797 0 : break;
1798 :
1799 1133 : case LSA_POLICY_INFO_DNS:
1800 1133 : NDR_CHECK(ndr_push_lsa_DnsDomainInfo(ndr, NDR_BUFFERS, &r->dns));
1801 1023 : break;
1802 :
1803 40 : case LSA_POLICY_INFO_DNS_INT:
1804 40 : NDR_CHECK(ndr_push_lsa_DnsDomainInfo(ndr, NDR_BUFFERS, &r->dns_int));
1805 40 : break;
1806 :
1807 40 : case LSA_POLICY_INFO_L_ACCOUNT_DOMAIN:
1808 40 : NDR_CHECK(ndr_push_lsa_DomainInfo(ndr, NDR_BUFFERS, &r->l_account_domain));
1809 40 : break;
1810 :
1811 0 : default:
1812 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
1813 : }
1814 : }
1815 2995 : return NDR_ERR_SUCCESS;
1816 : }
1817 :
1818 2926 : static enum ndr_err_code ndr_pull_lsa_PolicyInformation(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union lsa_PolicyInformation *r)
1819 : {
1820 182 : uint32_t level;
1821 182 : uint16_t _level;
1822 2926 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
1823 2926 : if (ndr_flags & NDR_SCALARS) {
1824 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
1825 2926 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
1826 2926 : NDR_CHECK(ndr_pull_union_align(ndr, 8));
1827 2926 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &_level));
1828 2926 : if (_level != level) {
1829 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu16" for r at %s", (uint16_t)_level, __location__);
1830 : }
1831 2926 : NDR_CHECK(ndr_pull_union_align(ndr, 8));
1832 2926 : switch (level) {
1833 34 : case LSA_POLICY_INFO_AUDIT_LOG: {
1834 34 : NDR_CHECK(ndr_pull_lsa_AuditLogInfo(ndr, NDR_SCALARS, &r->audit_log));
1835 34 : break; }
1836 :
1837 34 : case LSA_POLICY_INFO_AUDIT_EVENTS: {
1838 34 : NDR_CHECK(ndr_pull_lsa_AuditEventsInfo(ndr, NDR_SCALARS, &r->audit_events));
1839 34 : break; }
1840 :
1841 757 : case LSA_POLICY_INFO_DOMAIN: {
1842 757 : NDR_CHECK(ndr_pull_lsa_DomainInfo(ndr, NDR_SCALARS, &r->domain));
1843 667 : break; }
1844 :
1845 34 : case LSA_POLICY_INFO_PD: {
1846 34 : NDR_CHECK(ndr_pull_lsa_PDAccountInfo(ndr, NDR_SCALARS, &r->pd));
1847 34 : break; }
1848 :
1849 928 : case LSA_POLICY_INFO_ACCOUNT_DOMAIN: {
1850 928 : NDR_CHECK(ndr_pull_lsa_DomainInfo(ndr, NDR_SCALARS, &r->account_domain));
1851 928 : break; }
1852 :
1853 34 : case LSA_POLICY_INFO_ROLE: {
1854 34 : NDR_CHECK(ndr_pull_lsa_ServerRole(ndr, NDR_SCALARS, &r->role));
1855 34 : break; }
1856 :
1857 34 : case LSA_POLICY_INFO_REPLICA: {
1858 34 : NDR_CHECK(ndr_pull_lsa_ReplicaSourceInfo(ndr, NDR_SCALARS, &r->replica));
1859 34 : break; }
1860 :
1861 34 : case LSA_POLICY_INFO_QUOTA: {
1862 34 : NDR_CHECK(ndr_pull_lsa_DefaultQuotaInfo(ndr, NDR_SCALARS, &r->quota));
1863 34 : break; }
1864 :
1865 0 : case LSA_POLICY_INFO_MOD: {
1866 0 : NDR_CHECK(ndr_pull_lsa_ModificationInfo(ndr, NDR_SCALARS, &r->mod));
1867 0 : break; }
1868 :
1869 0 : case LSA_POLICY_INFO_AUDIT_FULL_SET: {
1870 0 : NDR_CHECK(ndr_pull_lsa_AuditFullSetInfo(ndr, NDR_SCALARS, &r->auditfullset));
1871 0 : break; }
1872 :
1873 0 : case LSA_POLICY_INFO_AUDIT_FULL_QUERY: {
1874 0 : NDR_CHECK(ndr_pull_lsa_AuditFullQueryInfo(ndr, NDR_SCALARS, &r->auditfullquery));
1875 0 : break; }
1876 :
1877 969 : case LSA_POLICY_INFO_DNS: {
1878 969 : NDR_CHECK(ndr_pull_lsa_DnsDomainInfo(ndr, NDR_SCALARS, &r->dns));
1879 877 : break; }
1880 :
1881 34 : case LSA_POLICY_INFO_DNS_INT: {
1882 34 : NDR_CHECK(ndr_pull_lsa_DnsDomainInfo(ndr, NDR_SCALARS, &r->dns_int));
1883 34 : break; }
1884 :
1885 34 : case LSA_POLICY_INFO_L_ACCOUNT_DOMAIN: {
1886 34 : NDR_CHECK(ndr_pull_lsa_DomainInfo(ndr, NDR_SCALARS, &r->l_account_domain));
1887 34 : break; }
1888 :
1889 0 : default:
1890 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
1891 : }
1892 : }
1893 2926 : if (ndr_flags & NDR_BUFFERS) {
1894 2926 : if (!(ndr_flags & NDR_SCALARS)) {
1895 : /* We didn't get it above, and the token is not needed after this. */
1896 0 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
1897 : }
1898 2926 : switch (level) {
1899 34 : case LSA_POLICY_INFO_AUDIT_LOG:
1900 34 : break;
1901 :
1902 34 : case LSA_POLICY_INFO_AUDIT_EVENTS:
1903 34 : NDR_CHECK(ndr_pull_lsa_AuditEventsInfo(ndr, NDR_BUFFERS, &r->audit_events));
1904 34 : break;
1905 :
1906 757 : case LSA_POLICY_INFO_DOMAIN:
1907 757 : NDR_CHECK(ndr_pull_lsa_DomainInfo(ndr, NDR_BUFFERS, &r->domain));
1908 667 : break;
1909 :
1910 34 : case LSA_POLICY_INFO_PD:
1911 34 : NDR_CHECK(ndr_pull_lsa_PDAccountInfo(ndr, NDR_BUFFERS, &r->pd));
1912 34 : break;
1913 :
1914 928 : case LSA_POLICY_INFO_ACCOUNT_DOMAIN:
1915 928 : NDR_CHECK(ndr_pull_lsa_DomainInfo(ndr, NDR_BUFFERS, &r->account_domain));
1916 928 : break;
1917 :
1918 34 : case LSA_POLICY_INFO_ROLE:
1919 34 : break;
1920 :
1921 34 : case LSA_POLICY_INFO_REPLICA:
1922 34 : NDR_CHECK(ndr_pull_lsa_ReplicaSourceInfo(ndr, NDR_BUFFERS, &r->replica));
1923 34 : break;
1924 :
1925 34 : case LSA_POLICY_INFO_QUOTA:
1926 34 : break;
1927 :
1928 0 : case LSA_POLICY_INFO_MOD:
1929 0 : break;
1930 :
1931 0 : case LSA_POLICY_INFO_AUDIT_FULL_SET:
1932 0 : break;
1933 :
1934 0 : case LSA_POLICY_INFO_AUDIT_FULL_QUERY:
1935 0 : break;
1936 :
1937 969 : case LSA_POLICY_INFO_DNS:
1938 969 : NDR_CHECK(ndr_pull_lsa_DnsDomainInfo(ndr, NDR_BUFFERS, &r->dns));
1939 877 : break;
1940 :
1941 34 : case LSA_POLICY_INFO_DNS_INT:
1942 34 : NDR_CHECK(ndr_pull_lsa_DnsDomainInfo(ndr, NDR_BUFFERS, &r->dns_int));
1943 34 : break;
1944 :
1945 34 : case LSA_POLICY_INFO_L_ACCOUNT_DOMAIN:
1946 34 : NDR_CHECK(ndr_pull_lsa_DomainInfo(ndr, NDR_BUFFERS, &r->l_account_domain));
1947 34 : break;
1948 :
1949 0 : default:
1950 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
1951 : }
1952 : }
1953 2744 : return NDR_ERR_SUCCESS;
1954 : }
1955 :
1956 682 : _PUBLIC_ void ndr_print_lsa_PolicyInformation(struct ndr_print *ndr, const char *name, const union lsa_PolicyInformation *r)
1957 : {
1958 72 : uint32_t level;
1959 682 : level = ndr_print_steal_switch_value(ndr, r);
1960 682 : ndr_print_union(ndr, name, level, "lsa_PolicyInformation");
1961 682 : switch (level) {
1962 16 : case LSA_POLICY_INFO_AUDIT_LOG:
1963 16 : ndr_print_lsa_AuditLogInfo(ndr, "audit_log", &r->audit_log);
1964 16 : break;
1965 :
1966 16 : case LSA_POLICY_INFO_AUDIT_EVENTS:
1967 16 : ndr_print_lsa_AuditEventsInfo(ndr, "audit_events", &r->audit_events);
1968 16 : break;
1969 :
1970 268 : case LSA_POLICY_INFO_DOMAIN:
1971 268 : ndr_print_lsa_DomainInfo(ndr, "domain", &r->domain);
1972 268 : break;
1973 :
1974 16 : case LSA_POLICY_INFO_PD:
1975 16 : ndr_print_lsa_PDAccountInfo(ndr, "pd", &r->pd);
1976 16 : break;
1977 :
1978 18 : case LSA_POLICY_INFO_ACCOUNT_DOMAIN:
1979 18 : ndr_print_lsa_DomainInfo(ndr, "account_domain", &r->account_domain);
1980 18 : break;
1981 :
1982 16 : case LSA_POLICY_INFO_ROLE:
1983 16 : ndr_print_lsa_ServerRole(ndr, "role", &r->role);
1984 16 : break;
1985 :
1986 16 : case LSA_POLICY_INFO_REPLICA:
1987 16 : ndr_print_lsa_ReplicaSourceInfo(ndr, "replica", &r->replica);
1988 16 : break;
1989 :
1990 16 : case LSA_POLICY_INFO_QUOTA:
1991 16 : ndr_print_lsa_DefaultQuotaInfo(ndr, "quota", &r->quota);
1992 16 : break;
1993 :
1994 0 : case LSA_POLICY_INFO_MOD:
1995 0 : ndr_print_lsa_ModificationInfo(ndr, "mod", &r->mod);
1996 0 : break;
1997 :
1998 0 : case LSA_POLICY_INFO_AUDIT_FULL_SET:
1999 0 : ndr_print_lsa_AuditFullSetInfo(ndr, "auditfullset", &r->auditfullset);
2000 0 : break;
2001 :
2002 0 : case LSA_POLICY_INFO_AUDIT_FULL_QUERY:
2003 0 : ndr_print_lsa_AuditFullQueryInfo(ndr, "auditfullquery", &r->auditfullquery);
2004 0 : break;
2005 :
2006 268 : case LSA_POLICY_INFO_DNS:
2007 268 : ndr_print_lsa_DnsDomainInfo(ndr, "dns", &r->dns);
2008 268 : break;
2009 :
2010 16 : case LSA_POLICY_INFO_DNS_INT:
2011 16 : ndr_print_lsa_DnsDomainInfo(ndr, "dns_int", &r->dns_int);
2012 16 : break;
2013 :
2014 16 : case LSA_POLICY_INFO_L_ACCOUNT_DOMAIN:
2015 16 : ndr_print_lsa_DomainInfo(ndr, "l_account_domain", &r->l_account_domain);
2016 16 : break;
2017 :
2018 0 : default:
2019 0 : ndr_print_bad_level(ndr, name, level);
2020 : }
2021 682 : }
2022 :
2023 97258 : static enum ndr_err_code ndr_push_lsa_SidPtr(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_SidPtr *r)
2024 : {
2025 97258 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2026 97258 : if (ndr_flags & NDR_SCALARS) {
2027 48629 : NDR_CHECK(ndr_push_align(ndr, 5));
2028 48629 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->sid));
2029 48629 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2030 : }
2031 97258 : if (ndr_flags & NDR_BUFFERS) {
2032 48629 : if (r->sid) {
2033 48629 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
2034 : }
2035 : }
2036 85258 : return NDR_ERR_SUCCESS;
2037 : }
2038 :
2039 108706 : static enum ndr_err_code ndr_pull_lsa_SidPtr(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_SidPtr *r)
2040 : {
2041 12484 : uint32_t _ptr_sid;
2042 108706 : TALLOC_CTX *_mem_save_sid_0 = NULL;
2043 108706 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2044 108706 : if (ndr_flags & NDR_SCALARS) {
2045 54353 : NDR_CHECK(ndr_pull_align(ndr, 5));
2046 54353 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sid));
2047 54353 : if (_ptr_sid) {
2048 54353 : NDR_PULL_ALLOC(ndr, r->sid);
2049 : } else {
2050 0 : r->sid = NULL;
2051 : }
2052 54353 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2053 : }
2054 108706 : if (ndr_flags & NDR_BUFFERS) {
2055 54353 : if (r->sid) {
2056 54353 : _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
2057 54353 : NDR_PULL_SET_MEM_CTX(ndr, r->sid, 0);
2058 54353 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
2059 54353 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, 0);
2060 : }
2061 : }
2062 96222 : return NDR_ERR_SUCCESS;
2063 : }
2064 :
2065 318 : _PUBLIC_ void ndr_print_lsa_SidPtr(struct ndr_print *ndr, const char *name, const struct lsa_SidPtr *r)
2066 : {
2067 318 : ndr_print_struct(ndr, name, "lsa_SidPtr");
2068 318 : if (r == NULL) { ndr_print_null(ndr); return; }
2069 318 : ndr->depth++;
2070 318 : ndr_print_ptr(ndr, "sid", r->sid);
2071 318 : ndr->depth++;
2072 318 : if (r->sid) {
2073 318 : ndr_print_dom_sid2(ndr, "sid", r->sid);
2074 : }
2075 318 : ndr->depth--;
2076 318 : ndr->depth--;
2077 : }
2078 :
2079 10378 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_SidArray(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_SidArray *r)
2080 : {
2081 60 : uint32_t cntr_sids_1;
2082 10378 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2083 10378 : if (ndr_flags & NDR_SCALARS) {
2084 10378 : NDR_CHECK(ndr_push_align(ndr, 5));
2085 10378 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_sids));
2086 10378 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->sids));
2087 10378 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2088 : }
2089 10378 : if (ndr_flags & NDR_BUFFERS) {
2090 10378 : if (r->sids) {
2091 9978 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->num_sids));
2092 58607 : for (cntr_sids_1 = 0; cntr_sids_1 < (r->num_sids); cntr_sids_1++) {
2093 48629 : NDR_CHECK(ndr_push_lsa_SidPtr(ndr, NDR_SCALARS, &r->sids[cntr_sids_1]));
2094 : }
2095 58607 : for (cntr_sids_1 = 0; cntr_sids_1 < (r->num_sids); cntr_sids_1++) {
2096 48629 : NDR_CHECK(ndr_push_lsa_SidPtr(ndr, NDR_BUFFERS, &r->sids[cntr_sids_1]));
2097 : }
2098 : }
2099 : }
2100 10318 : return NDR_ERR_SUCCESS;
2101 : }
2102 :
2103 14497 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_SidArray(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_SidArray *r)
2104 : {
2105 68 : uint32_t _ptr_sids;
2106 14497 : uint32_t size_sids_1 = 0;
2107 68 : uint32_t cntr_sids_1;
2108 14497 : TALLOC_CTX *_mem_save_sids_0 = NULL;
2109 14497 : TALLOC_CTX *_mem_save_sids_1 = NULL;
2110 14497 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2111 14497 : if (ndr_flags & NDR_SCALARS) {
2112 14497 : NDR_CHECK(ndr_pull_align(ndr, 5));
2113 14497 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_sids));
2114 14497 : if (r->num_sids > 20480) {
2115 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->num_sids), (uint32_t)(0), (uint32_t)(20480));
2116 : }
2117 14497 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sids));
2118 14497 : if (_ptr_sids) {
2119 12893 : NDR_PULL_ALLOC(ndr, r->sids);
2120 : } else {
2121 1604 : r->sids = NULL;
2122 : }
2123 14497 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2124 : }
2125 14497 : if (ndr_flags & NDR_BUFFERS) {
2126 14497 : if (r->sids) {
2127 12893 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
2128 12893 : NDR_PULL_SET_MEM_CTX(ndr, r->sids, 0);
2129 12893 : NDR_CHECK(ndr_pull_array_size(ndr, &r->sids));
2130 12893 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->sids, &size_sids_1));
2131 12893 : NDR_PULL_ALLOC_N(ndr, r->sids, size_sids_1);
2132 12893 : _mem_save_sids_1 = NDR_PULL_GET_MEM_CTX(ndr);
2133 12893 : NDR_PULL_SET_MEM_CTX(ndr, r->sids, 0);
2134 67246 : for (cntr_sids_1 = 0; cntr_sids_1 < (size_sids_1); cntr_sids_1++) {
2135 54353 : NDR_CHECK(ndr_pull_lsa_SidPtr(ndr, NDR_SCALARS, &r->sids[cntr_sids_1]));
2136 : }
2137 67246 : for (cntr_sids_1 = 0; cntr_sids_1 < (size_sids_1); cntr_sids_1++) {
2138 54353 : NDR_CHECK(ndr_pull_lsa_SidPtr(ndr, NDR_BUFFERS, &r->sids[cntr_sids_1]));
2139 : }
2140 12893 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_1, 0);
2141 12893 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, 0);
2142 : }
2143 14497 : if (r->sids) {
2144 12893 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->sids, r->num_sids));
2145 : }
2146 68850 : for (cntr_sids_1 = 0; cntr_sids_1 < (size_sids_1); cntr_sids_1++) {
2147 6242 : }
2148 : }
2149 14429 : return NDR_ERR_SUCCESS;
2150 : }
2151 :
2152 0 : static void ndr_print_flags_lsa_SidArray(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_SidArray *r)
2153 : {
2154 0 : ndr_print_lsa_SidArray(ndr, name, r);
2155 0 : }
2156 :
2157 62 : _PUBLIC_ void ndr_print_lsa_SidArray(struct ndr_print *ndr, const char *name, const struct lsa_SidArray *r)
2158 : {
2159 8 : uint32_t cntr_sids_1;
2160 62 : ndr_print_struct(ndr, name, "lsa_SidArray");
2161 62 : if (r == NULL) { ndr_print_null(ndr); return; }
2162 62 : ndr->depth++;
2163 62 : ndr_print_uint32(ndr, "num_sids", r->num_sids);
2164 62 : ndr_print_ptr(ndr, "sids", r->sids);
2165 62 : ndr->depth++;
2166 62 : if (r->sids) {
2167 52 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "sids", (uint32_t)(r->num_sids));
2168 52 : ndr->depth++;
2169 370 : for (cntr_sids_1 = 0; cntr_sids_1 < (r->num_sids); cntr_sids_1++) {
2170 318 : ndr_print_lsa_SidPtr(ndr, "sids", &r->sids[cntr_sids_1]);
2171 : }
2172 52 : ndr->depth--;
2173 : }
2174 62 : ndr->depth--;
2175 62 : ndr->depth--;
2176 : }
2177 :
2178 130 : static enum ndr_err_code ndr_push_lsa_DomainList(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_DomainList *r)
2179 : {
2180 5 : uint32_t cntr_domains_1;
2181 130 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2182 130 : if (ndr_flags & NDR_SCALARS) {
2183 130 : NDR_CHECK(ndr_push_align(ndr, 5));
2184 130 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
2185 130 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->domains));
2186 130 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2187 : }
2188 130 : if (ndr_flags & NDR_BUFFERS) {
2189 130 : if (r->domains) {
2190 80 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
2191 340 : for (cntr_domains_1 = 0; cntr_domains_1 < (r->count); cntr_domains_1++) {
2192 260 : NDR_CHECK(ndr_push_lsa_DomainInfo(ndr, NDR_SCALARS, &r->domains[cntr_domains_1]));
2193 : }
2194 340 : for (cntr_domains_1 = 0; cntr_domains_1 < (r->count); cntr_domains_1++) {
2195 260 : NDR_CHECK(ndr_push_lsa_DomainInfo(ndr, NDR_BUFFERS, &r->domains[cntr_domains_1]));
2196 : }
2197 : }
2198 : }
2199 125 : return NDR_ERR_SUCCESS;
2200 : }
2201 :
2202 104 : static enum ndr_err_code ndr_pull_lsa_DomainList(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_DomainList *r)
2203 : {
2204 4 : uint32_t _ptr_domains;
2205 104 : uint32_t size_domains_1 = 0;
2206 4 : uint32_t cntr_domains_1;
2207 104 : TALLOC_CTX *_mem_save_domains_0 = NULL;
2208 104 : TALLOC_CTX *_mem_save_domains_1 = NULL;
2209 104 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2210 104 : if (ndr_flags & NDR_SCALARS) {
2211 104 : NDR_CHECK(ndr_pull_align(ndr, 5));
2212 104 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
2213 104 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_domains));
2214 104 : if (_ptr_domains) {
2215 64 : NDR_PULL_ALLOC(ndr, r->domains);
2216 : } else {
2217 40 : r->domains = NULL;
2218 : }
2219 104 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2220 : }
2221 104 : if (ndr_flags & NDR_BUFFERS) {
2222 104 : if (r->domains) {
2223 64 : _mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
2224 64 : NDR_PULL_SET_MEM_CTX(ndr, r->domains, 0);
2225 64 : NDR_CHECK(ndr_pull_array_size(ndr, &r->domains));
2226 64 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->domains, &size_domains_1));
2227 64 : NDR_PULL_ALLOC_N(ndr, r->domains, size_domains_1);
2228 64 : _mem_save_domains_1 = NDR_PULL_GET_MEM_CTX(ndr);
2229 64 : NDR_PULL_SET_MEM_CTX(ndr, r->domains, 0);
2230 272 : for (cntr_domains_1 = 0; cntr_domains_1 < (size_domains_1); cntr_domains_1++) {
2231 208 : NDR_CHECK(ndr_pull_lsa_DomainInfo(ndr, NDR_SCALARS, &r->domains[cntr_domains_1]));
2232 : }
2233 272 : for (cntr_domains_1 = 0; cntr_domains_1 < (size_domains_1); cntr_domains_1++) {
2234 208 : NDR_CHECK(ndr_pull_lsa_DomainInfo(ndr, NDR_BUFFERS, &r->domains[cntr_domains_1]));
2235 : }
2236 64 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_1, 0);
2237 64 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, 0);
2238 : }
2239 104 : if (r->domains) {
2240 64 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->domains, r->count));
2241 : }
2242 312 : for (cntr_domains_1 = 0; cntr_domains_1 < (size_domains_1); cntr_domains_1++) {
2243 0 : }
2244 : }
2245 100 : return NDR_ERR_SUCCESS;
2246 : }
2247 :
2248 52 : _PUBLIC_ void ndr_print_lsa_DomainList(struct ndr_print *ndr, const char *name, const struct lsa_DomainList *r)
2249 : {
2250 2 : uint32_t cntr_domains_1;
2251 52 : ndr_print_struct(ndr, name, "lsa_DomainList");
2252 52 : if (r == NULL) { ndr_print_null(ndr); return; }
2253 52 : ndr->depth++;
2254 52 : ndr_print_uint32(ndr, "count", r->count);
2255 52 : ndr_print_ptr(ndr, "domains", r->domains);
2256 52 : ndr->depth++;
2257 52 : if (r->domains) {
2258 32 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "domains", (uint32_t)(r->count));
2259 32 : ndr->depth++;
2260 136 : for (cntr_domains_1 = 0; cntr_domains_1 < (r->count); cntr_domains_1++) {
2261 104 : ndr_print_lsa_DomainInfo(ndr, "domains", &r->domains[cntr_domains_1]);
2262 : }
2263 32 : ndr->depth--;
2264 : }
2265 52 : ndr->depth--;
2266 52 : ndr->depth--;
2267 : }
2268 :
2269 161404 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_SidType(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_SidType r)
2270 : {
2271 161404 : NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
2272 81446 : return NDR_ERR_SUCCESS;
2273 : }
2274 :
2275 281850 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_SidType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_SidType *r)
2276 : {
2277 78000 : uint16_t v;
2278 281850 : NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
2279 281850 : *r = v;
2280 281850 : return NDR_ERR_SUCCESS;
2281 : }
2282 :
2283 31832 : _PUBLIC_ void ndr_print_lsa_SidType(struct ndr_print *ndr, const char *name, enum lsa_SidType r)
2284 : {
2285 31832 : const char *val = NULL;
2286 :
2287 31832 : switch (r) {
2288 0 : case SID_NAME_USE_NONE: val = "SID_NAME_USE_NONE"; break;
2289 380 : case SID_NAME_USER: val = "SID_NAME_USER"; break;
2290 2 : case SID_NAME_DOM_GRP: val = "SID_NAME_DOM_GRP"; break;
2291 138 : case SID_NAME_DOMAIN: val = "SID_NAME_DOMAIN"; break;
2292 31274 : case SID_NAME_ALIAS: val = "SID_NAME_ALIAS"; break;
2293 34 : case SID_NAME_WKN_GRP: val = "SID_NAME_WKN_GRP"; break;
2294 0 : case SID_NAME_DELETED: val = "SID_NAME_DELETED"; break;
2295 0 : case SID_NAME_INVALID: val = "SID_NAME_INVALID"; break;
2296 4 : case SID_NAME_UNKNOWN: val = "SID_NAME_UNKNOWN"; break;
2297 0 : case SID_NAME_COMPUTER: val = "SID_NAME_COMPUTER"; break;
2298 0 : case SID_NAME_LABEL: val = "SID_NAME_LABEL"; break;
2299 : }
2300 31832 : ndr_print_enum(ndr, name, "ENUM", val, r);
2301 31832 : }
2302 :
2303 4941 : static enum ndr_err_code ndr_push_lsa_TranslatedSid(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TranslatedSid *r)
2304 : {
2305 4941 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2306 4941 : if (ndr_flags & NDR_SCALARS) {
2307 4941 : NDR_CHECK(ndr_push_align(ndr, 4));
2308 4941 : NDR_CHECK(ndr_push_lsa_SidType(ndr, NDR_SCALARS, r->sid_type));
2309 4941 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->rid));
2310 4941 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_index));
2311 4941 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
2312 : }
2313 4941 : if (ndr_flags & NDR_BUFFERS) {
2314 0 : }
2315 4941 : return NDR_ERR_SUCCESS;
2316 : }
2317 :
2318 4783 : static enum ndr_err_code ndr_pull_lsa_TranslatedSid(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TranslatedSid *r)
2319 : {
2320 4783 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2321 4783 : if (ndr_flags & NDR_SCALARS) {
2322 4783 : NDR_CHECK(ndr_pull_align(ndr, 4));
2323 4783 : NDR_CHECK(ndr_pull_lsa_SidType(ndr, NDR_SCALARS, &r->sid_type));
2324 4783 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->rid));
2325 4783 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_index));
2326 4783 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
2327 : }
2328 4783 : if (ndr_flags & NDR_BUFFERS) {
2329 200 : }
2330 4783 : return NDR_ERR_SUCCESS;
2331 : }
2332 :
2333 1536 : _PUBLIC_ void ndr_print_lsa_TranslatedSid(struct ndr_print *ndr, const char *name, const struct lsa_TranslatedSid *r)
2334 : {
2335 1536 : ndr_print_struct(ndr, name, "lsa_TranslatedSid");
2336 1536 : if (r == NULL) { ndr_print_null(ndr); return; }
2337 1536 : ndr->depth++;
2338 1536 : ndr_print_lsa_SidType(ndr, "sid_type", r->sid_type);
2339 1536 : ndr_print_uint32(ndr, "rid", r->rid);
2340 1536 : ndr_print_uint32(ndr, "sid_index", r->sid_index);
2341 1536 : ndr->depth--;
2342 : }
2343 :
2344 3833 : static enum ndr_err_code ndr_push_lsa_TransSidArray(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TransSidArray *r)
2345 : {
2346 0 : uint32_t cntr_sids_1;
2347 3833 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2348 3833 : if (ndr_flags & NDR_SCALARS) {
2349 3833 : NDR_CHECK(ndr_push_align(ndr, 5));
2350 3833 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
2351 3833 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->sids));
2352 3833 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2353 : }
2354 3833 : if (ndr_flags & NDR_BUFFERS) {
2355 3833 : if (r->sids) {
2356 1895 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
2357 6836 : for (cntr_sids_1 = 0; cntr_sids_1 < (r->count); cntr_sids_1++) {
2358 4941 : NDR_CHECK(ndr_push_lsa_TranslatedSid(ndr, NDR_SCALARS, &r->sids[cntr_sids_1]));
2359 : }
2360 : }
2361 : }
2362 3833 : return NDR_ERR_SUCCESS;
2363 : }
2364 :
2365 3778 : static enum ndr_err_code ndr_pull_lsa_TransSidArray(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TransSidArray *r)
2366 : {
2367 4 : uint32_t _ptr_sids;
2368 3778 : uint32_t size_sids_1 = 0;
2369 4 : uint32_t cntr_sids_1;
2370 3778 : TALLOC_CTX *_mem_save_sids_0 = NULL;
2371 3778 : TALLOC_CTX *_mem_save_sids_1 = NULL;
2372 3778 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2373 3778 : if (ndr_flags & NDR_SCALARS) {
2374 3778 : NDR_CHECK(ndr_pull_align(ndr, 5));
2375 3778 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
2376 3778 : if (r->count > 1000) {
2377 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->count), (uint32_t)(0), (uint32_t)(1000));
2378 : }
2379 3778 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sids));
2380 3778 : if (_ptr_sids) {
2381 1940 : NDR_PULL_ALLOC(ndr, r->sids);
2382 : } else {
2383 1838 : r->sids = NULL;
2384 : }
2385 3778 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2386 : }
2387 3778 : if (ndr_flags & NDR_BUFFERS) {
2388 3778 : if (r->sids) {
2389 1940 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
2390 1940 : NDR_PULL_SET_MEM_CTX(ndr, r->sids, 0);
2391 1940 : NDR_CHECK(ndr_pull_array_size(ndr, &r->sids));
2392 1940 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->sids, &size_sids_1));
2393 1940 : NDR_PULL_ALLOC_N(ndr, r->sids, size_sids_1);
2394 1940 : _mem_save_sids_1 = NDR_PULL_GET_MEM_CTX(ndr);
2395 1940 : NDR_PULL_SET_MEM_CTX(ndr, r->sids, 0);
2396 6723 : for (cntr_sids_1 = 0; cntr_sids_1 < (size_sids_1); cntr_sids_1++) {
2397 4783 : NDR_CHECK(ndr_pull_lsa_TranslatedSid(ndr, NDR_SCALARS, &r->sids[cntr_sids_1]));
2398 : }
2399 1940 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_1, 0);
2400 1940 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, 0);
2401 : }
2402 3778 : if (r->sids) {
2403 1940 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->sids, r->count));
2404 : }
2405 : }
2406 3774 : return NDR_ERR_SUCCESS;
2407 : }
2408 :
2409 122 : _PUBLIC_ void ndr_print_lsa_TransSidArray(struct ndr_print *ndr, const char *name, const struct lsa_TransSidArray *r)
2410 : {
2411 4 : uint32_t cntr_sids_1;
2412 122 : ndr_print_struct(ndr, name, "lsa_TransSidArray");
2413 122 : if (r == NULL) { ndr_print_null(ndr); return; }
2414 122 : ndr->depth++;
2415 122 : ndr_print_uint32(ndr, "count", r->count);
2416 122 : ndr_print_ptr(ndr, "sids", r->sids);
2417 122 : ndr->depth++;
2418 122 : if (r->sids) {
2419 120 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "sids", (uint32_t)(r->count));
2420 120 : ndr->depth++;
2421 1656 : for (cntr_sids_1 = 0; cntr_sids_1 < (r->count); cntr_sids_1++) {
2422 1536 : ndr_print_lsa_TranslatedSid(ndr, "sids", &r->sids[cntr_sids_1]);
2423 : }
2424 120 : ndr->depth--;
2425 : }
2426 122 : ndr->depth--;
2427 122 : ndr->depth--;
2428 : }
2429 :
2430 15789 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_RefDomainList(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_RefDomainList *r)
2431 : {
2432 216 : uint32_t cntr_domains_1;
2433 15789 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2434 15789 : if (ndr_flags & NDR_SCALARS) {
2435 15789 : NDR_CHECK(ndr_push_align(ndr, 5));
2436 15789 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
2437 15789 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->domains));
2438 15789 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->max_size));
2439 15789 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2440 : }
2441 15789 : if (ndr_flags & NDR_BUFFERS) {
2442 15789 : if (r->domains) {
2443 14485 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
2444 28970 : for (cntr_domains_1 = 0; cntr_domains_1 < (r->count); cntr_domains_1++) {
2445 14485 : NDR_CHECK(ndr_push_lsa_DomainInfo(ndr, NDR_SCALARS, &r->domains[cntr_domains_1]));
2446 : }
2447 28970 : for (cntr_domains_1 = 0; cntr_domains_1 < (r->count); cntr_domains_1++) {
2448 14485 : NDR_CHECK(ndr_push_lsa_DomainInfo(ndr, NDR_BUFFERS, &r->domains[cntr_domains_1]));
2449 : }
2450 : }
2451 : }
2452 15573 : return NDR_ERR_SUCCESS;
2453 : }
2454 :
2455 12405 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_RefDomainList(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_RefDomainList *r)
2456 : {
2457 190 : uint32_t _ptr_domains;
2458 12405 : uint32_t size_domains_1 = 0;
2459 190 : uint32_t cntr_domains_1;
2460 12405 : TALLOC_CTX *_mem_save_domains_0 = NULL;
2461 12405 : TALLOC_CTX *_mem_save_domains_1 = NULL;
2462 12405 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2463 12405 : if (ndr_flags & NDR_SCALARS) {
2464 12405 : NDR_CHECK(ndr_pull_align(ndr, 5));
2465 12405 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
2466 12405 : if (r->count > 1000) {
2467 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->count), (uint32_t)(0), (uint32_t)(1000));
2468 : }
2469 12405 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_domains));
2470 12405 : if (_ptr_domains) {
2471 11585 : NDR_PULL_ALLOC(ndr, r->domains);
2472 : } else {
2473 820 : r->domains = NULL;
2474 : }
2475 12405 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->max_size));
2476 12405 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2477 : }
2478 12405 : if (ndr_flags & NDR_BUFFERS) {
2479 12405 : if (r->domains) {
2480 11585 : _mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
2481 11585 : NDR_PULL_SET_MEM_CTX(ndr, r->domains, 0);
2482 11585 : NDR_CHECK(ndr_pull_array_size(ndr, &r->domains));
2483 11585 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->domains, &size_domains_1));
2484 11585 : NDR_PULL_ALLOC_N(ndr, r->domains, size_domains_1);
2485 11585 : _mem_save_domains_1 = NDR_PULL_GET_MEM_CTX(ndr);
2486 11585 : NDR_PULL_SET_MEM_CTX(ndr, r->domains, 0);
2487 23198 : for (cntr_domains_1 = 0; cntr_domains_1 < (size_domains_1); cntr_domains_1++) {
2488 11613 : NDR_CHECK(ndr_pull_lsa_DomainInfo(ndr, NDR_SCALARS, &r->domains[cntr_domains_1]));
2489 : }
2490 23198 : for (cntr_domains_1 = 0; cntr_domains_1 < (size_domains_1); cntr_domains_1++) {
2491 11613 : NDR_CHECK(ndr_pull_lsa_DomainInfo(ndr, NDR_BUFFERS, &r->domains[cntr_domains_1]));
2492 : }
2493 11585 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_1, 0);
2494 11585 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, 0);
2495 : }
2496 12405 : if (r->domains) {
2497 11585 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->domains, r->count));
2498 : }
2499 24018 : for (cntr_domains_1 = 0; cntr_domains_1 < (size_domains_1); cntr_domains_1++) {
2500 148 : }
2501 : }
2502 12215 : return NDR_ERR_SUCCESS;
2503 : }
2504 :
2505 0 : static void ndr_print_flags_lsa_RefDomainList(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_RefDomainList *r)
2506 : {
2507 0 : ndr_print_lsa_RefDomainList(ndr, name, r);
2508 0 : }
2509 :
2510 982 : _PUBLIC_ void ndr_print_lsa_RefDomainList(struct ndr_print *ndr, const char *name, const struct lsa_RefDomainList *r)
2511 : {
2512 82 : uint32_t cntr_domains_1;
2513 982 : ndr_print_struct(ndr, name, "lsa_RefDomainList");
2514 982 : if (r == NULL) { ndr_print_null(ndr); return; }
2515 982 : ndr->depth++;
2516 982 : ndr_print_uint32(ndr, "count", r->count);
2517 982 : ndr_print_ptr(ndr, "domains", r->domains);
2518 982 : ndr->depth++;
2519 982 : if (r->domains) {
2520 834 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "domains", (uint32_t)(r->count));
2521 834 : ndr->depth++;
2522 1686 : for (cntr_domains_1 = 0; cntr_domains_1 < (r->count); cntr_domains_1++) {
2523 852 : ndr_print_lsa_DomainInfo(ndr, "domains", &r->domains[cntr_domains_1]);
2524 : }
2525 834 : ndr->depth--;
2526 : }
2527 982 : ndr->depth--;
2528 982 : ndr_print_uint32(ndr, "max_size", r->max_size);
2529 982 : ndr->depth--;
2530 : }
2531 :
2532 11293 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_LookupNamesLevel(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_LookupNamesLevel r)
2533 : {
2534 11293 : NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
2535 11113 : return NDR_ERR_SUCCESS;
2536 : }
2537 :
2538 11188 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_LookupNamesLevel(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_LookupNamesLevel *r)
2539 : {
2540 192 : uint16_t v;
2541 11188 : NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
2542 11188 : *r = v;
2543 11188 : return NDR_ERR_SUCCESS;
2544 : }
2545 :
2546 12 : _PUBLIC_ void ndr_print_lsa_LookupNamesLevel(struct ndr_print *ndr, const char *name, enum lsa_LookupNamesLevel r)
2547 : {
2548 12 : const char *val = NULL;
2549 :
2550 12 : switch (r) {
2551 12 : case LSA_LOOKUP_NAMES_ALL: val = "LSA_LOOKUP_NAMES_ALL"; break;
2552 0 : case LSA_LOOKUP_NAMES_DOMAINS_ONLY: val = "LSA_LOOKUP_NAMES_DOMAINS_ONLY"; break;
2553 0 : case LSA_LOOKUP_NAMES_PRIMARY_DOMAIN_ONLY: val = "LSA_LOOKUP_NAMES_PRIMARY_DOMAIN_ONLY"; break;
2554 0 : case LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY: val = "LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY"; break;
2555 0 : case LSA_LOOKUP_NAMES_FOREST_TRUSTS_ONLY: val = "LSA_LOOKUP_NAMES_FOREST_TRUSTS_ONLY"; break;
2556 0 : case LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY2: val = "LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY2"; break;
2557 0 : case LSA_LOOKUP_NAMES_RODC_REFERRAL_TO_FULL_DC: val = "LSA_LOOKUP_NAMES_RODC_REFERRAL_TO_FULL_DC"; break;
2558 : }
2559 12 : ndr_print_enum(ndr, name, "ENUM", val, r);
2560 12 : }
2561 :
2562 18040 : static enum ndr_err_code ndr_push_lsa_TranslatedName(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TranslatedName *r)
2563 : {
2564 18040 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2565 18040 : if (ndr_flags & NDR_SCALARS) {
2566 9020 : NDR_CHECK(ndr_push_align(ndr, 5));
2567 9020 : NDR_CHECK(ndr_push_lsa_SidType(ndr, NDR_SCALARS, r->sid_type));
2568 9020 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS, &r->name));
2569 9020 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_index));
2570 9020 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2571 : }
2572 18040 : if (ndr_flags & NDR_BUFFERS) {
2573 9020 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_BUFFERS, &r->name));
2574 : }
2575 18040 : return NDR_ERR_SUCCESS;
2576 : }
2577 :
2578 22814 : static enum ndr_err_code ndr_pull_lsa_TranslatedName(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TranslatedName *r)
2579 : {
2580 22814 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2581 22814 : if (ndr_flags & NDR_SCALARS) {
2582 11407 : NDR_CHECK(ndr_pull_align(ndr, 5));
2583 11407 : NDR_CHECK(ndr_pull_lsa_SidType(ndr, NDR_SCALARS, &r->sid_type));
2584 11407 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS, &r->name));
2585 11407 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_index));
2586 11407 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2587 : }
2588 22814 : if (ndr_flags & NDR_BUFFERS) {
2589 11407 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_BUFFERS, &r->name));
2590 : }
2591 22414 : return NDR_ERR_SUCCESS;
2592 : }
2593 :
2594 1414 : _PUBLIC_ void ndr_print_lsa_TranslatedName(struct ndr_print *ndr, const char *name, const struct lsa_TranslatedName *r)
2595 : {
2596 1414 : ndr_print_struct(ndr, name, "lsa_TranslatedName");
2597 1414 : if (r == NULL) { ndr_print_null(ndr); return; }
2598 1414 : ndr->depth++;
2599 1414 : ndr_print_lsa_SidType(ndr, "sid_type", r->sid_type);
2600 1414 : ndr_print_lsa_String(ndr, "name", &r->name);
2601 1414 : ndr_print_uint32(ndr, "sid_index", r->sid_index);
2602 1414 : ndr->depth--;
2603 : }
2604 :
2605 15170 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_TransNameArray(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TransNameArray *r)
2606 : {
2607 0 : uint32_t cntr_names_1;
2608 15170 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2609 15170 : if (ndr_flags & NDR_SCALARS) {
2610 15170 : NDR_CHECK(ndr_push_align(ndr, 5));
2611 15170 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
2612 15170 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->names));
2613 15170 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2614 : }
2615 15170 : if (ndr_flags & NDR_BUFFERS) {
2616 15170 : if (r->names) {
2617 7015 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
2618 16035 : for (cntr_names_1 = 0; cntr_names_1 < (r->count); cntr_names_1++) {
2619 9020 : NDR_CHECK(ndr_push_lsa_TranslatedName(ndr, NDR_SCALARS, &r->names[cntr_names_1]));
2620 : }
2621 16035 : for (cntr_names_1 = 0; cntr_names_1 < (r->count); cntr_names_1++) {
2622 9020 : NDR_CHECK(ndr_push_lsa_TranslatedName(ndr, NDR_BUFFERS, &r->names[cntr_names_1]));
2623 : }
2624 : }
2625 : }
2626 15170 : return NDR_ERR_SUCCESS;
2627 : }
2628 :
2629 16128 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_TransNameArray(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TransNameArray *r)
2630 : {
2631 4 : uint32_t _ptr_names;
2632 16128 : uint32_t size_names_1 = 0;
2633 4 : uint32_t cntr_names_1;
2634 16128 : TALLOC_CTX *_mem_save_names_0 = NULL;
2635 16128 : TALLOC_CTX *_mem_save_names_1 = NULL;
2636 16128 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2637 16128 : if (ndr_flags & NDR_SCALARS) {
2638 16128 : NDR_CHECK(ndr_pull_align(ndr, 5));
2639 16128 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
2640 16128 : if (r->count > 20480) {
2641 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->count), (uint32_t)(0), (uint32_t)(20480));
2642 : }
2643 16128 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_names));
2644 16128 : if (_ptr_names) {
2645 9317 : NDR_PULL_ALLOC(ndr, r->names);
2646 : } else {
2647 6811 : r->names = NULL;
2648 : }
2649 16128 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2650 : }
2651 16128 : if (ndr_flags & NDR_BUFFERS) {
2652 16128 : if (r->names) {
2653 9317 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
2654 9317 : NDR_PULL_SET_MEM_CTX(ndr, r->names, 0);
2655 9317 : NDR_CHECK(ndr_pull_array_size(ndr, &r->names));
2656 9317 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->names, &size_names_1));
2657 9317 : NDR_PULL_ALLOC_N(ndr, r->names, size_names_1);
2658 9317 : _mem_save_names_1 = NDR_PULL_GET_MEM_CTX(ndr);
2659 9317 : NDR_PULL_SET_MEM_CTX(ndr, r->names, 0);
2660 20724 : for (cntr_names_1 = 0; cntr_names_1 < (size_names_1); cntr_names_1++) {
2661 11407 : NDR_CHECK(ndr_pull_lsa_TranslatedName(ndr, NDR_SCALARS, &r->names[cntr_names_1]));
2662 : }
2663 20724 : for (cntr_names_1 = 0; cntr_names_1 < (size_names_1); cntr_names_1++) {
2664 11407 : NDR_CHECK(ndr_pull_lsa_TranslatedName(ndr, NDR_BUFFERS, &r->names[cntr_names_1]));
2665 : }
2666 9317 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_1, 0);
2667 9317 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, 0);
2668 : }
2669 16128 : if (r->names) {
2670 9317 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->names, r->count));
2671 : }
2672 27535 : for (cntr_names_1 = 0; cntr_names_1 < (size_names_1); cntr_names_1++) {
2673 200 : }
2674 : }
2675 16124 : return NDR_ERR_SUCCESS;
2676 : }
2677 :
2678 0 : static void ndr_print_flags_lsa_TransNameArray(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_TransNameArray *r)
2679 : {
2680 0 : ndr_print_lsa_TransNameArray(ndr, name, r);
2681 0 : }
2682 :
2683 416 : _PUBLIC_ void ndr_print_lsa_TransNameArray(struct ndr_print *ndr, const char *name, const struct lsa_TransNameArray *r)
2684 : {
2685 4 : uint32_t cntr_names_1;
2686 416 : ndr_print_struct(ndr, name, "lsa_TransNameArray");
2687 416 : if (r == NULL) { ndr_print_null(ndr); return; }
2688 416 : ndr->depth++;
2689 416 : ndr_print_uint32(ndr, "count", r->count);
2690 416 : ndr_print_ptr(ndr, "names", r->names);
2691 416 : ndr->depth++;
2692 416 : if (r->names) {
2693 414 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "names", (uint32_t)(r->count));
2694 414 : ndr->depth++;
2695 1828 : for (cntr_names_1 = 0; cntr_names_1 < (r->count); cntr_names_1++) {
2696 1414 : ndr_print_lsa_TranslatedName(ndr, "names", &r->names[cntr_names_1]);
2697 : }
2698 414 : ndr->depth--;
2699 : }
2700 416 : ndr->depth--;
2701 416 : ndr->depth--;
2702 : }
2703 :
2704 204 : static enum ndr_err_code ndr_push_lsa_LUIDAttribute(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_LUIDAttribute *r)
2705 : {
2706 204 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2707 204 : if (ndr_flags & NDR_SCALARS) {
2708 204 : NDR_CHECK(ndr_push_align(ndr, 4));
2709 204 : NDR_CHECK(ndr_push_lsa_LUID(ndr, NDR_SCALARS, &r->luid));
2710 204 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->attribute));
2711 204 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
2712 : }
2713 204 : if (ndr_flags & NDR_BUFFERS) {
2714 0 : }
2715 204 : return NDR_ERR_SUCCESS;
2716 : }
2717 :
2718 218 : static enum ndr_err_code ndr_pull_lsa_LUIDAttribute(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_LUIDAttribute *r)
2719 : {
2720 218 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2721 218 : if (ndr_flags & NDR_SCALARS) {
2722 218 : NDR_CHECK(ndr_pull_align(ndr, 4));
2723 218 : NDR_CHECK(ndr_pull_lsa_LUID(ndr, NDR_SCALARS, &r->luid));
2724 218 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->attribute));
2725 218 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
2726 : }
2727 218 : if (ndr_flags & NDR_BUFFERS) {
2728 0 : }
2729 218 : return NDR_ERR_SUCCESS;
2730 : }
2731 :
2732 64 : _PUBLIC_ void ndr_print_lsa_LUIDAttribute(struct ndr_print *ndr, const char *name, const struct lsa_LUIDAttribute *r)
2733 : {
2734 64 : ndr_print_struct(ndr, name, "lsa_LUIDAttribute");
2735 64 : if (r == NULL) { ndr_print_null(ndr); return; }
2736 64 : ndr->depth++;
2737 64 : ndr_print_lsa_LUID(ndr, "luid", &r->luid);
2738 64 : ndr_print_uint32(ndr, "attribute", r->attribute);
2739 64 : ndr->depth--;
2740 : }
2741 :
2742 74 : static enum ndr_err_code ndr_push_lsa_PrivilegeSet(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_PrivilegeSet *r)
2743 : {
2744 0 : uint32_t cntr_set_0;
2745 74 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2746 74 : if (ndr_flags & NDR_SCALARS) {
2747 74 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
2748 74 : NDR_CHECK(ndr_push_align(ndr, 4));
2749 74 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
2750 74 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->unknown));
2751 278 : for (cntr_set_0 = 0; cntr_set_0 < (r->count); cntr_set_0++) {
2752 204 : NDR_CHECK(ndr_push_lsa_LUIDAttribute(ndr, NDR_SCALARS, &r->set[cntr_set_0]));
2753 : }
2754 74 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
2755 : }
2756 74 : if (ndr_flags & NDR_BUFFERS) {
2757 0 : }
2758 74 : return NDR_ERR_SUCCESS;
2759 : }
2760 :
2761 76 : static enum ndr_err_code ndr_pull_lsa_PrivilegeSet(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_PrivilegeSet *r)
2762 : {
2763 76 : uint32_t size_set_0 = 0;
2764 0 : uint32_t cntr_set_0;
2765 76 : TALLOC_CTX *_mem_save_set_0 = NULL;
2766 76 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2767 76 : if (ndr_flags & NDR_SCALARS) {
2768 76 : NDR_CHECK(ndr_pull_array_size(ndr, &r->set));
2769 76 : NDR_CHECK(ndr_pull_align(ndr, 4));
2770 76 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
2771 76 : if (r->count > 1000) {
2772 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->count), (uint32_t)(0), (uint32_t)(1000));
2773 : }
2774 76 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->unknown));
2775 76 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->set, &size_set_0));
2776 76 : NDR_PULL_ALLOC_N(ndr, r->set, size_set_0);
2777 76 : _mem_save_set_0 = NDR_PULL_GET_MEM_CTX(ndr);
2778 76 : NDR_PULL_SET_MEM_CTX(ndr, r->set, 0);
2779 294 : for (cntr_set_0 = 0; cntr_set_0 < (size_set_0); cntr_set_0++) {
2780 218 : NDR_CHECK(ndr_pull_lsa_LUIDAttribute(ndr, NDR_SCALARS, &r->set[cntr_set_0]));
2781 : }
2782 76 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_set_0, 0);
2783 76 : if (r->set) {
2784 76 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->set, r->count));
2785 : }
2786 76 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
2787 : }
2788 76 : if (ndr_flags & NDR_BUFFERS) {
2789 0 : }
2790 76 : return NDR_ERR_SUCCESS;
2791 : }
2792 :
2793 12 : _PUBLIC_ void ndr_print_lsa_PrivilegeSet(struct ndr_print *ndr, const char *name, const struct lsa_PrivilegeSet *r)
2794 : {
2795 0 : uint32_t cntr_set_0;
2796 12 : ndr_print_struct(ndr, name, "lsa_PrivilegeSet");
2797 12 : if (r == NULL) { ndr_print_null(ndr); return; }
2798 12 : ndr->depth++;
2799 12 : ndr_print_uint32(ndr, "count", r->count);
2800 12 : ndr_print_uint32(ndr, "unknown", r->unknown);
2801 12 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "set", (uint32_t)(r->count));
2802 12 : ndr->depth++;
2803 76 : for (cntr_set_0 = 0; cntr_set_0 < (r->count); cntr_set_0++) {
2804 64 : ndr_print_lsa_LUIDAttribute(ndr, "set", &r->set[cntr_set_0]);
2805 : }
2806 12 : ndr->depth--;
2807 12 : ndr->depth--;
2808 : }
2809 :
2810 4550 : static enum ndr_err_code ndr_push_lsa_DATA_BUF(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_DATA_BUF *r)
2811 : {
2812 : {
2813 4550 : libndr_flags _flags_save_STRUCT = ndr->flags;
2814 4550 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
2815 4550 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2816 4550 : if (ndr_flags & NDR_SCALARS) {
2817 4550 : NDR_CHECK(ndr_push_align(ndr, 5));
2818 4550 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->length));
2819 4550 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->size));
2820 4550 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->data));
2821 4550 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2822 : }
2823 4550 : if (ndr_flags & NDR_BUFFERS) {
2824 4550 : if (r->data) {
2825 4550 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->size));
2826 4550 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
2827 4550 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->length));
2828 4550 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->data, r->length));
2829 : }
2830 : }
2831 4550 : ndr->flags = _flags_save_STRUCT;
2832 : }
2833 4550 : return NDR_ERR_SUCCESS;
2834 : }
2835 :
2836 4106 : static enum ndr_err_code ndr_pull_lsa_DATA_BUF(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_DATA_BUF *r)
2837 : {
2838 4 : uint32_t _ptr_data;
2839 4106 : uint32_t size_data_1 = 0;
2840 4106 : uint32_t length_data_1 = 0;
2841 4106 : TALLOC_CTX *_mem_save_data_0 = NULL;
2842 : {
2843 4106 : libndr_flags _flags_save_STRUCT = ndr->flags;
2844 4106 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
2845 4106 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2846 4106 : if (ndr_flags & NDR_SCALARS) {
2847 4106 : NDR_CHECK(ndr_pull_align(ndr, 5));
2848 4106 : NDR_CHECK(ndr_pull_uint3264(ndr, NDR_SCALARS, &r->length));
2849 4106 : NDR_CHECK(ndr_pull_uint3264(ndr, NDR_SCALARS, &r->size));
2850 4106 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data));
2851 4106 : if (_ptr_data) {
2852 4106 : NDR_PULL_ALLOC(ndr, r->data);
2853 : } else {
2854 0 : r->data = NULL;
2855 : }
2856 4106 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2857 : }
2858 4106 : if (ndr_flags & NDR_BUFFERS) {
2859 4106 : if (r->data) {
2860 4106 : _mem_save_data_0 = NDR_PULL_GET_MEM_CTX(ndr);
2861 4106 : NDR_PULL_SET_MEM_CTX(ndr, r->data, 0);
2862 4106 : NDR_CHECK(ndr_pull_array_size(ndr, &r->data));
2863 4106 : NDR_CHECK(ndr_pull_array_length(ndr, &r->data));
2864 4106 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->data, &size_data_1));
2865 4106 : NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->data, &length_data_1));
2866 4106 : if (length_data_1 > size_data_1) {
2867 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_data_1, length_data_1);
2868 : }
2869 4106 : NDR_PULL_ALLOC_N(ndr, r->data, size_data_1);
2870 4106 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->data, length_data_1));
2871 4106 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_0, 0);
2872 : }
2873 4106 : if (r->data) {
2874 4106 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->data, r->size));
2875 : }
2876 4106 : if (r->data) {
2877 4106 : NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->data, r->length));
2878 : }
2879 : }
2880 4106 : ndr->flags = _flags_save_STRUCT;
2881 : }
2882 4106 : return NDR_ERR_SUCCESS;
2883 : }
2884 :
2885 68 : _PUBLIC_ void ndr_print_lsa_DATA_BUF(struct ndr_print *ndr, const char *name, const struct lsa_DATA_BUF *r)
2886 : {
2887 68 : ndr_print_struct(ndr, name, "lsa_DATA_BUF");
2888 68 : if (r == NULL) { ndr_print_null(ndr); return; }
2889 : {
2890 68 : libndr_flags _flags_save_STRUCT = ndr->flags;
2891 68 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
2892 68 : ndr->depth++;
2893 68 : ndr_print_uint3264(ndr, "length", r->length);
2894 68 : ndr_print_uint3264(ndr, "size", r->size);
2895 68 : ndr_print_ptr(ndr, "data", r->data);
2896 68 : ndr->depth++;
2897 68 : if (r->data) {
2898 68 : ndr_print_array_uint8(ndr, "data", r->data, r->length);
2899 : }
2900 68 : ndr->depth--;
2901 68 : ndr->depth--;
2902 68 : ndr->flags = _flags_save_STRUCT;
2903 : }
2904 : }
2905 :
2906 640 : static enum ndr_err_code ndr_push_lsa_DATA_BUF2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_DATA_BUF2 *r)
2907 : {
2908 : {
2909 640 : libndr_flags _flags_save_STRUCT = ndr->flags;
2910 640 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
2911 640 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
2912 640 : if (ndr_flags & NDR_SCALARS) {
2913 320 : NDR_CHECK(ndr_push_align(ndr, 5));
2914 320 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->size));
2915 320 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->data));
2916 320 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
2917 : }
2918 640 : if (ndr_flags & NDR_BUFFERS) {
2919 320 : if (r->data) {
2920 320 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->size));
2921 320 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->data, r->size));
2922 : }
2923 : }
2924 640 : ndr->flags = _flags_save_STRUCT;
2925 : }
2926 640 : return NDR_ERR_SUCCESS;
2927 : }
2928 :
2929 644 : static enum ndr_err_code ndr_pull_lsa_DATA_BUF2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_DATA_BUF2 *r)
2930 : {
2931 4 : uint32_t _ptr_data;
2932 644 : uint32_t size_data_1 = 0;
2933 644 : TALLOC_CTX *_mem_save_data_0 = NULL;
2934 : {
2935 644 : libndr_flags _flags_save_STRUCT = ndr->flags;
2936 644 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
2937 644 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
2938 644 : if (ndr_flags & NDR_SCALARS) {
2939 322 : NDR_CHECK(ndr_pull_align(ndr, 5));
2940 322 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->size));
2941 322 : if (r->size > 65536) {
2942 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->size), (uint32_t)(0), (uint32_t)(65536));
2943 : }
2944 322 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data));
2945 322 : if (_ptr_data) {
2946 322 : NDR_PULL_ALLOC(ndr, r->data);
2947 : } else {
2948 0 : r->data = NULL;
2949 : }
2950 322 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
2951 : }
2952 644 : if (ndr_flags & NDR_BUFFERS) {
2953 322 : if (r->data) {
2954 322 : _mem_save_data_0 = NDR_PULL_GET_MEM_CTX(ndr);
2955 322 : NDR_PULL_SET_MEM_CTX(ndr, r->data, 0);
2956 322 : NDR_CHECK(ndr_pull_array_size(ndr, &r->data));
2957 322 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->data, &size_data_1));
2958 322 : NDR_PULL_ALLOC_N(ndr, r->data, size_data_1);
2959 322 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->data, size_data_1));
2960 322 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_0, 0);
2961 : }
2962 322 : if (r->data) {
2963 322 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->data, r->size));
2964 : }
2965 : }
2966 644 : ndr->flags = _flags_save_STRUCT;
2967 : }
2968 644 : return NDR_ERR_SUCCESS;
2969 : }
2970 :
2971 2 : _PUBLIC_ void ndr_print_lsa_DATA_BUF2(struct ndr_print *ndr, const char *name, const struct lsa_DATA_BUF2 *r)
2972 : {
2973 2 : ndr_print_struct(ndr, name, "lsa_DATA_BUF2");
2974 2 : if (r == NULL) { ndr_print_null(ndr); return; }
2975 : {
2976 2 : libndr_flags _flags_save_STRUCT = ndr->flags;
2977 2 : ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
2978 2 : ndr->depth++;
2979 2 : ndr_print_uint32(ndr, "size", r->size);
2980 2 : ndr_print_ptr(ndr, "data", r->data);
2981 2 : ndr->depth++;
2982 2 : if (r->data) {
2983 2 : ndr_print_array_uint8(ndr, "data", r->data, r->size);
2984 : }
2985 2 : ndr->depth--;
2986 2 : ndr->depth--;
2987 2 : ndr->flags = _flags_save_STRUCT;
2988 : }
2989 : }
2990 :
2991 16748 : static enum ndr_err_code ndr_push_lsa_TrustDomInfoEnum(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_TrustDomInfoEnum r)
2992 : {
2993 16748 : NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
2994 16748 : return NDR_ERR_SUCCESS;
2995 : }
2996 :
2997 10525 : static enum ndr_err_code ndr_pull_lsa_TrustDomInfoEnum(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_TrustDomInfoEnum *r)
2998 : {
2999 2 : uint16_t v;
3000 10525 : NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
3001 10525 : *r = v;
3002 10525 : return NDR_ERR_SUCCESS;
3003 : }
3004 :
3005 2 : _PUBLIC_ void ndr_print_lsa_TrustDomInfoEnum(struct ndr_print *ndr, const char *name, enum lsa_TrustDomInfoEnum r)
3006 : {
3007 2 : const char *val = NULL;
3008 :
3009 2 : switch (r) {
3010 0 : case LSA_TRUSTED_DOMAIN_INFO_NAME: val = "LSA_TRUSTED_DOMAIN_INFO_NAME"; break;
3011 0 : case LSA_TRUSTED_DOMAIN_INFO_CONTROLLERS: val = "LSA_TRUSTED_DOMAIN_INFO_CONTROLLERS"; break;
3012 0 : case LSA_TRUSTED_DOMAIN_INFO_POSIX_OFFSET: val = "LSA_TRUSTED_DOMAIN_INFO_POSIX_OFFSET"; break;
3013 0 : case LSA_TRUSTED_DOMAIN_INFO_PASSWORD: val = "LSA_TRUSTED_DOMAIN_INFO_PASSWORD"; break;
3014 0 : case LSA_TRUSTED_DOMAIN_INFO_BASIC: val = "LSA_TRUSTED_DOMAIN_INFO_BASIC"; break;
3015 0 : case LSA_TRUSTED_DOMAIN_INFO_INFO_EX: val = "LSA_TRUSTED_DOMAIN_INFO_INFO_EX"; break;
3016 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO: val = "LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO"; break;
3017 0 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO: val = "LSA_TRUSTED_DOMAIN_INFO_FULL_INFO"; break;
3018 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL: val = "LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL"; break;
3019 2 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL: val = "LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL"; break;
3020 0 : case LSA_TRUSTED_DOMAIN_INFO_INFO_EX2_INTERNAL: val = "LSA_TRUSTED_DOMAIN_INFO_INFO_EX2_INTERNAL"; break;
3021 0 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_2_INTERNAL: val = "LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_2_INTERNAL"; break;
3022 0 : case LSA_TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES: val = "LSA_TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES"; break;
3023 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL_AES: val = "LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL_AES"; break;
3024 0 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL_AES: val = "LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL_AES"; break;
3025 : }
3026 2 : ndr_print_enum(ndr, name, "ENUM", val, r);
3027 2 : }
3028 :
3029 3781 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_TrustDirection(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
3030 : {
3031 3781 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
3032 3781 : return NDR_ERR_SUCCESS;
3033 : }
3034 :
3035 3030 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_TrustDirection(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
3036 : {
3037 2 : uint32_t v;
3038 3030 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
3039 3030 : *r = v;
3040 3030 : return NDR_ERR_SUCCESS;
3041 : }
3042 :
3043 1362 : _PUBLIC_ void ndr_print_lsa_TrustDirection(struct ndr_print *ndr, const char *name, uint32_t r)
3044 : {
3045 1362 : ndr_print_uint32(ndr, name, r);
3046 1362 : ndr->depth++;
3047 1362 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUST_DIRECTION_INBOUND", LSA_TRUST_DIRECTION_INBOUND, r);
3048 1362 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUST_DIRECTION_OUTBOUND", LSA_TRUST_DIRECTION_OUTBOUND, r);
3049 1362 : ndr->depth--;
3050 1362 : }
3051 :
3052 4226 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_TrustType(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_TrustType r)
3053 : {
3054 4226 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
3055 4186 : return NDR_ERR_SUCCESS;
3056 : }
3057 :
3058 7750 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_TrustType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_TrustType *r)
3059 : {
3060 42 : uint32_t v;
3061 7750 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
3062 7750 : *r = v;
3063 7750 : return NDR_ERR_SUCCESS;
3064 : }
3065 :
3066 1469 : _PUBLIC_ void ndr_print_lsa_TrustType(struct ndr_print *ndr, const char *name, enum lsa_TrustType r)
3067 : {
3068 1469 : const char *val = NULL;
3069 :
3070 1469 : switch (r) {
3071 593 : case LSA_TRUST_TYPE_DOWNLEVEL: val = "LSA_TRUST_TYPE_DOWNLEVEL"; break;
3072 624 : case LSA_TRUST_TYPE_UPLEVEL: val = "LSA_TRUST_TYPE_UPLEVEL"; break;
3073 252 : case LSA_TRUST_TYPE_MIT: val = "LSA_TRUST_TYPE_MIT"; break;
3074 0 : case LSA_TRUST_TYPE_DCE: val = "LSA_TRUST_TYPE_DCE"; break;
3075 : }
3076 1469 : ndr_print_enum(ndr, name, "ENUM", val, r);
3077 1469 : }
3078 :
3079 4226 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_TrustAttributes(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
3080 : {
3081 4226 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
3082 4186 : return NDR_ERR_SUCCESS;
3083 : }
3084 :
3085 7750 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_TrustAttributes(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
3086 : {
3087 42 : uint32_t v;
3088 7750 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
3089 7750 : *r = v;
3090 7750 : return NDR_ERR_SUCCESS;
3091 : }
3092 :
3093 1469 : _PUBLIC_ void ndr_print_lsa_TrustAttributes(struct ndr_print *ndr, const char *name, uint32_t r)
3094 : {
3095 1469 : ndr_print_uint32(ndr, name, r);
3096 1469 : ndr->depth++;
3097 1469 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUST_ATTRIBUTE_NON_TRANSITIVE", LSA_TRUST_ATTRIBUTE_NON_TRANSITIVE, r);
3098 1469 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUST_ATTRIBUTE_UPLEVEL_ONLY", LSA_TRUST_ATTRIBUTE_UPLEVEL_ONLY, r);
3099 1469 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUST_ATTRIBUTE_QUARANTINED_DOMAIN", LSA_TRUST_ATTRIBUTE_QUARANTINED_DOMAIN, r);
3100 1469 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUST_ATTRIBUTE_FOREST_TRANSITIVE", LSA_TRUST_ATTRIBUTE_FOREST_TRANSITIVE, r);
3101 1469 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUST_ATTRIBUTE_CROSS_ORGANIZATION", LSA_TRUST_ATTRIBUTE_CROSS_ORGANIZATION, r);
3102 1469 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUST_ATTRIBUTE_WITHIN_FOREST", LSA_TRUST_ATTRIBUTE_WITHIN_FOREST, r);
3103 1469 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUST_ATTRIBUTE_TREAT_AS_EXTERNAL", LSA_TRUST_ATTRIBUTE_TREAT_AS_EXTERNAL, r);
3104 1469 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUST_ATTRIBUTE_USES_RC4_ENCRYPTION", LSA_TRUST_ATTRIBUTE_USES_RC4_ENCRYPTION, r);
3105 1469 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUST_ATTRIBUTE_CROSS_ORGANIZATION_NO_TGT_DELEGATION", LSA_TRUST_ATTRIBUTE_CROSS_ORGANIZATION_NO_TGT_DELEGATION, r);
3106 1469 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUST_ATTRIBUTE_PIM_TRUST", LSA_TRUST_ATTRIBUTE_PIM_TRUST, r);
3107 1469 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TRUST_ATTRIBUTE_CROSS_ORGANIZATION_ENABLE_TGT_DELEGATION", LSA_TRUST_ATTRIBUTE_CROSS_ORGANIZATION_ENABLE_TGT_DELEGATION, r);
3108 1469 : ndr->depth--;
3109 1469 : }
3110 :
3111 1938 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoName(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoName *r)
3112 : {
3113 1938 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3114 1938 : if (ndr_flags & NDR_SCALARS) {
3115 969 : NDR_CHECK(ndr_push_align(ndr, 5));
3116 969 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->netbios_name));
3117 969 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3118 : }
3119 1938 : if (ndr_flags & NDR_BUFFERS) {
3120 969 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->netbios_name));
3121 : }
3122 1938 : return NDR_ERR_SUCCESS;
3123 : }
3124 :
3125 1552 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoName(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoName *r)
3126 : {
3127 1552 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3128 1552 : if (ndr_flags & NDR_SCALARS) {
3129 776 : NDR_CHECK(ndr_pull_align(ndr, 5));
3130 776 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->netbios_name));
3131 776 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3132 : }
3133 1552 : if (ndr_flags & NDR_BUFFERS) {
3134 776 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->netbios_name));
3135 : }
3136 1552 : return NDR_ERR_SUCCESS;
3137 : }
3138 :
3139 386 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoName(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoName *r)
3140 : {
3141 386 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoName");
3142 386 : if (r == NULL) { ndr_print_null(ndr); return; }
3143 386 : ndr->depth++;
3144 386 : ndr_print_lsa_StringLarge(ndr, "netbios_name", &r->netbios_name);
3145 386 : ndr->depth--;
3146 : }
3147 :
3148 0 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoControllers(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoControllers *r)
3149 : {
3150 0 : uint32_t cntr_netbios_names_1;
3151 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3152 0 : if (ndr_flags & NDR_SCALARS) {
3153 0 : NDR_CHECK(ndr_push_align(ndr, 5));
3154 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->entries));
3155 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->netbios_names));
3156 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3157 : }
3158 0 : if (ndr_flags & NDR_BUFFERS) {
3159 0 : if (r->netbios_names) {
3160 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->entries));
3161 0 : for (cntr_netbios_names_1 = 0; cntr_netbios_names_1 < (r->entries); cntr_netbios_names_1++) {
3162 0 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->netbios_names[cntr_netbios_names_1]));
3163 : }
3164 0 : for (cntr_netbios_names_1 = 0; cntr_netbios_names_1 < (r->entries); cntr_netbios_names_1++) {
3165 0 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->netbios_names[cntr_netbios_names_1]));
3166 : }
3167 : }
3168 : }
3169 0 : return NDR_ERR_SUCCESS;
3170 : }
3171 :
3172 0 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoControllers(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoControllers *r)
3173 : {
3174 0 : uint32_t _ptr_netbios_names;
3175 0 : uint32_t size_netbios_names_1 = 0;
3176 0 : uint32_t cntr_netbios_names_1;
3177 0 : TALLOC_CTX *_mem_save_netbios_names_0 = NULL;
3178 0 : TALLOC_CTX *_mem_save_netbios_names_1 = NULL;
3179 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3180 0 : if (ndr_flags & NDR_SCALARS) {
3181 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
3182 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->entries));
3183 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_netbios_names));
3184 0 : if (_ptr_netbios_names) {
3185 0 : NDR_PULL_ALLOC(ndr, r->netbios_names);
3186 : } else {
3187 0 : r->netbios_names = NULL;
3188 : }
3189 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3190 : }
3191 0 : if (ndr_flags & NDR_BUFFERS) {
3192 0 : if (r->netbios_names) {
3193 0 : _mem_save_netbios_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
3194 0 : NDR_PULL_SET_MEM_CTX(ndr, r->netbios_names, 0);
3195 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->netbios_names));
3196 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->netbios_names, &size_netbios_names_1));
3197 0 : NDR_PULL_ALLOC_N(ndr, r->netbios_names, size_netbios_names_1);
3198 0 : _mem_save_netbios_names_1 = NDR_PULL_GET_MEM_CTX(ndr);
3199 0 : NDR_PULL_SET_MEM_CTX(ndr, r->netbios_names, 0);
3200 0 : for (cntr_netbios_names_1 = 0; cntr_netbios_names_1 < (size_netbios_names_1); cntr_netbios_names_1++) {
3201 0 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->netbios_names[cntr_netbios_names_1]));
3202 : }
3203 0 : for (cntr_netbios_names_1 = 0; cntr_netbios_names_1 < (size_netbios_names_1); cntr_netbios_names_1++) {
3204 0 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->netbios_names[cntr_netbios_names_1]));
3205 : }
3206 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_netbios_names_1, 0);
3207 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_netbios_names_0, 0);
3208 : }
3209 0 : if (r->netbios_names) {
3210 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->netbios_names, r->entries));
3211 : }
3212 0 : for (cntr_netbios_names_1 = 0; cntr_netbios_names_1 < (size_netbios_names_1); cntr_netbios_names_1++) {
3213 0 : }
3214 : }
3215 0 : return NDR_ERR_SUCCESS;
3216 : }
3217 :
3218 0 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoControllers(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoControllers *r)
3219 : {
3220 0 : uint32_t cntr_netbios_names_1;
3221 0 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoControllers");
3222 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3223 0 : ndr->depth++;
3224 0 : ndr_print_uint32(ndr, "entries", r->entries);
3225 0 : ndr_print_ptr(ndr, "netbios_names", r->netbios_names);
3226 0 : ndr->depth++;
3227 0 : if (r->netbios_names) {
3228 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "netbios_names", (uint32_t)(r->entries));
3229 0 : ndr->depth++;
3230 0 : for (cntr_netbios_names_1 = 0; cntr_netbios_names_1 < (r->entries); cntr_netbios_names_1++) {
3231 0 : ndr_print_lsa_StringLarge(ndr, "netbios_names", &r->netbios_names[cntr_netbios_names_1]);
3232 : }
3233 0 : ndr->depth--;
3234 : }
3235 0 : ndr->depth--;
3236 0 : ndr->depth--;
3237 : }
3238 :
3239 2931 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoPosixOffset(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoPosixOffset *r)
3240 : {
3241 2931 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3242 2931 : if (ndr_flags & NDR_SCALARS) {
3243 2931 : NDR_CHECK(ndr_push_align(ndr, 4));
3244 2931 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->posix_offset));
3245 2931 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
3246 : }
3247 2931 : if (ndr_flags & NDR_BUFFERS) {
3248 0 : }
3249 2931 : return NDR_ERR_SUCCESS;
3250 : }
3251 :
3252 2354 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoPosixOffset(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoPosixOffset *r)
3253 : {
3254 2354 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3255 2354 : if (ndr_flags & NDR_SCALARS) {
3256 2354 : NDR_CHECK(ndr_pull_align(ndr, 4));
3257 2354 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->posix_offset));
3258 2354 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
3259 : }
3260 2354 : if (ndr_flags & NDR_BUFFERS) {
3261 2 : }
3262 2354 : return NDR_ERR_SUCCESS;
3263 : }
3264 :
3265 1160 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoPosixOffset(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoPosixOffset *r)
3266 : {
3267 1160 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoPosixOffset");
3268 1160 : if (r == NULL) { ndr_print_null(ndr); return; }
3269 1160 : ndr->depth++;
3270 1160 : ndr_print_uint32(ndr, "posix_offset", r->posix_offset);
3271 1160 : ndr->depth--;
3272 : }
3273 :
3274 0 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoPassword(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoPassword *r)
3275 : {
3276 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3277 0 : if (ndr_flags & NDR_SCALARS) {
3278 0 : NDR_CHECK(ndr_push_align(ndr, 5));
3279 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->password));
3280 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->old_password));
3281 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3282 : }
3283 0 : if (ndr_flags & NDR_BUFFERS) {
3284 0 : if (r->password) {
3285 0 : NDR_CHECK(ndr_push_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->password));
3286 : }
3287 0 : if (r->old_password) {
3288 0 : NDR_CHECK(ndr_push_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->old_password));
3289 : }
3290 : }
3291 0 : return NDR_ERR_SUCCESS;
3292 : }
3293 :
3294 0 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoPassword(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoPassword *r)
3295 : {
3296 0 : uint32_t _ptr_password;
3297 0 : TALLOC_CTX *_mem_save_password_0 = NULL;
3298 0 : uint32_t _ptr_old_password;
3299 0 : TALLOC_CTX *_mem_save_old_password_0 = NULL;
3300 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3301 0 : if (ndr_flags & NDR_SCALARS) {
3302 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
3303 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_password));
3304 0 : if (_ptr_password) {
3305 0 : NDR_PULL_ALLOC(ndr, r->password);
3306 : } else {
3307 0 : r->password = NULL;
3308 : }
3309 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_old_password));
3310 0 : if (_ptr_old_password) {
3311 0 : NDR_PULL_ALLOC(ndr, r->old_password);
3312 : } else {
3313 0 : r->old_password = NULL;
3314 : }
3315 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3316 : }
3317 0 : if (ndr_flags & NDR_BUFFERS) {
3318 0 : if (r->password) {
3319 0 : _mem_save_password_0 = NDR_PULL_GET_MEM_CTX(ndr);
3320 0 : NDR_PULL_SET_MEM_CTX(ndr, r->password, 0);
3321 0 : NDR_CHECK(ndr_pull_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->password));
3322 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_password_0, 0);
3323 : }
3324 0 : if (r->old_password) {
3325 0 : _mem_save_old_password_0 = NDR_PULL_GET_MEM_CTX(ndr);
3326 0 : NDR_PULL_SET_MEM_CTX(ndr, r->old_password, 0);
3327 0 : NDR_CHECK(ndr_pull_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->old_password));
3328 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_old_password_0, 0);
3329 : }
3330 : }
3331 0 : return NDR_ERR_SUCCESS;
3332 : }
3333 :
3334 0 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoPassword(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoPassword *r)
3335 : {
3336 0 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoPassword");
3337 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3338 0 : ndr->depth++;
3339 0 : ndr_print_ptr(ndr, "password", r->password);
3340 0 : ndr->depth++;
3341 0 : if (r->password) {
3342 0 : ndr_print_lsa_DATA_BUF(ndr, "password", r->password);
3343 : }
3344 0 : ndr->depth--;
3345 0 : ndr_print_ptr(ndr, "old_password", r->old_password);
3346 0 : ndr->depth++;
3347 0 : if (r->old_password) {
3348 0 : ndr_print_lsa_DATA_BUF(ndr, "old_password", r->old_password);
3349 : }
3350 0 : ndr->depth--;
3351 0 : ndr->depth--;
3352 : }
3353 :
3354 0 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoBasic(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoBasic *r)
3355 : {
3356 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3357 0 : if (ndr_flags & NDR_SCALARS) {
3358 0 : NDR_CHECK(ndr_push_align(ndr, 5));
3359 0 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS, &r->netbios_name));
3360 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->sid));
3361 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3362 : }
3363 0 : if (ndr_flags & NDR_BUFFERS) {
3364 0 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_BUFFERS, &r->netbios_name));
3365 0 : if (r->sid) {
3366 0 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
3367 : }
3368 : }
3369 0 : return NDR_ERR_SUCCESS;
3370 : }
3371 :
3372 0 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoBasic(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoBasic *r)
3373 : {
3374 0 : uint32_t _ptr_sid;
3375 0 : TALLOC_CTX *_mem_save_sid_0 = NULL;
3376 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3377 0 : if (ndr_flags & NDR_SCALARS) {
3378 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
3379 0 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS, &r->netbios_name));
3380 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sid));
3381 0 : if (_ptr_sid) {
3382 0 : NDR_PULL_ALLOC(ndr, r->sid);
3383 : } else {
3384 0 : r->sid = NULL;
3385 : }
3386 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3387 : }
3388 0 : if (ndr_flags & NDR_BUFFERS) {
3389 0 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_BUFFERS, &r->netbios_name));
3390 0 : if (r->sid) {
3391 0 : _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
3392 0 : NDR_PULL_SET_MEM_CTX(ndr, r->sid, 0);
3393 0 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
3394 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, 0);
3395 : }
3396 : }
3397 0 : return NDR_ERR_SUCCESS;
3398 : }
3399 :
3400 0 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoBasic(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoBasic *r)
3401 : {
3402 0 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoBasic");
3403 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3404 0 : ndr->depth++;
3405 0 : ndr_print_lsa_String(ndr, "netbios_name", &r->netbios_name);
3406 0 : ndr_print_ptr(ndr, "sid", r->sid);
3407 0 : ndr->depth++;
3408 0 : if (r->sid) {
3409 0 : ndr_print_dom_sid2(ndr, "sid", r->sid);
3410 : }
3411 0 : ndr->depth--;
3412 0 : ndr->depth--;
3413 : }
3414 :
3415 7386 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_TrustDomainInfoInfoEx(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoInfoEx *r)
3416 : {
3417 7386 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3418 7386 : if (ndr_flags & NDR_SCALARS) {
3419 3781 : NDR_CHECK(ndr_push_align(ndr, 5));
3420 3781 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->domain_name));
3421 3781 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->netbios_name));
3422 3781 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->sid));
3423 3781 : NDR_CHECK(ndr_push_lsa_TrustDirection(ndr, NDR_SCALARS, r->trust_direction));
3424 3781 : NDR_CHECK(ndr_push_lsa_TrustType(ndr, NDR_SCALARS, r->trust_type));
3425 3781 : NDR_CHECK(ndr_push_lsa_TrustAttributes(ndr, NDR_SCALARS, r->trust_attributes));
3426 3781 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3427 : }
3428 7386 : if (ndr_flags & NDR_BUFFERS) {
3429 3781 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->domain_name));
3430 3781 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->netbios_name));
3431 3781 : if (r->sid) {
3432 3781 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
3433 : }
3434 : }
3435 7386 : return NDR_ERR_SUCCESS;
3436 : }
3437 :
3438 5884 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_TrustDomainInfoInfoEx(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoInfoEx *r)
3439 : {
3440 4 : uint32_t _ptr_sid;
3441 5884 : TALLOC_CTX *_mem_save_sid_0 = NULL;
3442 5884 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3443 5884 : if (ndr_flags & NDR_SCALARS) {
3444 3030 : NDR_CHECK(ndr_pull_align(ndr, 5));
3445 3030 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->domain_name));
3446 3030 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->netbios_name));
3447 3030 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sid));
3448 3030 : if (_ptr_sid) {
3449 3030 : NDR_PULL_ALLOC(ndr, r->sid);
3450 : } else {
3451 0 : r->sid = NULL;
3452 : }
3453 3030 : NDR_CHECK(ndr_pull_lsa_TrustDirection(ndr, NDR_SCALARS, &r->trust_direction));
3454 3030 : NDR_CHECK(ndr_pull_lsa_TrustType(ndr, NDR_SCALARS, &r->trust_type));
3455 3030 : NDR_CHECK(ndr_pull_lsa_TrustAttributes(ndr, NDR_SCALARS, &r->trust_attributes));
3456 3030 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3457 : }
3458 5884 : if (ndr_flags & NDR_BUFFERS) {
3459 3030 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->domain_name));
3460 3030 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->netbios_name));
3461 3030 : if (r->sid) {
3462 3030 : _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
3463 3030 : NDR_PULL_SET_MEM_CTX(ndr, r->sid, 0);
3464 3030 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
3465 3030 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, 0);
3466 : }
3467 : }
3468 5880 : return NDR_ERR_SUCCESS;
3469 : }
3470 :
3471 0 : static void ndr_print_flags_lsa_TrustDomainInfoInfoEx(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_TrustDomainInfoInfoEx *r)
3472 : {
3473 0 : ndr_print_lsa_TrustDomainInfoInfoEx(ndr, name, r);
3474 0 : }
3475 :
3476 1362 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoInfoEx(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoInfoEx *r)
3477 : {
3478 1362 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoInfoEx");
3479 1362 : if (r == NULL) { ndr_print_null(ndr); return; }
3480 1362 : ndr->depth++;
3481 1362 : ndr_print_lsa_StringLarge(ndr, "domain_name", &r->domain_name);
3482 1362 : ndr_print_lsa_StringLarge(ndr, "netbios_name", &r->netbios_name);
3483 1362 : ndr_print_ptr(ndr, "sid", r->sid);
3484 1362 : ndr->depth++;
3485 1362 : if (r->sid) {
3486 1362 : ndr_print_dom_sid2(ndr, "sid", r->sid);
3487 : }
3488 1362 : ndr->depth--;
3489 1362 : ndr_print_lsa_TrustDirection(ndr, "trust_direction", r->trust_direction);
3490 1362 : ndr_print_lsa_TrustType(ndr, "trust_type", r->trust_type);
3491 1362 : ndr_print_lsa_TrustAttributes(ndr, "trust_attributes", r->trust_attributes);
3492 1362 : ndr->depth--;
3493 : }
3494 :
3495 6203 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_TrustAuthType(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_TrustAuthType r)
3496 : {
3497 6203 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
3498 6144 : return NDR_ERR_SUCCESS;
3499 : }
3500 :
3501 10487 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_TrustAuthType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_TrustAuthType *r)
3502 : {
3503 24 : uint32_t v;
3504 10487 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
3505 10487 : *r = v;
3506 10487 : return NDR_ERR_SUCCESS;
3507 : }
3508 :
3509 12 : _PUBLIC_ void ndr_print_lsa_TrustAuthType(struct ndr_print *ndr, const char *name, enum lsa_TrustAuthType r)
3510 : {
3511 12 : const char *val = NULL;
3512 :
3513 12 : switch (r) {
3514 0 : case TRUST_AUTH_TYPE_NONE: val = "TRUST_AUTH_TYPE_NONE"; break;
3515 0 : case TRUST_AUTH_TYPE_NT4OWF: val = "TRUST_AUTH_TYPE_NT4OWF"; break;
3516 12 : case TRUST_AUTH_TYPE_CLEAR: val = "TRUST_AUTH_TYPE_CLEAR"; break;
3517 0 : case TRUST_AUTH_TYPE_VERSION: val = "TRUST_AUTH_TYPE_VERSION"; break;
3518 : }
3519 12 : ndr_print_enum(ndr, name, "ENUM", val, r);
3520 12 : }
3521 :
3522 192 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoBuffer(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoBuffer *r)
3523 : {
3524 192 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3525 192 : if (ndr_flags & NDR_SCALARS) {
3526 192 : NDR_CHECK(ndr_push_align(ndr, 8));
3527 192 : NDR_CHECK(ndr_push_NTTIME_hyper(ndr, NDR_SCALARS, r->last_update_time));
3528 192 : NDR_CHECK(ndr_push_lsa_TrustAuthType(ndr, NDR_SCALARS, r->AuthType));
3529 192 : NDR_CHECK(ndr_push_lsa_DATA_BUF2(ndr, NDR_SCALARS, &r->data));
3530 192 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
3531 : }
3532 192 : if (ndr_flags & NDR_BUFFERS) {
3533 192 : NDR_CHECK(ndr_push_lsa_DATA_BUF2(ndr, NDR_BUFFERS, &r->data));
3534 : }
3535 192 : return NDR_ERR_SUCCESS;
3536 : }
3537 :
3538 192 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoBuffer(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoBuffer *r)
3539 : {
3540 192 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3541 192 : if (ndr_flags & NDR_SCALARS) {
3542 192 : NDR_CHECK(ndr_pull_align(ndr, 8));
3543 192 : NDR_CHECK(ndr_pull_NTTIME_hyper(ndr, NDR_SCALARS, &r->last_update_time));
3544 192 : NDR_CHECK(ndr_pull_lsa_TrustAuthType(ndr, NDR_SCALARS, &r->AuthType));
3545 192 : NDR_CHECK(ndr_pull_lsa_DATA_BUF2(ndr, NDR_SCALARS, &r->data));
3546 192 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
3547 : }
3548 192 : if (ndr_flags & NDR_BUFFERS) {
3549 192 : NDR_CHECK(ndr_pull_lsa_DATA_BUF2(ndr, NDR_BUFFERS, &r->data));
3550 : }
3551 192 : return NDR_ERR_SUCCESS;
3552 : }
3553 :
3554 0 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoBuffer(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoBuffer *r)
3555 : {
3556 0 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoBuffer");
3557 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3558 0 : ndr->depth++;
3559 0 : ndr_print_NTTIME_hyper(ndr, "last_update_time", r->last_update_time);
3560 0 : ndr_print_lsa_TrustAuthType(ndr, "AuthType", r->AuthType);
3561 0 : ndr_print_lsa_DATA_BUF2(ndr, "data", &r->data);
3562 0 : ndr->depth--;
3563 : }
3564 :
3565 3972 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_TrustDomainInfoAuthInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoAuthInfo *r)
3566 : {
3567 3972 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3568 3972 : if (ndr_flags & NDR_SCALARS) {
3569 2010 : NDR_CHECK(ndr_push_align(ndr, 5));
3570 2010 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->incoming_count));
3571 2010 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->incoming_current_auth_info));
3572 2010 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->incoming_previous_auth_info));
3573 2010 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->outgoing_count));
3574 2010 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->outgoing_current_auth_info));
3575 2010 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->outgoing_previous_auth_info));
3576 2010 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3577 : }
3578 3972 : if (ndr_flags & NDR_BUFFERS) {
3579 2010 : if (r->incoming_current_auth_info) {
3580 48 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoBuffer(ndr, NDR_SCALARS|NDR_BUFFERS, r->incoming_current_auth_info));
3581 : }
3582 2010 : if (r->incoming_previous_auth_info) {
3583 48 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoBuffer(ndr, NDR_SCALARS|NDR_BUFFERS, r->incoming_previous_auth_info));
3584 : }
3585 2010 : if (r->outgoing_current_auth_info) {
3586 48 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoBuffer(ndr, NDR_SCALARS|NDR_BUFFERS, r->outgoing_current_auth_info));
3587 : }
3588 2010 : if (r->outgoing_previous_auth_info) {
3589 48 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoBuffer(ndr, NDR_SCALARS|NDR_BUFFERS, r->outgoing_previous_auth_info));
3590 : }
3591 : }
3592 3972 : return NDR_ERR_SUCCESS;
3593 : }
3594 :
3595 3200 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_TrustDomainInfoAuthInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoAuthInfo *r)
3596 : {
3597 0 : uint32_t _ptr_incoming_current_auth_info;
3598 3200 : TALLOC_CTX *_mem_save_incoming_current_auth_info_0 = NULL;
3599 0 : uint32_t _ptr_incoming_previous_auth_info;
3600 3200 : TALLOC_CTX *_mem_save_incoming_previous_auth_info_0 = NULL;
3601 0 : uint32_t _ptr_outgoing_current_auth_info;
3602 3200 : TALLOC_CTX *_mem_save_outgoing_current_auth_info_0 = NULL;
3603 0 : uint32_t _ptr_outgoing_previous_auth_info;
3604 3200 : TALLOC_CTX *_mem_save_outgoing_previous_auth_info_0 = NULL;
3605 3200 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3606 3200 : if (ndr_flags & NDR_SCALARS) {
3607 1624 : NDR_CHECK(ndr_pull_align(ndr, 5));
3608 1624 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->incoming_count));
3609 1624 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_incoming_current_auth_info));
3610 1624 : if (_ptr_incoming_current_auth_info) {
3611 48 : NDR_PULL_ALLOC(ndr, r->incoming_current_auth_info);
3612 : } else {
3613 1576 : r->incoming_current_auth_info = NULL;
3614 : }
3615 1624 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_incoming_previous_auth_info));
3616 1624 : if (_ptr_incoming_previous_auth_info) {
3617 48 : NDR_PULL_ALLOC(ndr, r->incoming_previous_auth_info);
3618 : } else {
3619 1576 : r->incoming_previous_auth_info = NULL;
3620 : }
3621 1624 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->outgoing_count));
3622 1624 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_outgoing_current_auth_info));
3623 1624 : if (_ptr_outgoing_current_auth_info) {
3624 48 : NDR_PULL_ALLOC(ndr, r->outgoing_current_auth_info);
3625 : } else {
3626 1576 : r->outgoing_current_auth_info = NULL;
3627 : }
3628 1624 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_outgoing_previous_auth_info));
3629 1624 : if (_ptr_outgoing_previous_auth_info) {
3630 48 : NDR_PULL_ALLOC(ndr, r->outgoing_previous_auth_info);
3631 : } else {
3632 1576 : r->outgoing_previous_auth_info = NULL;
3633 : }
3634 1624 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3635 : }
3636 3200 : if (ndr_flags & NDR_BUFFERS) {
3637 1624 : if (r->incoming_current_auth_info) {
3638 48 : _mem_save_incoming_current_auth_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
3639 48 : NDR_PULL_SET_MEM_CTX(ndr, r->incoming_current_auth_info, 0);
3640 48 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoBuffer(ndr, NDR_SCALARS|NDR_BUFFERS, r->incoming_current_auth_info));
3641 48 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_incoming_current_auth_info_0, 0);
3642 : }
3643 1624 : if (r->incoming_previous_auth_info) {
3644 48 : _mem_save_incoming_previous_auth_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
3645 48 : NDR_PULL_SET_MEM_CTX(ndr, r->incoming_previous_auth_info, 0);
3646 48 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoBuffer(ndr, NDR_SCALARS|NDR_BUFFERS, r->incoming_previous_auth_info));
3647 48 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_incoming_previous_auth_info_0, 0);
3648 : }
3649 1624 : if (r->outgoing_current_auth_info) {
3650 48 : _mem_save_outgoing_current_auth_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
3651 48 : NDR_PULL_SET_MEM_CTX(ndr, r->outgoing_current_auth_info, 0);
3652 48 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoBuffer(ndr, NDR_SCALARS|NDR_BUFFERS, r->outgoing_current_auth_info));
3653 48 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_outgoing_current_auth_info_0, 0);
3654 : }
3655 1624 : if (r->outgoing_previous_auth_info) {
3656 48 : _mem_save_outgoing_previous_auth_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
3657 48 : NDR_PULL_SET_MEM_CTX(ndr, r->outgoing_previous_auth_info, 0);
3658 48 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoBuffer(ndr, NDR_SCALARS|NDR_BUFFERS, r->outgoing_previous_auth_info));
3659 48 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_outgoing_previous_auth_info_0, 0);
3660 : }
3661 : }
3662 3200 : return NDR_ERR_SUCCESS;
3663 : }
3664 :
3665 0 : static void ndr_print_flags_lsa_TrustDomainInfoAuthInfo(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_TrustDomainInfoAuthInfo *r)
3666 : {
3667 0 : ndr_print_lsa_TrustDomainInfoAuthInfo(ndr, name, r);
3668 0 : }
3669 :
3670 772 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoAuthInfo(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoAuthInfo *r)
3671 : {
3672 772 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoAuthInfo");
3673 772 : if (r == NULL) { ndr_print_null(ndr); return; }
3674 772 : ndr->depth++;
3675 772 : ndr_print_uint32(ndr, "incoming_count", r->incoming_count);
3676 772 : ndr_print_ptr(ndr, "incoming_current_auth_info", r->incoming_current_auth_info);
3677 772 : ndr->depth++;
3678 772 : if (r->incoming_current_auth_info) {
3679 0 : ndr_print_lsa_TrustDomainInfoBuffer(ndr, "incoming_current_auth_info", r->incoming_current_auth_info);
3680 : }
3681 772 : ndr->depth--;
3682 772 : ndr_print_ptr(ndr, "incoming_previous_auth_info", r->incoming_previous_auth_info);
3683 772 : ndr->depth++;
3684 772 : if (r->incoming_previous_auth_info) {
3685 0 : ndr_print_lsa_TrustDomainInfoBuffer(ndr, "incoming_previous_auth_info", r->incoming_previous_auth_info);
3686 : }
3687 772 : ndr->depth--;
3688 772 : ndr_print_uint32(ndr, "outgoing_count", r->outgoing_count);
3689 772 : ndr_print_ptr(ndr, "outgoing_current_auth_info", r->outgoing_current_auth_info);
3690 772 : ndr->depth++;
3691 772 : if (r->outgoing_current_auth_info) {
3692 0 : ndr_print_lsa_TrustDomainInfoBuffer(ndr, "outgoing_current_auth_info", r->outgoing_current_auth_info);
3693 : }
3694 772 : ndr->depth--;
3695 772 : ndr_print_ptr(ndr, "outgoing_previous_auth_info", r->outgoing_previous_auth_info);
3696 772 : ndr->depth++;
3697 772 : if (r->outgoing_previous_auth_info) {
3698 0 : ndr_print_lsa_TrustDomainInfoBuffer(ndr, "outgoing_previous_auth_info", r->outgoing_previous_auth_info);
3699 : }
3700 772 : ndr->depth--;
3701 772 : ndr->depth--;
3702 : }
3703 :
3704 1986 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoFullInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoFullInfo *r)
3705 : {
3706 1986 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3707 1986 : if (ndr_flags & NDR_SCALARS) {
3708 993 : NDR_CHECK(ndr_push_align(ndr, 5));
3709 993 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS, &r->info_ex));
3710 993 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoPosixOffset(ndr, NDR_SCALARS, &r->posix_offset));
3711 993 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfo(ndr, NDR_SCALARS, &r->auth_info));
3712 993 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3713 : }
3714 1986 : if (ndr_flags & NDR_BUFFERS) {
3715 993 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_BUFFERS, &r->info_ex));
3716 993 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfo(ndr, NDR_BUFFERS, &r->auth_info));
3717 : }
3718 1986 : return NDR_ERR_SUCCESS;
3719 : }
3720 :
3721 1600 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoFullInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoFullInfo *r)
3722 : {
3723 1600 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3724 1600 : if (ndr_flags & NDR_SCALARS) {
3725 800 : NDR_CHECK(ndr_pull_align(ndr, 5));
3726 800 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS, &r->info_ex));
3727 800 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoPosixOffset(ndr, NDR_SCALARS, &r->posix_offset));
3728 800 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfo(ndr, NDR_SCALARS, &r->auth_info));
3729 800 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3730 : }
3731 1600 : if (ndr_flags & NDR_BUFFERS) {
3732 800 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_BUFFERS, &r->info_ex));
3733 800 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfo(ndr, NDR_BUFFERS, &r->auth_info));
3734 : }
3735 1600 : return NDR_ERR_SUCCESS;
3736 : }
3737 :
3738 386 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoFullInfo(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoFullInfo *r)
3739 : {
3740 386 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoFullInfo");
3741 386 : if (r == NULL) { ndr_print_null(ndr); return; }
3742 386 : ndr->depth++;
3743 386 : ndr_print_lsa_TrustDomainInfoInfoEx(ndr, "info_ex", &r->info_ex);
3744 386 : ndr_print_lsa_TrustDomainInfoPosixOffset(ndr, "posix_offset", &r->posix_offset);
3745 386 : ndr_print_lsa_TrustDomainInfoAuthInfo(ndr, "auth_info", &r->auth_info);
3746 386 : ndr->depth--;
3747 : }
3748 :
3749 57 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoAuthInfoInternal(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoAuthInfoInternal *r)
3750 : {
3751 57 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3752 57 : if (ndr_flags & NDR_SCALARS) {
3753 57 : NDR_CHECK(ndr_push_align(ndr, 5));
3754 57 : NDR_CHECK(ndr_push_lsa_DATA_BUF2(ndr, NDR_SCALARS, &r->auth_blob));
3755 57 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3756 : }
3757 57 : if (ndr_flags & NDR_BUFFERS) {
3758 57 : NDR_CHECK(ndr_push_lsa_DATA_BUF2(ndr, NDR_BUFFERS, &r->auth_blob));
3759 : }
3760 57 : return NDR_ERR_SUCCESS;
3761 : }
3762 :
3763 61 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoAuthInfoInternal(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoAuthInfoInternal *r)
3764 : {
3765 61 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3766 61 : if (ndr_flags & NDR_SCALARS) {
3767 59 : NDR_CHECK(ndr_pull_align(ndr, 5));
3768 59 : NDR_CHECK(ndr_pull_lsa_DATA_BUF2(ndr, NDR_SCALARS, &r->auth_blob));
3769 59 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3770 : }
3771 61 : if (ndr_flags & NDR_BUFFERS) {
3772 59 : NDR_CHECK(ndr_pull_lsa_DATA_BUF2(ndr, NDR_BUFFERS, &r->auth_blob));
3773 : }
3774 57 : return NDR_ERR_SUCCESS;
3775 : }
3776 :
3777 2 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoAuthInfoInternal(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoAuthInfoInternal *r)
3778 : {
3779 2 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoAuthInfoInternal");
3780 2 : if (r == NULL) { ndr_print_null(ndr); return; }
3781 2 : ndr->depth++;
3782 2 : ndr_print_lsa_DATA_BUF2(ndr, "auth_blob", &r->auth_blob);
3783 2 : ndr->depth--;
3784 : }
3785 :
3786 0 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoFullInfoInternal(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoFullInfoInternal *r)
3787 : {
3788 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3789 0 : if (ndr_flags & NDR_SCALARS) {
3790 0 : NDR_CHECK(ndr_push_align(ndr, 5));
3791 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS, &r->info_ex));
3792 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoPosixOffset(ndr, NDR_SCALARS, &r->posix_offset));
3793 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfoInternal(ndr, NDR_SCALARS, &r->auth_info));
3794 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3795 : }
3796 0 : if (ndr_flags & NDR_BUFFERS) {
3797 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_BUFFERS, &r->info_ex));
3798 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfoInternal(ndr, NDR_BUFFERS, &r->auth_info));
3799 : }
3800 0 : return NDR_ERR_SUCCESS;
3801 : }
3802 :
3803 4 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoFullInfoInternal(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoFullInfoInternal *r)
3804 : {
3805 4 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3806 4 : if (ndr_flags & NDR_SCALARS) {
3807 2 : NDR_CHECK(ndr_pull_align(ndr, 5));
3808 2 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS, &r->info_ex));
3809 2 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoPosixOffset(ndr, NDR_SCALARS, &r->posix_offset));
3810 2 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfoInternal(ndr, NDR_SCALARS, &r->auth_info));
3811 2 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3812 : }
3813 4 : if (ndr_flags & NDR_BUFFERS) {
3814 2 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_BUFFERS, &r->info_ex));
3815 2 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfoInternal(ndr, NDR_BUFFERS, &r->auth_info));
3816 : }
3817 0 : return NDR_ERR_SUCCESS;
3818 : }
3819 :
3820 2 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoFullInfoInternal(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoFullInfoInternal *r)
3821 : {
3822 2 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoFullInfoInternal");
3823 2 : if (r == NULL) { ndr_print_null(ndr); return; }
3824 2 : ndr->depth++;
3825 2 : ndr_print_lsa_TrustDomainInfoInfoEx(ndr, "info_ex", &r->info_ex);
3826 2 : ndr_print_lsa_TrustDomainInfoPosixOffset(ndr, "posix_offset", &r->posix_offset);
3827 2 : ndr_print_lsa_TrustDomainInfoAuthInfoInternal(ndr, "auth_info", &r->auth_info);
3828 2 : ndr->depth--;
3829 : }
3830 :
3831 71 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoAuthInfoInternalAES(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoAuthInfoInternalAES *r)
3832 : {
3833 71 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3834 71 : if (ndr_flags & NDR_SCALARS) {
3835 71 : NDR_CHECK(ndr_push_align(ndr, 5));
3836 71 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->auth_data, 64));
3837 71 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->salt, 16));
3838 71 : NDR_CHECK(ndr_push_lsa_DATA_BUF2(ndr, NDR_SCALARS, &r->cipher));
3839 71 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3840 : }
3841 71 : if (ndr_flags & NDR_BUFFERS) {
3842 71 : NDR_CHECK(ndr_push_lsa_DATA_BUF2(ndr, NDR_BUFFERS, &r->cipher));
3843 : }
3844 71 : return NDR_ERR_SUCCESS;
3845 : }
3846 :
3847 71 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoAuthInfoInternalAES(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoAuthInfoInternalAES *r)
3848 : {
3849 71 : uint32_t size_auth_data_0 = 0;
3850 71 : uint32_t size_salt_0 = 0;
3851 71 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3852 71 : if (ndr_flags & NDR_SCALARS) {
3853 71 : NDR_CHECK(ndr_pull_align(ndr, 5));
3854 71 : size_auth_data_0 = 64;
3855 71 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->auth_data, size_auth_data_0));
3856 71 : size_salt_0 = 16;
3857 71 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->salt, size_salt_0));
3858 71 : NDR_CHECK(ndr_pull_lsa_DATA_BUF2(ndr, NDR_SCALARS, &r->cipher));
3859 71 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3860 : }
3861 71 : if (ndr_flags & NDR_BUFFERS) {
3862 71 : NDR_CHECK(ndr_pull_lsa_DATA_BUF2(ndr, NDR_BUFFERS, &r->cipher));
3863 : }
3864 71 : return NDR_ERR_SUCCESS;
3865 : }
3866 :
3867 0 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoAuthInfoInternalAES(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoAuthInfoInternalAES *r)
3868 : {
3869 0 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoAuthInfoInternalAES");
3870 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3871 0 : ndr->depth++;
3872 0 : ndr_print_array_uint8(ndr, "auth_data", r->auth_data, 64);
3873 0 : ndr_print_array_uint8(ndr, "salt", r->salt, 16);
3874 0 : ndr_print_lsa_DATA_BUF2(ndr, "cipher", &r->cipher);
3875 0 : ndr->depth--;
3876 : }
3877 :
3878 0 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoFullInfoInternalAES(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoFullInfoInternalAES *r)
3879 : {
3880 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3881 0 : if (ndr_flags & NDR_SCALARS) {
3882 0 : NDR_CHECK(ndr_push_align(ndr, 5));
3883 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS, &r->info_ex));
3884 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoPosixOffset(ndr, NDR_SCALARS, &r->posix_offset));
3885 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfoInternalAES(ndr, NDR_SCALARS, &r->auth_info));
3886 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3887 : }
3888 0 : if (ndr_flags & NDR_BUFFERS) {
3889 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_BUFFERS, &r->info_ex));
3890 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfoInternalAES(ndr, NDR_BUFFERS, &r->auth_info));
3891 : }
3892 0 : return NDR_ERR_SUCCESS;
3893 : }
3894 :
3895 0 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoFullInfoInternalAES(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoFullInfoInternalAES *r)
3896 : {
3897 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3898 0 : if (ndr_flags & NDR_SCALARS) {
3899 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
3900 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS, &r->info_ex));
3901 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoPosixOffset(ndr, NDR_SCALARS, &r->posix_offset));
3902 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfoInternalAES(ndr, NDR_SCALARS, &r->auth_info));
3903 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3904 : }
3905 0 : if (ndr_flags & NDR_BUFFERS) {
3906 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_BUFFERS, &r->info_ex));
3907 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfoInternalAES(ndr, NDR_BUFFERS, &r->auth_info));
3908 : }
3909 0 : return NDR_ERR_SUCCESS;
3910 : }
3911 :
3912 0 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoFullInfoInternalAES(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoFullInfoInternalAES *r)
3913 : {
3914 0 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoFullInfoInternalAES");
3915 0 : if (r == NULL) { ndr_print_null(ndr); return; }
3916 0 : ndr->depth++;
3917 0 : ndr_print_lsa_TrustDomainInfoInfoEx(ndr, "info_ex", &r->info_ex);
3918 0 : ndr_print_lsa_TrustDomainInfoPosixOffset(ndr, "posix_offset", &r->posix_offset);
3919 0 : ndr_print_lsa_TrustDomainInfoAuthInfoInternalAES(ndr, "auth_info", &r->auth_info);
3920 0 : ndr->depth--;
3921 : }
3922 :
3923 1938 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoInfoEx2Internal(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoInfoEx2Internal *r)
3924 : {
3925 1938 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3926 1938 : if (ndr_flags & NDR_SCALARS) {
3927 969 : NDR_CHECK(ndr_push_align(ndr, 5));
3928 969 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS, &r->info_ex));
3929 969 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->forest_trust_length));
3930 969 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->forest_trust_data));
3931 969 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
3932 : }
3933 1938 : if (ndr_flags & NDR_BUFFERS) {
3934 969 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_BUFFERS, &r->info_ex));
3935 969 : if (r->forest_trust_data) {
3936 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->forest_trust_length));
3937 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->forest_trust_data, r->forest_trust_length));
3938 : }
3939 : }
3940 1938 : return NDR_ERR_SUCCESS;
3941 : }
3942 :
3943 1552 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoInfoEx2Internal(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoInfoEx2Internal *r)
3944 : {
3945 0 : uint32_t _ptr_forest_trust_data;
3946 1552 : uint32_t size_forest_trust_data_1 = 0;
3947 1552 : TALLOC_CTX *_mem_save_forest_trust_data_0 = NULL;
3948 1552 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
3949 1552 : if (ndr_flags & NDR_SCALARS) {
3950 776 : NDR_CHECK(ndr_pull_align(ndr, 5));
3951 776 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS, &r->info_ex));
3952 776 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->forest_trust_length));
3953 776 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_forest_trust_data));
3954 776 : if (_ptr_forest_trust_data) {
3955 0 : NDR_PULL_ALLOC(ndr, r->forest_trust_data);
3956 : } else {
3957 776 : r->forest_trust_data = NULL;
3958 : }
3959 776 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
3960 : }
3961 1552 : if (ndr_flags & NDR_BUFFERS) {
3962 776 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_BUFFERS, &r->info_ex));
3963 776 : if (r->forest_trust_data) {
3964 0 : _mem_save_forest_trust_data_0 = NDR_PULL_GET_MEM_CTX(ndr);
3965 0 : NDR_PULL_SET_MEM_CTX(ndr, r->forest_trust_data, 0);
3966 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->forest_trust_data));
3967 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->forest_trust_data, &size_forest_trust_data_1));
3968 0 : NDR_PULL_ALLOC_N(ndr, r->forest_trust_data, size_forest_trust_data_1);
3969 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->forest_trust_data, size_forest_trust_data_1));
3970 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_forest_trust_data_0, 0);
3971 : }
3972 776 : if (r->forest_trust_data) {
3973 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->forest_trust_data, r->forest_trust_length));
3974 : }
3975 : }
3976 1552 : return NDR_ERR_SUCCESS;
3977 : }
3978 :
3979 386 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoInfoEx2Internal(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoInfoEx2Internal *r)
3980 : {
3981 386 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoInfoEx2Internal");
3982 386 : if (r == NULL) { ndr_print_null(ndr); return; }
3983 386 : ndr->depth++;
3984 386 : ndr_print_lsa_TrustDomainInfoInfoEx(ndr, "info_ex", &r->info_ex);
3985 386 : ndr_print_uint32(ndr, "forest_trust_length", r->forest_trust_length);
3986 386 : ndr_print_ptr(ndr, "forest_trust_data", r->forest_trust_data);
3987 386 : ndr->depth++;
3988 386 : if (r->forest_trust_data) {
3989 0 : ndr_print_array_uint8(ndr, "forest_trust_data", r->forest_trust_data, r->forest_trust_length);
3990 : }
3991 386 : ndr->depth--;
3992 386 : ndr->depth--;
3993 : }
3994 :
3995 1938 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoFullInfo2Internal(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoFullInfo2Internal *r)
3996 : {
3997 1938 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
3998 1938 : if (ndr_flags & NDR_SCALARS) {
3999 969 : NDR_CHECK(ndr_push_align(ndr, 5));
4000 969 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx2Internal(ndr, NDR_SCALARS, &r->info));
4001 969 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoPosixOffset(ndr, NDR_SCALARS, &r->posix_offset));
4002 969 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfo(ndr, NDR_SCALARS, &r->auth_info));
4003 969 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
4004 : }
4005 1938 : if (ndr_flags & NDR_BUFFERS) {
4006 969 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx2Internal(ndr, NDR_BUFFERS, &r->info));
4007 969 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfo(ndr, NDR_BUFFERS, &r->auth_info));
4008 : }
4009 1938 : return NDR_ERR_SUCCESS;
4010 : }
4011 :
4012 1552 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoFullInfo2Internal(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoFullInfo2Internal *r)
4013 : {
4014 1552 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
4015 1552 : if (ndr_flags & NDR_SCALARS) {
4016 776 : NDR_CHECK(ndr_pull_align(ndr, 5));
4017 776 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx2Internal(ndr, NDR_SCALARS, &r->info));
4018 776 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoPosixOffset(ndr, NDR_SCALARS, &r->posix_offset));
4019 776 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfo(ndr, NDR_SCALARS, &r->auth_info));
4020 776 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
4021 : }
4022 1552 : if (ndr_flags & NDR_BUFFERS) {
4023 776 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx2Internal(ndr, NDR_BUFFERS, &r->info));
4024 776 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfo(ndr, NDR_BUFFERS, &r->auth_info));
4025 : }
4026 1552 : return NDR_ERR_SUCCESS;
4027 : }
4028 :
4029 386 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoFullInfo2Internal(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoFullInfo2Internal *r)
4030 : {
4031 386 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoFullInfo2Internal");
4032 386 : if (r == NULL) { ndr_print_null(ndr); return; }
4033 386 : ndr->depth++;
4034 386 : ndr_print_lsa_TrustDomainInfoInfoEx2Internal(ndr, "info", &r->info);
4035 386 : ndr_print_lsa_TrustDomainInfoPosixOffset(ndr, "posix_offset", &r->posix_offset);
4036 386 : ndr_print_lsa_TrustDomainInfoAuthInfo(ndr, "auth_info", &r->auth_info);
4037 386 : ndr->depth--;
4038 : }
4039 :
4040 1015 : static enum ndr_err_code ndr_push_lsa_TrustDomainInfoSupportedEncTypes(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TrustDomainInfoSupportedEncTypes *r)
4041 : {
4042 1015 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
4043 1015 : if (ndr_flags & NDR_SCALARS) {
4044 1015 : NDR_CHECK(ndr_push_align(ndr, 4));
4045 1015 : NDR_CHECK(ndr_push_kerb_EncTypes(ndr, NDR_SCALARS, r->enc_types));
4046 1015 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
4047 : }
4048 1015 : if (ndr_flags & NDR_BUFFERS) {
4049 0 : }
4050 1015 : return NDR_ERR_SUCCESS;
4051 : }
4052 :
4053 822 : static enum ndr_err_code ndr_pull_lsa_TrustDomainInfoSupportedEncTypes(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TrustDomainInfoSupportedEncTypes *r)
4054 : {
4055 822 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
4056 822 : if (ndr_flags & NDR_SCALARS) {
4057 822 : NDR_CHECK(ndr_pull_align(ndr, 4));
4058 822 : NDR_CHECK(ndr_pull_kerb_EncTypes(ndr, NDR_SCALARS, &r->enc_types));
4059 822 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
4060 : }
4061 822 : if (ndr_flags & NDR_BUFFERS) {
4062 0 : }
4063 822 : return NDR_ERR_SUCCESS;
4064 : }
4065 :
4066 386 : _PUBLIC_ void ndr_print_lsa_TrustDomainInfoSupportedEncTypes(struct ndr_print *ndr, const char *name, const struct lsa_TrustDomainInfoSupportedEncTypes *r)
4067 : {
4068 386 : ndr_print_struct(ndr, name, "lsa_TrustDomainInfoSupportedEncTypes");
4069 386 : if (r == NULL) { ndr_print_null(ndr); return; }
4070 386 : ndr->depth++;
4071 386 : ndr_print_kerb_EncTypes(ndr, "enc_types", r->enc_types);
4072 386 : ndr->depth--;
4073 : }
4074 :
4075 6298 : static enum ndr_err_code ndr_push_lsa_TrustedDomainInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union lsa_TrustedDomainInfo *r)
4076 : {
4077 0 : uint32_t level;
4078 6298 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
4079 6298 : if (ndr_flags & NDR_SCALARS) {
4080 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
4081 6298 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
4082 6298 : NDR_CHECK(ndr_push_union_align(ndr, 5));
4083 6298 : NDR_CHECK(ndr_push_lsa_TrustDomInfoEnum(ndr, NDR_SCALARS, level));
4084 6298 : NDR_CHECK(ndr_push_union_align(ndr, 5));
4085 6298 : switch (level) {
4086 969 : case LSA_TRUSTED_DOMAIN_INFO_NAME: {
4087 969 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoName(ndr, NDR_SCALARS, &r->name));
4088 969 : break; }
4089 :
4090 0 : case LSA_TRUSTED_DOMAIN_INFO_CONTROLLERS: {
4091 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoControllers(ndr, NDR_SCALARS, &r->controllers));
4092 0 : break; }
4093 :
4094 969 : case LSA_TRUSTED_DOMAIN_INFO_POSIX_OFFSET: {
4095 969 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoPosixOffset(ndr, NDR_SCALARS, &r->posix_offset));
4096 969 : break; }
4097 :
4098 0 : case LSA_TRUSTED_DOMAIN_INFO_PASSWORD: {
4099 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoPassword(ndr, NDR_SCALARS, &r->password));
4100 0 : break; }
4101 :
4102 0 : case LSA_TRUSTED_DOMAIN_INFO_BASIC: {
4103 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoBasic(ndr, NDR_SCALARS, &r->info_basic));
4104 0 : break; }
4105 :
4106 1383 : case LSA_TRUSTED_DOMAIN_INFO_INFO_EX: {
4107 1383 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS, &r->info_ex));
4108 1383 : break; }
4109 :
4110 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO: {
4111 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfo(ndr, NDR_SCALARS, &r->auth_info));
4112 0 : break; }
4113 :
4114 993 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO: {
4115 993 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoFullInfo(ndr, NDR_SCALARS, &r->full_info));
4116 993 : break; }
4117 :
4118 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL: {
4119 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfoInternal(ndr, NDR_SCALARS, &r->auth_info_internal));
4120 0 : break; }
4121 :
4122 0 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL: {
4123 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoFullInfoInternal(ndr, NDR_SCALARS, &r->full_info_internal));
4124 0 : break; }
4125 :
4126 0 : case LSA_TRUSTED_DOMAIN_INFO_INFO_EX2_INTERNAL: {
4127 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx2Internal(ndr, NDR_SCALARS, &r->info_ex2_internal));
4128 0 : break; }
4129 :
4130 969 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_2_INTERNAL: {
4131 969 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoFullInfo2Internal(ndr, NDR_SCALARS, &r->full_info2_internal));
4132 969 : break; }
4133 :
4134 1015 : case LSA_TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES: {
4135 1015 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoSupportedEncTypes(ndr, NDR_SCALARS, &r->enc_types));
4136 1015 : break; }
4137 :
4138 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL_AES: {
4139 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfoInternalAES(ndr, NDR_SCALARS, &r->auth_info_internal_aes));
4140 0 : break; }
4141 :
4142 0 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL_AES: {
4143 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoFullInfoInternalAES(ndr, NDR_SCALARS, &r->full_info_internal_aes));
4144 0 : break; }
4145 :
4146 0 : default:
4147 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
4148 : }
4149 : }
4150 6298 : if (ndr_flags & NDR_BUFFERS) {
4151 6298 : if (!(ndr_flags & NDR_SCALARS)) {
4152 : /* We didn't get it above, and the token is not needed after this. */
4153 0 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
4154 : }
4155 6298 : switch (level) {
4156 969 : case LSA_TRUSTED_DOMAIN_INFO_NAME:
4157 969 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoName(ndr, NDR_BUFFERS, &r->name));
4158 969 : break;
4159 :
4160 0 : case LSA_TRUSTED_DOMAIN_INFO_CONTROLLERS:
4161 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoControllers(ndr, NDR_BUFFERS, &r->controllers));
4162 0 : break;
4163 :
4164 969 : case LSA_TRUSTED_DOMAIN_INFO_POSIX_OFFSET:
4165 969 : break;
4166 :
4167 0 : case LSA_TRUSTED_DOMAIN_INFO_PASSWORD:
4168 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoPassword(ndr, NDR_BUFFERS, &r->password));
4169 0 : break;
4170 :
4171 0 : case LSA_TRUSTED_DOMAIN_INFO_BASIC:
4172 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoBasic(ndr, NDR_BUFFERS, &r->info_basic));
4173 0 : break;
4174 :
4175 1383 : case LSA_TRUSTED_DOMAIN_INFO_INFO_EX:
4176 1383 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_BUFFERS, &r->info_ex));
4177 1383 : break;
4178 :
4179 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO:
4180 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfo(ndr, NDR_BUFFERS, &r->auth_info));
4181 0 : break;
4182 :
4183 993 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO:
4184 993 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoFullInfo(ndr, NDR_BUFFERS, &r->full_info));
4185 993 : break;
4186 :
4187 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL:
4188 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfoInternal(ndr, NDR_BUFFERS, &r->auth_info_internal));
4189 0 : break;
4190 :
4191 0 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL:
4192 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoFullInfoInternal(ndr, NDR_BUFFERS, &r->full_info_internal));
4193 0 : break;
4194 :
4195 0 : case LSA_TRUSTED_DOMAIN_INFO_INFO_EX2_INTERNAL:
4196 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx2Internal(ndr, NDR_BUFFERS, &r->info_ex2_internal));
4197 0 : break;
4198 :
4199 969 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_2_INTERNAL:
4200 969 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoFullInfo2Internal(ndr, NDR_BUFFERS, &r->full_info2_internal));
4201 969 : break;
4202 :
4203 1015 : case LSA_TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES:
4204 1015 : break;
4205 :
4206 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL_AES:
4207 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfoInternalAES(ndr, NDR_BUFFERS, &r->auth_info_internal_aes));
4208 0 : break;
4209 :
4210 0 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL_AES:
4211 0 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoFullInfoInternalAES(ndr, NDR_BUFFERS, &r->full_info_internal_aes));
4212 0 : break;
4213 :
4214 0 : default:
4215 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
4216 : }
4217 : }
4218 6298 : return NDR_ERR_SUCCESS;
4219 : }
4220 :
4221 5020 : static enum ndr_err_code ndr_pull_lsa_TrustedDomainInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union lsa_TrustedDomainInfo *r)
4222 : {
4223 2 : uint32_t level;
4224 2 : uint16_t _level;
4225 5020 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
4226 5020 : if (ndr_flags & NDR_SCALARS) {
4227 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
4228 5020 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
4229 5020 : NDR_CHECK(ndr_pull_union_align(ndr, 5));
4230 5020 : NDR_CHECK(ndr_pull_uint1632(ndr, NDR_SCALARS, &_level));
4231 5020 : if (_level != level) {
4232 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu16" for r at %s", (uint16_t)_level, __location__);
4233 : }
4234 5020 : NDR_CHECK(ndr_pull_union_align(ndr, 5));
4235 5020 : switch (level) {
4236 776 : case LSA_TRUSTED_DOMAIN_INFO_NAME: {
4237 776 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoName(ndr, NDR_SCALARS, &r->name));
4238 776 : break; }
4239 :
4240 0 : case LSA_TRUSTED_DOMAIN_INFO_CONTROLLERS: {
4241 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoControllers(ndr, NDR_SCALARS, &r->controllers));
4242 0 : break; }
4243 :
4244 776 : case LSA_TRUSTED_DOMAIN_INFO_POSIX_OFFSET: {
4245 776 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoPosixOffset(ndr, NDR_SCALARS, &r->posix_offset));
4246 776 : break; }
4247 :
4248 0 : case LSA_TRUSTED_DOMAIN_INFO_PASSWORD: {
4249 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoPassword(ndr, NDR_SCALARS, &r->password));
4250 0 : break; }
4251 :
4252 0 : case LSA_TRUSTED_DOMAIN_INFO_BASIC: {
4253 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoBasic(ndr, NDR_SCALARS, &r->info_basic));
4254 0 : break; }
4255 :
4256 1068 : case LSA_TRUSTED_DOMAIN_INFO_INFO_EX: {
4257 1068 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS, &r->info_ex));
4258 1068 : break; }
4259 :
4260 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO: {
4261 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfo(ndr, NDR_SCALARS, &r->auth_info));
4262 0 : break; }
4263 :
4264 800 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO: {
4265 800 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoFullInfo(ndr, NDR_SCALARS, &r->full_info));
4266 800 : break; }
4267 :
4268 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL: {
4269 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfoInternal(ndr, NDR_SCALARS, &r->auth_info_internal));
4270 0 : break; }
4271 :
4272 2 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL: {
4273 2 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoFullInfoInternal(ndr, NDR_SCALARS, &r->full_info_internal));
4274 0 : break; }
4275 :
4276 0 : case LSA_TRUSTED_DOMAIN_INFO_INFO_EX2_INTERNAL: {
4277 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx2Internal(ndr, NDR_SCALARS, &r->info_ex2_internal));
4278 0 : break; }
4279 :
4280 776 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_2_INTERNAL: {
4281 776 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoFullInfo2Internal(ndr, NDR_SCALARS, &r->full_info2_internal));
4282 776 : break; }
4283 :
4284 822 : case LSA_TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES: {
4285 822 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoSupportedEncTypes(ndr, NDR_SCALARS, &r->enc_types));
4286 822 : break; }
4287 :
4288 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL_AES: {
4289 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfoInternalAES(ndr, NDR_SCALARS, &r->auth_info_internal_aes));
4290 0 : break; }
4291 :
4292 0 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL_AES: {
4293 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoFullInfoInternalAES(ndr, NDR_SCALARS, &r->full_info_internal_aes));
4294 0 : break; }
4295 :
4296 0 : default:
4297 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
4298 : }
4299 : }
4300 5020 : if (ndr_flags & NDR_BUFFERS) {
4301 5020 : if (!(ndr_flags & NDR_SCALARS)) {
4302 : /* We didn't get it above, and the token is not needed after this. */
4303 0 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
4304 : }
4305 5020 : switch (level) {
4306 776 : case LSA_TRUSTED_DOMAIN_INFO_NAME:
4307 776 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoName(ndr, NDR_BUFFERS, &r->name));
4308 776 : break;
4309 :
4310 0 : case LSA_TRUSTED_DOMAIN_INFO_CONTROLLERS:
4311 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoControllers(ndr, NDR_BUFFERS, &r->controllers));
4312 0 : break;
4313 :
4314 776 : case LSA_TRUSTED_DOMAIN_INFO_POSIX_OFFSET:
4315 776 : break;
4316 :
4317 0 : case LSA_TRUSTED_DOMAIN_INFO_PASSWORD:
4318 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoPassword(ndr, NDR_BUFFERS, &r->password));
4319 0 : break;
4320 :
4321 0 : case LSA_TRUSTED_DOMAIN_INFO_BASIC:
4322 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoBasic(ndr, NDR_BUFFERS, &r->info_basic));
4323 0 : break;
4324 :
4325 1068 : case LSA_TRUSTED_DOMAIN_INFO_INFO_EX:
4326 1068 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_BUFFERS, &r->info_ex));
4327 1068 : break;
4328 :
4329 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO:
4330 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfo(ndr, NDR_BUFFERS, &r->auth_info));
4331 0 : break;
4332 :
4333 800 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO:
4334 800 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoFullInfo(ndr, NDR_BUFFERS, &r->full_info));
4335 800 : break;
4336 :
4337 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL:
4338 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfoInternal(ndr, NDR_BUFFERS, &r->auth_info_internal));
4339 0 : break;
4340 :
4341 2 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL:
4342 2 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoFullInfoInternal(ndr, NDR_BUFFERS, &r->full_info_internal));
4343 0 : break;
4344 :
4345 0 : case LSA_TRUSTED_DOMAIN_INFO_INFO_EX2_INTERNAL:
4346 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx2Internal(ndr, NDR_BUFFERS, &r->info_ex2_internal));
4347 0 : break;
4348 :
4349 776 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_2_INTERNAL:
4350 776 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoFullInfo2Internal(ndr, NDR_BUFFERS, &r->full_info2_internal));
4351 776 : break;
4352 :
4353 822 : case LSA_TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES:
4354 822 : break;
4355 :
4356 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL_AES:
4357 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfoInternalAES(ndr, NDR_BUFFERS, &r->auth_info_internal_aes));
4358 0 : break;
4359 :
4360 0 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL_AES:
4361 0 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoFullInfoInternalAES(ndr, NDR_BUFFERS, &r->full_info_internal_aes));
4362 0 : break;
4363 :
4364 0 : default:
4365 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
4366 : }
4367 : }
4368 5018 : return NDR_ERR_SUCCESS;
4369 : }
4370 :
4371 2416 : _PUBLIC_ void ndr_print_lsa_TrustedDomainInfo(struct ndr_print *ndr, const char *name, const union lsa_TrustedDomainInfo *r)
4372 : {
4373 2 : uint32_t level;
4374 2416 : level = ndr_print_steal_switch_value(ndr, r);
4375 2416 : ndr_print_union(ndr, name, level, "lsa_TrustedDomainInfo");
4376 2416 : switch (level) {
4377 386 : case LSA_TRUSTED_DOMAIN_INFO_NAME:
4378 386 : ndr_print_lsa_TrustDomainInfoName(ndr, "name", &r->name);
4379 386 : break;
4380 :
4381 0 : case LSA_TRUSTED_DOMAIN_INFO_CONTROLLERS:
4382 0 : ndr_print_lsa_TrustDomainInfoControllers(ndr, "controllers", &r->controllers);
4383 0 : break;
4384 :
4385 386 : case LSA_TRUSTED_DOMAIN_INFO_POSIX_OFFSET:
4386 386 : ndr_print_lsa_TrustDomainInfoPosixOffset(ndr, "posix_offset", &r->posix_offset);
4387 386 : break;
4388 :
4389 0 : case LSA_TRUSTED_DOMAIN_INFO_PASSWORD:
4390 0 : ndr_print_lsa_TrustDomainInfoPassword(ndr, "password", &r->password);
4391 0 : break;
4392 :
4393 0 : case LSA_TRUSTED_DOMAIN_INFO_BASIC:
4394 0 : ndr_print_lsa_TrustDomainInfoBasic(ndr, "info_basic", &r->info_basic);
4395 0 : break;
4396 :
4397 484 : case LSA_TRUSTED_DOMAIN_INFO_INFO_EX:
4398 484 : ndr_print_lsa_TrustDomainInfoInfoEx(ndr, "info_ex", &r->info_ex);
4399 484 : break;
4400 :
4401 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO:
4402 0 : ndr_print_lsa_TrustDomainInfoAuthInfo(ndr, "auth_info", &r->auth_info);
4403 0 : break;
4404 :
4405 386 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO:
4406 386 : ndr_print_lsa_TrustDomainInfoFullInfo(ndr, "full_info", &r->full_info);
4407 386 : break;
4408 :
4409 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL:
4410 0 : ndr_print_lsa_TrustDomainInfoAuthInfoInternal(ndr, "auth_info_internal", &r->auth_info_internal);
4411 0 : break;
4412 :
4413 2 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL:
4414 2 : ndr_print_lsa_TrustDomainInfoFullInfoInternal(ndr, "full_info_internal", &r->full_info_internal);
4415 2 : break;
4416 :
4417 0 : case LSA_TRUSTED_DOMAIN_INFO_INFO_EX2_INTERNAL:
4418 0 : ndr_print_lsa_TrustDomainInfoInfoEx2Internal(ndr, "info_ex2_internal", &r->info_ex2_internal);
4419 0 : break;
4420 :
4421 386 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_2_INTERNAL:
4422 386 : ndr_print_lsa_TrustDomainInfoFullInfo2Internal(ndr, "full_info2_internal", &r->full_info2_internal);
4423 386 : break;
4424 :
4425 386 : case LSA_TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES:
4426 386 : ndr_print_lsa_TrustDomainInfoSupportedEncTypes(ndr, "enc_types", &r->enc_types);
4427 386 : break;
4428 :
4429 0 : case LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO_INTERNAL_AES:
4430 0 : ndr_print_lsa_TrustDomainInfoAuthInfoInternalAES(ndr, "auth_info_internal_aes", &r->auth_info_internal_aes);
4431 0 : break;
4432 :
4433 0 : case LSA_TRUSTED_DOMAIN_INFO_FULL_INFO_INTERNAL_AES:
4434 0 : ndr_print_lsa_TrustDomainInfoFullInfoInternalAES(ndr, "full_info_internal_aes", &r->full_info_internal_aes);
4435 0 : break;
4436 :
4437 0 : default:
4438 0 : ndr_print_bad_level(ndr, name, level);
4439 : }
4440 2416 : }
4441 :
4442 3052 : static enum ndr_err_code ndr_push_lsa_DATA_BUF_PTR(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_DATA_BUF_PTR *r)
4443 : {
4444 3052 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
4445 3052 : if (ndr_flags & NDR_SCALARS) {
4446 3052 : NDR_CHECK(ndr_push_align(ndr, 5));
4447 3052 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->buf));
4448 3052 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
4449 : }
4450 3052 : if (ndr_flags & NDR_BUFFERS) {
4451 3052 : if (r->buf) {
4452 1294 : NDR_CHECK(ndr_push_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->buf));
4453 : }
4454 : }
4455 3052 : return NDR_ERR_SUCCESS;
4456 : }
4457 :
4458 3016 : static enum ndr_err_code ndr_pull_lsa_DATA_BUF_PTR(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_DATA_BUF_PTR *r)
4459 : {
4460 4 : uint32_t _ptr_buf;
4461 3016 : TALLOC_CTX *_mem_save_buf_0 = NULL;
4462 3016 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
4463 3016 : if (ndr_flags & NDR_SCALARS) {
4464 3016 : NDR_CHECK(ndr_pull_align(ndr, 5));
4465 3016 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_buf));
4466 3016 : if (_ptr_buf) {
4467 1696 : NDR_PULL_ALLOC(ndr, r->buf);
4468 : } else {
4469 1320 : r->buf = NULL;
4470 : }
4471 3016 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
4472 : }
4473 3016 : if (ndr_flags & NDR_BUFFERS) {
4474 3016 : if (r->buf) {
4475 1696 : _mem_save_buf_0 = NDR_PULL_GET_MEM_CTX(ndr);
4476 1696 : NDR_PULL_SET_MEM_CTX(ndr, r->buf, 0);
4477 1696 : NDR_CHECK(ndr_pull_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->buf));
4478 1696 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_buf_0, 0);
4479 : }
4480 : }
4481 3012 : return NDR_ERR_SUCCESS;
4482 : }
4483 :
4484 84 : _PUBLIC_ void ndr_print_lsa_DATA_BUF_PTR(struct ndr_print *ndr, const char *name, const struct lsa_DATA_BUF_PTR *r)
4485 : {
4486 84 : ndr_print_struct(ndr, name, "lsa_DATA_BUF_PTR");
4487 84 : if (r == NULL) { ndr_print_null(ndr); return; }
4488 84 : ndr->depth++;
4489 84 : ndr_print_ptr(ndr, "buf", r->buf);
4490 84 : ndr->depth++;
4491 84 : if (r->buf) {
4492 66 : ndr_print_lsa_DATA_BUF(ndr, "buf", r->buf);
4493 : }
4494 84 : ndr->depth--;
4495 84 : ndr->depth--;
4496 : }
4497 :
4498 210 : static enum ndr_err_code ndr_push_lsa_RightSet(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_RightSet *r)
4499 : {
4500 0 : uint32_t cntr_names_1;
4501 210 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
4502 210 : if (ndr_flags & NDR_SCALARS) {
4503 210 : NDR_CHECK(ndr_push_align(ndr, 5));
4504 210 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
4505 210 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->names));
4506 210 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
4507 : }
4508 210 : if (ndr_flags & NDR_BUFFERS) {
4509 210 : if (r->names) {
4510 106 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
4511 666 : for (cntr_names_1 = 0; cntr_names_1 < (r->count); cntr_names_1++) {
4512 560 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->names[cntr_names_1]));
4513 : }
4514 666 : for (cntr_names_1 = 0; cntr_names_1 < (r->count); cntr_names_1++) {
4515 560 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->names[cntr_names_1]));
4516 : }
4517 : }
4518 : }
4519 210 : return NDR_ERR_SUCCESS;
4520 : }
4521 :
4522 220 : static enum ndr_err_code ndr_pull_lsa_RightSet(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_RightSet *r)
4523 : {
4524 0 : uint32_t _ptr_names;
4525 220 : uint32_t size_names_1 = 0;
4526 0 : uint32_t cntr_names_1;
4527 220 : TALLOC_CTX *_mem_save_names_0 = NULL;
4528 220 : TALLOC_CTX *_mem_save_names_1 = NULL;
4529 220 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
4530 220 : if (ndr_flags & NDR_SCALARS) {
4531 220 : NDR_CHECK(ndr_pull_align(ndr, 5));
4532 220 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
4533 220 : if (r->count > 256) {
4534 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->count), (uint32_t)(0), (uint32_t)(256));
4535 : }
4536 220 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_names));
4537 220 : if (_ptr_names) {
4538 102 : NDR_PULL_ALLOC(ndr, r->names);
4539 : } else {
4540 118 : r->names = NULL;
4541 : }
4542 220 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
4543 : }
4544 220 : if (ndr_flags & NDR_BUFFERS) {
4545 220 : if (r->names) {
4546 102 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
4547 102 : NDR_PULL_SET_MEM_CTX(ndr, r->names, 0);
4548 102 : NDR_CHECK(ndr_pull_array_size(ndr, &r->names));
4549 102 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->names, &size_names_1));
4550 102 : NDR_PULL_ALLOC_N(ndr, r->names, size_names_1);
4551 102 : _mem_save_names_1 = NDR_PULL_GET_MEM_CTX(ndr);
4552 102 : NDR_PULL_SET_MEM_CTX(ndr, r->names, 0);
4553 672 : for (cntr_names_1 = 0; cntr_names_1 < (size_names_1); cntr_names_1++) {
4554 570 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->names[cntr_names_1]));
4555 : }
4556 672 : for (cntr_names_1 = 0; cntr_names_1 < (size_names_1); cntr_names_1++) {
4557 570 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->names[cntr_names_1]));
4558 : }
4559 102 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_1, 0);
4560 102 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, 0);
4561 : }
4562 220 : if (r->names) {
4563 102 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->names, r->count));
4564 : }
4565 790 : for (cntr_names_1 = 0; cntr_names_1 < (size_names_1); cntr_names_1++) {
4566 0 : }
4567 : }
4568 220 : return NDR_ERR_SUCCESS;
4569 : }
4570 :
4571 12 : _PUBLIC_ void ndr_print_lsa_RightSet(struct ndr_print *ndr, const char *name, const struct lsa_RightSet *r)
4572 : {
4573 0 : uint32_t cntr_names_1;
4574 12 : ndr_print_struct(ndr, name, "lsa_RightSet");
4575 12 : if (r == NULL) { ndr_print_null(ndr); return; }
4576 12 : ndr->depth++;
4577 12 : ndr_print_uint32(ndr, "count", r->count);
4578 12 : ndr_print_ptr(ndr, "names", r->names);
4579 12 : ndr->depth++;
4580 12 : if (r->names) {
4581 12 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "names", (uint32_t)(r->count));
4582 12 : ndr->depth++;
4583 92 : for (cntr_names_1 = 0; cntr_names_1 < (r->count); cntr_names_1++) {
4584 80 : ndr_print_lsa_StringLarge(ndr, "names", &r->names[cntr_names_1]);
4585 : }
4586 12 : ndr->depth--;
4587 : }
4588 12 : ndr->depth--;
4589 12 : ndr->depth--;
4590 : }
4591 :
4592 90 : static enum ndr_err_code ndr_push_lsa_DomainListEx(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_DomainListEx *r)
4593 : {
4594 0 : uint32_t cntr_domains_1;
4595 90 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
4596 90 : if (ndr_flags & NDR_SCALARS) {
4597 90 : NDR_CHECK(ndr_push_align(ndr, 5));
4598 90 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
4599 90 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->domains));
4600 90 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
4601 : }
4602 90 : if (ndr_flags & NDR_BUFFERS) {
4603 90 : if (r->domains) {
4604 80 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
4605 340 : for (cntr_domains_1 = 0; cntr_domains_1 < (r->count); cntr_domains_1++) {
4606 260 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS, &r->domains[cntr_domains_1]));
4607 : }
4608 340 : for (cntr_domains_1 = 0; cntr_domains_1 < (r->count); cntr_domains_1++) {
4609 260 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_BUFFERS, &r->domains[cntr_domains_1]));
4610 : }
4611 : }
4612 : }
4613 90 : return NDR_ERR_SUCCESS;
4614 : }
4615 :
4616 72 : static enum ndr_err_code ndr_pull_lsa_DomainListEx(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_DomainListEx *r)
4617 : {
4618 0 : uint32_t _ptr_domains;
4619 72 : uint32_t size_domains_1 = 0;
4620 0 : uint32_t cntr_domains_1;
4621 72 : TALLOC_CTX *_mem_save_domains_0 = NULL;
4622 72 : TALLOC_CTX *_mem_save_domains_1 = NULL;
4623 72 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
4624 72 : if (ndr_flags & NDR_SCALARS) {
4625 72 : NDR_CHECK(ndr_pull_align(ndr, 5));
4626 72 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
4627 72 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_domains));
4628 72 : if (_ptr_domains) {
4629 64 : NDR_PULL_ALLOC(ndr, r->domains);
4630 : } else {
4631 8 : r->domains = NULL;
4632 : }
4633 72 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
4634 : }
4635 72 : if (ndr_flags & NDR_BUFFERS) {
4636 72 : if (r->domains) {
4637 64 : _mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
4638 64 : NDR_PULL_SET_MEM_CTX(ndr, r->domains, 0);
4639 64 : NDR_CHECK(ndr_pull_array_size(ndr, &r->domains));
4640 64 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->domains, &size_domains_1));
4641 64 : NDR_PULL_ALLOC_N(ndr, r->domains, size_domains_1);
4642 64 : _mem_save_domains_1 = NDR_PULL_GET_MEM_CTX(ndr);
4643 64 : NDR_PULL_SET_MEM_CTX(ndr, r->domains, 0);
4644 272 : for (cntr_domains_1 = 0; cntr_domains_1 < (size_domains_1); cntr_domains_1++) {
4645 208 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS, &r->domains[cntr_domains_1]));
4646 : }
4647 272 : for (cntr_domains_1 = 0; cntr_domains_1 < (size_domains_1); cntr_domains_1++) {
4648 208 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_BUFFERS, &r->domains[cntr_domains_1]));
4649 : }
4650 64 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_1, 0);
4651 64 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, 0);
4652 : }
4653 72 : if (r->domains) {
4654 64 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->domains, r->count));
4655 : }
4656 280 : for (cntr_domains_1 = 0; cntr_domains_1 < (size_domains_1); cntr_domains_1++) {
4657 0 : }
4658 : }
4659 72 : return NDR_ERR_SUCCESS;
4660 : }
4661 :
4662 36 : _PUBLIC_ void ndr_print_lsa_DomainListEx(struct ndr_print *ndr, const char *name, const struct lsa_DomainListEx *r)
4663 : {
4664 0 : uint32_t cntr_domains_1;
4665 36 : ndr_print_struct(ndr, name, "lsa_DomainListEx");
4666 36 : if (r == NULL) { ndr_print_null(ndr); return; }
4667 36 : ndr->depth++;
4668 36 : ndr_print_uint32(ndr, "count", r->count);
4669 36 : ndr_print_ptr(ndr, "domains", r->domains);
4670 36 : ndr->depth++;
4671 36 : if (r->domains) {
4672 32 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "domains", (uint32_t)(r->count));
4673 32 : ndr->depth++;
4674 136 : for (cntr_domains_1 = 0; cntr_domains_1 < (r->count); cntr_domains_1++) {
4675 104 : ndr_print_lsa_TrustDomainInfoInfoEx(ndr, "domains", &r->domains[cntr_domains_1]);
4676 : }
4677 32 : ndr->depth--;
4678 : }
4679 36 : ndr->depth--;
4680 36 : ndr->depth--;
4681 : }
4682 :
4683 0 : static enum ndr_err_code ndr_push_lsa_DomainInfoQoS(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_DomainInfoQoS *r)
4684 : {
4685 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
4686 0 : if (ndr_flags & NDR_SCALARS) {
4687 0 : NDR_CHECK(ndr_push_align(ndr, 4));
4688 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->quality_of_service));
4689 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
4690 : }
4691 0 : if (ndr_flags & NDR_BUFFERS) {
4692 0 : }
4693 0 : return NDR_ERR_SUCCESS;
4694 : }
4695 :
4696 0 : static enum ndr_err_code ndr_pull_lsa_DomainInfoQoS(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_DomainInfoQoS *r)
4697 : {
4698 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
4699 0 : if (ndr_flags & NDR_SCALARS) {
4700 0 : NDR_CHECK(ndr_pull_align(ndr, 4));
4701 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->quality_of_service));
4702 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
4703 : }
4704 0 : if (ndr_flags & NDR_BUFFERS) {
4705 0 : }
4706 0 : return NDR_ERR_SUCCESS;
4707 : }
4708 :
4709 0 : _PUBLIC_ void ndr_print_lsa_DomainInfoQoS(struct ndr_print *ndr, const char *name, const struct lsa_DomainInfoQoS *r)
4710 : {
4711 0 : ndr_print_struct(ndr, name, "lsa_DomainInfoQoS");
4712 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4713 0 : ndr->depth++;
4714 0 : ndr_print_uint32(ndr, "quality_of_service", r->quality_of_service);
4715 0 : ndr->depth--;
4716 : }
4717 :
4718 20 : static enum ndr_err_code ndr_push_lsa_krbAuthenticationOptions(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
4719 : {
4720 20 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
4721 20 : return NDR_ERR_SUCCESS;
4722 : }
4723 :
4724 16 : static enum ndr_err_code ndr_pull_lsa_krbAuthenticationOptions(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
4725 : {
4726 0 : uint32_t v;
4727 16 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
4728 16 : *r = v;
4729 16 : return NDR_ERR_SUCCESS;
4730 : }
4731 :
4732 8 : _PUBLIC_ void ndr_print_lsa_krbAuthenticationOptions(struct ndr_print *ndr, const char *name, uint32_t r)
4733 : {
4734 8 : ndr_print_uint32(ndr, name, r);
4735 8 : ndr->depth++;
4736 8 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_POLICY_KERBEROS_VALIDATE_CLIENT", LSA_POLICY_KERBEROS_VALIDATE_CLIENT, r);
4737 8 : ndr->depth--;
4738 8 : }
4739 :
4740 20 : static enum ndr_err_code ndr_push_lsa_DomainInfoKerberos(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_DomainInfoKerberos *r)
4741 : {
4742 20 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
4743 20 : if (ndr_flags & NDR_SCALARS) {
4744 20 : NDR_CHECK(ndr_push_align(ndr, 8));
4745 20 : NDR_CHECK(ndr_push_lsa_krbAuthenticationOptions(ndr, NDR_SCALARS, r->authentication_options));
4746 20 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->service_tkt_lifetime));
4747 20 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->user_tkt_lifetime));
4748 20 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->user_tkt_renewaltime));
4749 20 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->clock_skew));
4750 20 : NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->reserved));
4751 20 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
4752 : }
4753 20 : if (ndr_flags & NDR_BUFFERS) {
4754 0 : }
4755 20 : return NDR_ERR_SUCCESS;
4756 : }
4757 :
4758 16 : static enum ndr_err_code ndr_pull_lsa_DomainInfoKerberos(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_DomainInfoKerberos *r)
4759 : {
4760 16 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
4761 16 : if (ndr_flags & NDR_SCALARS) {
4762 16 : NDR_CHECK(ndr_pull_align(ndr, 8));
4763 16 : NDR_CHECK(ndr_pull_lsa_krbAuthenticationOptions(ndr, NDR_SCALARS, &r->authentication_options));
4764 16 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->service_tkt_lifetime));
4765 16 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->user_tkt_lifetime));
4766 16 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->user_tkt_renewaltime));
4767 16 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->clock_skew));
4768 16 : NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->reserved));
4769 16 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
4770 : }
4771 16 : if (ndr_flags & NDR_BUFFERS) {
4772 0 : }
4773 16 : return NDR_ERR_SUCCESS;
4774 : }
4775 :
4776 8 : _PUBLIC_ void ndr_print_lsa_DomainInfoKerberos(struct ndr_print *ndr, const char *name, const struct lsa_DomainInfoKerberos *r)
4777 : {
4778 8 : ndr_print_struct(ndr, name, "lsa_DomainInfoKerberos");
4779 8 : if (r == NULL) { ndr_print_null(ndr); return; }
4780 8 : ndr->depth++;
4781 8 : ndr_print_lsa_krbAuthenticationOptions(ndr, "authentication_options", r->authentication_options);
4782 8 : ndr_print_hyper(ndr, "service_tkt_lifetime", r->service_tkt_lifetime);
4783 8 : ndr_print_hyper(ndr, "user_tkt_lifetime", r->user_tkt_lifetime);
4784 8 : ndr_print_hyper(ndr, "user_tkt_renewaltime", r->user_tkt_renewaltime);
4785 8 : ndr_print_hyper(ndr, "clock_skew", r->clock_skew);
4786 8 : ndr_print_hyper(ndr, "reserved", r->reserved);
4787 8 : ndr->depth--;
4788 : }
4789 :
4790 0 : static enum ndr_err_code ndr_push_lsa_DomainInfoEfs(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_DomainInfoEfs *r)
4791 : {
4792 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
4793 0 : if (ndr_flags & NDR_SCALARS) {
4794 0 : NDR_CHECK(ndr_push_align(ndr, 5));
4795 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->blob_size));
4796 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->efs_blob));
4797 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
4798 : }
4799 0 : if (ndr_flags & NDR_BUFFERS) {
4800 0 : if (r->efs_blob) {
4801 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->blob_size));
4802 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->efs_blob, r->blob_size));
4803 : }
4804 : }
4805 0 : return NDR_ERR_SUCCESS;
4806 : }
4807 :
4808 0 : static enum ndr_err_code ndr_pull_lsa_DomainInfoEfs(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_DomainInfoEfs *r)
4809 : {
4810 0 : uint32_t _ptr_efs_blob;
4811 0 : uint32_t size_efs_blob_1 = 0;
4812 0 : TALLOC_CTX *_mem_save_efs_blob_0 = NULL;
4813 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
4814 0 : if (ndr_flags & NDR_SCALARS) {
4815 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
4816 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->blob_size));
4817 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_efs_blob));
4818 0 : if (_ptr_efs_blob) {
4819 0 : NDR_PULL_ALLOC(ndr, r->efs_blob);
4820 : } else {
4821 0 : r->efs_blob = NULL;
4822 : }
4823 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
4824 : }
4825 0 : if (ndr_flags & NDR_BUFFERS) {
4826 0 : if (r->efs_blob) {
4827 0 : _mem_save_efs_blob_0 = NDR_PULL_GET_MEM_CTX(ndr);
4828 0 : NDR_PULL_SET_MEM_CTX(ndr, r->efs_blob, 0);
4829 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->efs_blob));
4830 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->efs_blob, &size_efs_blob_1));
4831 0 : NDR_PULL_ALLOC_N(ndr, r->efs_blob, size_efs_blob_1);
4832 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->efs_blob, size_efs_blob_1));
4833 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_efs_blob_0, 0);
4834 : }
4835 0 : if (r->efs_blob) {
4836 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->efs_blob, r->blob_size));
4837 : }
4838 : }
4839 0 : return NDR_ERR_SUCCESS;
4840 : }
4841 :
4842 0 : _PUBLIC_ void ndr_print_lsa_DomainInfoEfs(struct ndr_print *ndr, const char *name, const struct lsa_DomainInfoEfs *r)
4843 : {
4844 0 : ndr_print_struct(ndr, name, "lsa_DomainInfoEfs");
4845 0 : if (r == NULL) { ndr_print_null(ndr); return; }
4846 0 : ndr->depth++;
4847 0 : ndr_print_uint32(ndr, "blob_size", r->blob_size);
4848 0 : ndr_print_ptr(ndr, "efs_blob", r->efs_blob);
4849 0 : ndr->depth++;
4850 0 : if (r->efs_blob) {
4851 0 : ndr_print_array_uint8(ndr, "efs_blob", r->efs_blob, r->blob_size);
4852 : }
4853 0 : ndr->depth--;
4854 0 : ndr->depth--;
4855 : }
4856 :
4857 52 : static enum ndr_err_code ndr_push_lsa_DomainInfoEnum(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_DomainInfoEnum r)
4858 : {
4859 52 : NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
4860 52 : return NDR_ERR_SUCCESS;
4861 : }
4862 :
4863 32 : static enum ndr_err_code ndr_pull_lsa_DomainInfoEnum(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_DomainInfoEnum *r)
4864 : {
4865 0 : uint16_t v;
4866 32 : NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
4867 32 : *r = v;
4868 32 : return NDR_ERR_SUCCESS;
4869 : }
4870 :
4871 0 : _PUBLIC_ void ndr_print_lsa_DomainInfoEnum(struct ndr_print *ndr, const char *name, enum lsa_DomainInfoEnum r)
4872 : {
4873 0 : const char *val = NULL;
4874 :
4875 0 : switch (r) {
4876 0 : case LSA_DOMAIN_INFO_POLICY_QOS: val = "LSA_DOMAIN_INFO_POLICY_QOS"; break;
4877 0 : case LSA_DOMAIN_INFO_POLICY_EFS: val = "LSA_DOMAIN_INFO_POLICY_EFS"; break;
4878 0 : case LSA_DOMAIN_INFO_POLICY_KERBEROS: val = "LSA_DOMAIN_INFO_POLICY_KERBEROS"; break;
4879 : }
4880 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
4881 0 : }
4882 :
4883 20 : static enum ndr_err_code ndr_push_lsa_DomainInformationPolicy(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union lsa_DomainInformationPolicy *r)
4884 : {
4885 0 : uint32_t level;
4886 20 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
4887 20 : if (ndr_flags & NDR_SCALARS) {
4888 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
4889 20 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
4890 20 : NDR_CHECK(ndr_push_union_align(ndr, 8));
4891 20 : NDR_CHECK(ndr_push_lsa_DomainInfoEnum(ndr, NDR_SCALARS, level));
4892 20 : NDR_CHECK(ndr_push_union_align(ndr, 8));
4893 20 : switch (level) {
4894 0 : case LSA_DOMAIN_INFO_POLICY_QOS: {
4895 0 : NDR_CHECK(ndr_push_lsa_DomainInfoQoS(ndr, NDR_SCALARS, &r->qos_info));
4896 0 : break; }
4897 :
4898 0 : case LSA_DOMAIN_INFO_POLICY_EFS: {
4899 0 : NDR_CHECK(ndr_push_lsa_DomainInfoEfs(ndr, NDR_SCALARS, &r->efs_info));
4900 0 : break; }
4901 :
4902 20 : case LSA_DOMAIN_INFO_POLICY_KERBEROS: {
4903 20 : NDR_CHECK(ndr_push_lsa_DomainInfoKerberos(ndr, NDR_SCALARS, &r->kerberos_info));
4904 20 : break; }
4905 :
4906 0 : default:
4907 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
4908 : }
4909 : }
4910 20 : if (ndr_flags & NDR_BUFFERS) {
4911 20 : if (!(ndr_flags & NDR_SCALARS)) {
4912 : /* We didn't get it above, and the token is not needed after this. */
4913 0 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
4914 : }
4915 20 : switch (level) {
4916 0 : case LSA_DOMAIN_INFO_POLICY_QOS:
4917 0 : break;
4918 :
4919 0 : case LSA_DOMAIN_INFO_POLICY_EFS:
4920 0 : NDR_CHECK(ndr_push_lsa_DomainInfoEfs(ndr, NDR_BUFFERS, &r->efs_info));
4921 0 : break;
4922 :
4923 20 : case LSA_DOMAIN_INFO_POLICY_KERBEROS:
4924 20 : break;
4925 :
4926 0 : default:
4927 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
4928 : }
4929 : }
4930 20 : return NDR_ERR_SUCCESS;
4931 : }
4932 :
4933 16 : static enum ndr_err_code ndr_pull_lsa_DomainInformationPolicy(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union lsa_DomainInformationPolicy *r)
4934 : {
4935 0 : uint32_t level;
4936 0 : uint16_t _level;
4937 16 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
4938 16 : if (ndr_flags & NDR_SCALARS) {
4939 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
4940 16 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
4941 16 : NDR_CHECK(ndr_pull_union_align(ndr, 8));
4942 16 : NDR_CHECK(ndr_pull_uint1632(ndr, NDR_SCALARS, &_level));
4943 16 : if (_level != level) {
4944 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu16" for r at %s", (uint16_t)_level, __location__);
4945 : }
4946 16 : NDR_CHECK(ndr_pull_union_align(ndr, 8));
4947 16 : switch (level) {
4948 0 : case LSA_DOMAIN_INFO_POLICY_QOS: {
4949 0 : NDR_CHECK(ndr_pull_lsa_DomainInfoQoS(ndr, NDR_SCALARS, &r->qos_info));
4950 0 : break; }
4951 :
4952 0 : case LSA_DOMAIN_INFO_POLICY_EFS: {
4953 0 : NDR_CHECK(ndr_pull_lsa_DomainInfoEfs(ndr, NDR_SCALARS, &r->efs_info));
4954 0 : break; }
4955 :
4956 16 : case LSA_DOMAIN_INFO_POLICY_KERBEROS: {
4957 16 : NDR_CHECK(ndr_pull_lsa_DomainInfoKerberos(ndr, NDR_SCALARS, &r->kerberos_info));
4958 16 : break; }
4959 :
4960 0 : default:
4961 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
4962 : }
4963 : }
4964 16 : if (ndr_flags & NDR_BUFFERS) {
4965 16 : if (!(ndr_flags & NDR_SCALARS)) {
4966 : /* We didn't get it above, and the token is not needed after this. */
4967 0 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
4968 : }
4969 16 : switch (level) {
4970 0 : case LSA_DOMAIN_INFO_POLICY_QOS:
4971 0 : break;
4972 :
4973 0 : case LSA_DOMAIN_INFO_POLICY_EFS:
4974 0 : NDR_CHECK(ndr_pull_lsa_DomainInfoEfs(ndr, NDR_BUFFERS, &r->efs_info));
4975 0 : break;
4976 :
4977 16 : case LSA_DOMAIN_INFO_POLICY_KERBEROS:
4978 16 : break;
4979 :
4980 0 : default:
4981 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
4982 : }
4983 : }
4984 16 : return NDR_ERR_SUCCESS;
4985 : }
4986 :
4987 8 : _PUBLIC_ void ndr_print_lsa_DomainInformationPolicy(struct ndr_print *ndr, const char *name, const union lsa_DomainInformationPolicy *r)
4988 : {
4989 0 : uint32_t level;
4990 8 : level = ndr_print_steal_switch_value(ndr, r);
4991 8 : ndr_print_union(ndr, name, level, "lsa_DomainInformationPolicy");
4992 8 : switch (level) {
4993 0 : case LSA_DOMAIN_INFO_POLICY_QOS:
4994 0 : ndr_print_lsa_DomainInfoQoS(ndr, "qos_info", &r->qos_info);
4995 0 : break;
4996 :
4997 0 : case LSA_DOMAIN_INFO_POLICY_EFS:
4998 0 : ndr_print_lsa_DomainInfoEfs(ndr, "efs_info", &r->efs_info);
4999 0 : break;
5000 :
5001 8 : case LSA_DOMAIN_INFO_POLICY_KERBEROS:
5002 8 : ndr_print_lsa_DomainInfoKerberos(ndr, "kerberos_info", &r->kerberos_info);
5003 8 : break;
5004 :
5005 0 : default:
5006 0 : ndr_print_bad_level(ndr, name, level);
5007 : }
5008 8 : }
5009 :
5010 82192 : static enum ndr_err_code ndr_push_lsa_TranslatedName2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TranslatedName2 *r)
5011 : {
5012 82192 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
5013 82192 : if (ndr_flags & NDR_SCALARS) {
5014 41096 : NDR_CHECK(ndr_push_align(ndr, 5));
5015 41096 : NDR_CHECK(ndr_push_lsa_SidType(ndr, NDR_SCALARS, r->sid_type));
5016 41096 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS, &r->name));
5017 41096 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_index));
5018 41096 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->unknown));
5019 41096 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
5020 : }
5021 82192 : if (ndr_flags & NDR_BUFFERS) {
5022 41096 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_BUFFERS, &r->name));
5023 : }
5024 67792 : return NDR_ERR_SUCCESS;
5025 : }
5026 :
5027 69780 : static enum ndr_err_code ndr_pull_lsa_TranslatedName2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TranslatedName2 *r)
5028 : {
5029 69780 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
5030 69780 : if (ndr_flags & NDR_SCALARS) {
5031 34890 : NDR_CHECK(ndr_pull_align(ndr, 5));
5032 34890 : NDR_CHECK(ndr_pull_lsa_SidType(ndr, NDR_SCALARS, &r->sid_type));
5033 34890 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS, &r->name));
5034 34890 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_index));
5035 34890 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->unknown));
5036 34890 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
5037 : }
5038 69780 : if (ndr_flags & NDR_BUFFERS) {
5039 34890 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_BUFFERS, &r->name));
5040 : }
5041 57752 : return NDR_ERR_SUCCESS;
5042 : }
5043 :
5044 14426 : _PUBLIC_ void ndr_print_lsa_TranslatedName2(struct ndr_print *ndr, const char *name, const struct lsa_TranslatedName2 *r)
5045 : {
5046 14426 : ndr_print_struct(ndr, name, "lsa_TranslatedName2");
5047 14426 : if (r == NULL) { ndr_print_null(ndr); return; }
5048 14426 : ndr->depth++;
5049 14426 : ndr_print_lsa_SidType(ndr, "sid_type", r->sid_type);
5050 14426 : ndr_print_lsa_String(ndr, "name", &r->name);
5051 14426 : ndr_print_uint32(ndr, "sid_index", r->sid_index);
5052 14426 : ndr_print_uint32(ndr, "unknown", r->unknown);
5053 14426 : ndr->depth--;
5054 : }
5055 :
5056 1978 : static enum ndr_err_code ndr_push_lsa_TransNameArray2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TransNameArray2 *r)
5057 : {
5058 132 : uint32_t cntr_names_1;
5059 1978 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
5060 1978 : if (ndr_flags & NDR_SCALARS) {
5061 1978 : NDR_CHECK(ndr_push_align(ndr, 5));
5062 1978 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
5063 1978 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->names));
5064 1978 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
5065 : }
5066 1978 : if (ndr_flags & NDR_BUFFERS) {
5067 1978 : if (r->names) {
5068 1577 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
5069 42673 : for (cntr_names_1 = 0; cntr_names_1 < (r->count); cntr_names_1++) {
5070 41096 : NDR_CHECK(ndr_push_lsa_TranslatedName2(ndr, NDR_SCALARS, &r->names[cntr_names_1]));
5071 : }
5072 42673 : for (cntr_names_1 = 0; cntr_names_1 < (r->count); cntr_names_1++) {
5073 41096 : NDR_CHECK(ndr_push_lsa_TranslatedName2(ndr, NDR_BUFFERS, &r->names[cntr_names_1]));
5074 : }
5075 : }
5076 : }
5077 1846 : return NDR_ERR_SUCCESS;
5078 : }
5079 :
5080 1907 : static enum ndr_err_code ndr_pull_lsa_TransNameArray2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TransNameArray2 *r)
5081 : {
5082 126 : uint32_t _ptr_names;
5083 1907 : uint32_t size_names_1 = 0;
5084 126 : uint32_t cntr_names_1;
5085 1907 : TALLOC_CTX *_mem_save_names_0 = NULL;
5086 1907 : TALLOC_CTX *_mem_save_names_1 = NULL;
5087 1907 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
5088 1907 : if (ndr_flags & NDR_SCALARS) {
5089 1907 : NDR_CHECK(ndr_pull_align(ndr, 5));
5090 1907 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
5091 1907 : if (r->count > 1000) {
5092 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->count), (uint32_t)(0), (uint32_t)(1000));
5093 : }
5094 1907 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_names));
5095 1907 : if (_ptr_names) {
5096 390 : NDR_PULL_ALLOC(ndr, r->names);
5097 : } else {
5098 1517 : r->names = NULL;
5099 : }
5100 1907 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
5101 : }
5102 1907 : if (ndr_flags & NDR_BUFFERS) {
5103 1907 : if (r->names) {
5104 390 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
5105 390 : NDR_PULL_SET_MEM_CTX(ndr, r->names, 0);
5106 390 : NDR_CHECK(ndr_pull_array_size(ndr, &r->names));
5107 390 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->names, &size_names_1));
5108 390 : NDR_PULL_ALLOC_N(ndr, r->names, size_names_1);
5109 390 : _mem_save_names_1 = NDR_PULL_GET_MEM_CTX(ndr);
5110 390 : NDR_PULL_SET_MEM_CTX(ndr, r->names, 0);
5111 35280 : for (cntr_names_1 = 0; cntr_names_1 < (size_names_1); cntr_names_1++) {
5112 34890 : NDR_CHECK(ndr_pull_lsa_TranslatedName2(ndr, NDR_SCALARS, &r->names[cntr_names_1]));
5113 : }
5114 35280 : for (cntr_names_1 = 0; cntr_names_1 < (size_names_1); cntr_names_1++) {
5115 34890 : NDR_CHECK(ndr_pull_lsa_TranslatedName2(ndr, NDR_BUFFERS, &r->names[cntr_names_1]));
5116 : }
5117 390 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_1, 0);
5118 390 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, 0);
5119 : }
5120 1907 : if (r->names) {
5121 390 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->names, r->count));
5122 : }
5123 36797 : for (cntr_names_1 = 0; cntr_names_1 < (size_names_1); cntr_names_1++) {
5124 6014 : }
5125 : }
5126 1781 : return NDR_ERR_SUCCESS;
5127 : }
5128 :
5129 152 : _PUBLIC_ void ndr_print_lsa_TransNameArray2(struct ndr_print *ndr, const char *name, const struct lsa_TransNameArray2 *r)
5130 : {
5131 30 : uint32_t cntr_names_1;
5132 152 : ndr_print_struct(ndr, name, "lsa_TransNameArray2");
5133 152 : if (r == NULL) { ndr_print_null(ndr); return; }
5134 152 : ndr->depth++;
5135 152 : ndr_print_uint32(ndr, "count", r->count);
5136 152 : ndr_print_ptr(ndr, "names", r->names);
5137 152 : ndr->depth++;
5138 152 : if (r->names) {
5139 148 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "names", (uint32_t)(r->count));
5140 148 : ndr->depth++;
5141 14574 : for (cntr_names_1 = 0; cntr_names_1 < (r->count); cntr_names_1++) {
5142 14426 : ndr_print_lsa_TranslatedName2(ndr, "names", &r->names[cntr_names_1]);
5143 : }
5144 148 : ndr->depth--;
5145 : }
5146 152 : ndr->depth--;
5147 152 : ndr->depth--;
5148 : }
5149 :
5150 1200 : static enum ndr_err_code ndr_push_lsa_LookupOptions(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_LookupOptions r)
5151 : {
5152 1200 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
5153 1020 : return NDR_ERR_SUCCESS;
5154 : }
5155 :
5156 2539 : static enum ndr_err_code ndr_pull_lsa_LookupOptions(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_LookupOptions *r)
5157 : {
5158 188 : uint32_t v;
5159 2539 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
5160 2539 : *r = v;
5161 2539 : return NDR_ERR_SUCCESS;
5162 : }
5163 :
5164 8 : _PUBLIC_ void ndr_print_lsa_LookupOptions(struct ndr_print *ndr, const char *name, enum lsa_LookupOptions r)
5165 : {
5166 8 : const char *val = NULL;
5167 :
5168 8 : switch (r) {
5169 8 : case LSA_LOOKUP_OPTION_SEARCH_ISOLATED_NAMES: val = "LSA_LOOKUP_OPTION_SEARCH_ISOLATED_NAMES"; break;
5170 0 : case LSA_LOOKUP_OPTION_SEARCH_ISOLATED_NAMES_LOCAL: val = "LSA_LOOKUP_OPTION_SEARCH_ISOLATED_NAMES_LOCAL"; break;
5171 : }
5172 8 : ndr_print_enum(ndr, name, "ENUM", val, r);
5173 8 : }
5174 :
5175 1200 : static enum ndr_err_code ndr_push_lsa_ClientRevision(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_ClientRevision r)
5176 : {
5177 1200 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
5178 1020 : return NDR_ERR_SUCCESS;
5179 : }
5180 :
5181 2539 : static enum ndr_err_code ndr_pull_lsa_ClientRevision(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_ClientRevision *r)
5182 : {
5183 188 : uint32_t v;
5184 2539 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
5185 2539 : *r = v;
5186 2539 : return NDR_ERR_SUCCESS;
5187 : }
5188 :
5189 8 : _PUBLIC_ void ndr_print_lsa_ClientRevision(struct ndr_print *ndr, const char *name, enum lsa_ClientRevision r)
5190 : {
5191 8 : const char *val = NULL;
5192 :
5193 8 : switch (r) {
5194 0 : case LSA_CLIENT_REVISION_1: val = "LSA_CLIENT_REVISION_1"; break;
5195 0 : case LSA_CLIENT_REVISION_2: val = "LSA_CLIENT_REVISION_2"; break;
5196 : }
5197 8 : ndr_print_enum(ndr, name, "ENUM", val, r);
5198 8 : }
5199 :
5200 35 : static enum ndr_err_code ndr_push_lsa_TranslatedSid2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TranslatedSid2 *r)
5201 : {
5202 35 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
5203 35 : if (ndr_flags & NDR_SCALARS) {
5204 35 : NDR_CHECK(ndr_push_align(ndr, 4));
5205 35 : NDR_CHECK(ndr_push_lsa_SidType(ndr, NDR_SCALARS, r->sid_type));
5206 35 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->rid));
5207 35 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_index));
5208 35 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->unknown));
5209 35 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
5210 : }
5211 35 : if (ndr_flags & NDR_BUFFERS) {
5212 0 : }
5213 35 : return NDR_ERR_SUCCESS;
5214 : }
5215 :
5216 56 : static enum ndr_err_code ndr_pull_lsa_TranslatedSid2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TranslatedSid2 *r)
5217 : {
5218 56 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
5219 56 : if (ndr_flags & NDR_SCALARS) {
5220 56 : NDR_CHECK(ndr_pull_align(ndr, 4));
5221 56 : NDR_CHECK(ndr_pull_lsa_SidType(ndr, NDR_SCALARS, &r->sid_type));
5222 56 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->rid));
5223 56 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_index));
5224 56 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->unknown));
5225 56 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
5226 : }
5227 56 : if (ndr_flags & NDR_BUFFERS) {
5228 14 : }
5229 56 : return NDR_ERR_SUCCESS;
5230 : }
5231 :
5232 28 : _PUBLIC_ void ndr_print_lsa_TranslatedSid2(struct ndr_print *ndr, const char *name, const struct lsa_TranslatedSid2 *r)
5233 : {
5234 28 : ndr_print_struct(ndr, name, "lsa_TranslatedSid2");
5235 28 : if (r == NULL) { ndr_print_null(ndr); return; }
5236 28 : ndr->depth++;
5237 28 : ndr_print_lsa_SidType(ndr, "sid_type", r->sid_type);
5238 28 : ndr_print_uint32(ndr, "rid", r->rid);
5239 28 : ndr_print_uint32(ndr, "sid_index", r->sid_index);
5240 28 : ndr_print_uint32(ndr, "unknown", r->unknown);
5241 28 : ndr->depth--;
5242 : }
5243 :
5244 22 : static enum ndr_err_code ndr_push_lsa_TransSidArray2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TransSidArray2 *r)
5245 : {
5246 0 : uint32_t cntr_sids_1;
5247 22 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
5248 22 : if (ndr_flags & NDR_SCALARS) {
5249 22 : NDR_CHECK(ndr_push_align(ndr, 5));
5250 22 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
5251 22 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->sids));
5252 22 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
5253 : }
5254 22 : if (ndr_flags & NDR_BUFFERS) {
5255 22 : if (r->sids) {
5256 10 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
5257 45 : for (cntr_sids_1 = 0; cntr_sids_1 < (r->count); cntr_sids_1++) {
5258 35 : NDR_CHECK(ndr_push_lsa_TranslatedSid2(ndr, NDR_SCALARS, &r->sids[cntr_sids_1]));
5259 : }
5260 : }
5261 : }
5262 22 : return NDR_ERR_SUCCESS;
5263 : }
5264 :
5265 24 : static enum ndr_err_code ndr_pull_lsa_TransSidArray2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TransSidArray2 *r)
5266 : {
5267 4 : uint32_t _ptr_sids;
5268 24 : uint32_t size_sids_1 = 0;
5269 4 : uint32_t cntr_sids_1;
5270 24 : TALLOC_CTX *_mem_save_sids_0 = NULL;
5271 24 : TALLOC_CTX *_mem_save_sids_1 = NULL;
5272 24 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
5273 24 : if (ndr_flags & NDR_SCALARS) {
5274 24 : NDR_CHECK(ndr_pull_align(ndr, 5));
5275 24 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
5276 24 : if (r->count > 1000) {
5277 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->count), (uint32_t)(0), (uint32_t)(1000));
5278 : }
5279 24 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sids));
5280 24 : if (_ptr_sids) {
5281 14 : NDR_PULL_ALLOC(ndr, r->sids);
5282 : } else {
5283 10 : r->sids = NULL;
5284 : }
5285 24 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
5286 : }
5287 24 : if (ndr_flags & NDR_BUFFERS) {
5288 24 : if (r->sids) {
5289 14 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
5290 14 : NDR_PULL_SET_MEM_CTX(ndr, r->sids, 0);
5291 14 : NDR_CHECK(ndr_pull_array_size(ndr, &r->sids));
5292 14 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->sids, &size_sids_1));
5293 14 : NDR_PULL_ALLOC_N(ndr, r->sids, size_sids_1);
5294 14 : _mem_save_sids_1 = NDR_PULL_GET_MEM_CTX(ndr);
5295 14 : NDR_PULL_SET_MEM_CTX(ndr, r->sids, 0);
5296 70 : for (cntr_sids_1 = 0; cntr_sids_1 < (size_sids_1); cntr_sids_1++) {
5297 56 : NDR_CHECK(ndr_pull_lsa_TranslatedSid2(ndr, NDR_SCALARS, &r->sids[cntr_sids_1]));
5298 : }
5299 14 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_1, 0);
5300 14 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, 0);
5301 : }
5302 24 : if (r->sids) {
5303 14 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->sids, r->count));
5304 : }
5305 : }
5306 20 : return NDR_ERR_SUCCESS;
5307 : }
5308 :
5309 8 : _PUBLIC_ void ndr_print_lsa_TransSidArray2(struct ndr_print *ndr, const char *name, const struct lsa_TransSidArray2 *r)
5310 : {
5311 4 : uint32_t cntr_sids_1;
5312 8 : ndr_print_struct(ndr, name, "lsa_TransSidArray2");
5313 8 : if (r == NULL) { ndr_print_null(ndr); return; }
5314 8 : ndr->depth++;
5315 8 : ndr_print_uint32(ndr, "count", r->count);
5316 8 : ndr_print_ptr(ndr, "sids", r->sids);
5317 8 : ndr->depth++;
5318 8 : if (r->sids) {
5319 6 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "sids", (uint32_t)(r->count));
5320 6 : ndr->depth++;
5321 34 : for (cntr_sids_1 = 0; cntr_sids_1 < (r->count); cntr_sids_1++) {
5322 28 : ndr_print_lsa_TranslatedSid2(ndr, "sids", &r->sids[cntr_sids_1]);
5323 : }
5324 6 : ndr->depth--;
5325 : }
5326 8 : ndr->depth--;
5327 8 : ndr->depth--;
5328 : }
5329 :
5330 81476 : static enum ndr_err_code ndr_push_lsa_TranslatedSid3(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TranslatedSid3 *r)
5331 : {
5332 81476 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
5333 81476 : if (ndr_flags & NDR_SCALARS) {
5334 40738 : NDR_CHECK(ndr_push_align(ndr, 5));
5335 40738 : NDR_CHECK(ndr_push_lsa_SidType(ndr, NDR_SCALARS, r->sid_type));
5336 40738 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->sid));
5337 40738 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_index));
5338 40738 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->flags));
5339 40738 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
5340 : }
5341 81476 : if (ndr_flags & NDR_BUFFERS) {
5342 40738 : if (r->sid) {
5343 40660 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
5344 : }
5345 : }
5346 67076 : return NDR_ERR_SUCCESS;
5347 : }
5348 :
5349 69792 : static enum ndr_err_code ndr_pull_lsa_TranslatedSid3(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TranslatedSid3 *r)
5350 : {
5351 12028 : uint32_t _ptr_sid;
5352 69792 : TALLOC_CTX *_mem_save_sid_0 = NULL;
5353 69792 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
5354 69792 : if (ndr_flags & NDR_SCALARS) {
5355 34896 : NDR_CHECK(ndr_pull_align(ndr, 5));
5356 34896 : NDR_CHECK(ndr_pull_lsa_SidType(ndr, NDR_SCALARS, &r->sid_type));
5357 34896 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sid));
5358 34896 : if (_ptr_sid) {
5359 34896 : NDR_PULL_ALLOC(ndr, r->sid);
5360 : } else {
5361 0 : r->sid = NULL;
5362 : }
5363 34896 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_index));
5364 34896 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flags));
5365 34896 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
5366 : }
5367 69792 : if (ndr_flags & NDR_BUFFERS) {
5368 34896 : if (r->sid) {
5369 34896 : _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
5370 34896 : NDR_PULL_SET_MEM_CTX(ndr, r->sid, 0);
5371 34896 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
5372 34896 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, 0);
5373 : }
5374 : }
5375 57764 : return NDR_ERR_SUCCESS;
5376 : }
5377 :
5378 14428 : _PUBLIC_ void ndr_print_lsa_TranslatedSid3(struct ndr_print *ndr, const char *name, const struct lsa_TranslatedSid3 *r)
5379 : {
5380 14428 : ndr_print_struct(ndr, name, "lsa_TranslatedSid3");
5381 14428 : if (r == NULL) { ndr_print_null(ndr); return; }
5382 14428 : ndr->depth++;
5383 14428 : ndr_print_lsa_SidType(ndr, "sid_type", r->sid_type);
5384 14428 : ndr_print_ptr(ndr, "sid", r->sid);
5385 14428 : ndr->depth++;
5386 14428 : if (r->sid) {
5387 14428 : ndr_print_dom_sid2(ndr, "sid", r->sid);
5388 : }
5389 14428 : ndr->depth--;
5390 14428 : ndr_print_uint32(ndr, "sid_index", r->sid_index);
5391 14428 : ndr_print_uint32(ndr, "flags", r->flags);
5392 14428 : ndr->depth--;
5393 : }
5394 :
5395 1902 : static enum ndr_err_code ndr_push_lsa_TransSidArray3(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_TransSidArray3 *r)
5396 : {
5397 264 : uint32_t cntr_sids_1;
5398 1902 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
5399 1902 : if (ndr_flags & NDR_SCALARS) {
5400 1902 : NDR_CHECK(ndr_push_align(ndr, 5));
5401 1902 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
5402 1902 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->sids));
5403 1902 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
5404 : }
5405 1902 : if (ndr_flags & NDR_BUFFERS) {
5406 1902 : if (r->sids) {
5407 1112 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
5408 41850 : for (cntr_sids_1 = 0; cntr_sids_1 < (r->count); cntr_sids_1++) {
5409 40738 : NDR_CHECK(ndr_push_lsa_TranslatedSid3(ndr, NDR_SCALARS, &r->sids[cntr_sids_1]));
5410 : }
5411 41850 : for (cntr_sids_1 = 0; cntr_sids_1 < (r->count); cntr_sids_1++) {
5412 40738 : NDR_CHECK(ndr_push_lsa_TranslatedSid3(ndr, NDR_BUFFERS, &r->sids[cntr_sids_1]));
5413 : }
5414 : }
5415 : }
5416 1638 : return NDR_ERR_SUCCESS;
5417 : }
5418 :
5419 1756 : static enum ndr_err_code ndr_pull_lsa_TransSidArray3(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_TransSidArray3 *r)
5420 : {
5421 244 : uint32_t _ptr_sids;
5422 1756 : uint32_t size_sids_1 = 0;
5423 244 : uint32_t cntr_sids_1;
5424 1756 : TALLOC_CTX *_mem_save_sids_0 = NULL;
5425 1756 : TALLOC_CTX *_mem_save_sids_1 = NULL;
5426 1756 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
5427 1756 : if (ndr_flags & NDR_SCALARS) {
5428 1756 : NDR_CHECK(ndr_pull_align(ndr, 5));
5429 1756 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
5430 1756 : if (r->count > 1000) {
5431 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->count), (uint32_t)(0), (uint32_t)(1000));
5432 : }
5433 1756 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sids));
5434 1756 : if (_ptr_sids) {
5435 725 : NDR_PULL_ALLOC(ndr, r->sids);
5436 : } else {
5437 1031 : r->sids = NULL;
5438 : }
5439 1756 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
5440 : }
5441 1756 : if (ndr_flags & NDR_BUFFERS) {
5442 1756 : if (r->sids) {
5443 725 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
5444 725 : NDR_PULL_SET_MEM_CTX(ndr, r->sids, 0);
5445 725 : NDR_CHECK(ndr_pull_array_size(ndr, &r->sids));
5446 725 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->sids, &size_sids_1));
5447 725 : NDR_PULL_ALLOC_N(ndr, r->sids, size_sids_1);
5448 725 : _mem_save_sids_1 = NDR_PULL_GET_MEM_CTX(ndr);
5449 725 : NDR_PULL_SET_MEM_CTX(ndr, r->sids, 0);
5450 35621 : for (cntr_sids_1 = 0; cntr_sids_1 < (size_sids_1); cntr_sids_1++) {
5451 34896 : NDR_CHECK(ndr_pull_lsa_TranslatedSid3(ndr, NDR_SCALARS, &r->sids[cntr_sids_1]));
5452 : }
5453 35621 : for (cntr_sids_1 = 0; cntr_sids_1 < (size_sids_1); cntr_sids_1++) {
5454 34896 : NDR_CHECK(ndr_pull_lsa_TranslatedSid3(ndr, NDR_BUFFERS, &r->sids[cntr_sids_1]));
5455 : }
5456 725 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_1, 0);
5457 725 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, 0);
5458 : }
5459 1756 : if (r->sids) {
5460 725 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->sids, r->count));
5461 : }
5462 36652 : for (cntr_sids_1 = 0; cntr_sids_1 < (size_sids_1); cntr_sids_1++) {
5463 6014 : }
5464 : }
5465 1512 : return NDR_ERR_SUCCESS;
5466 : }
5467 :
5468 296 : _PUBLIC_ void ndr_print_lsa_TransSidArray3(struct ndr_print *ndr, const char *name, const struct lsa_TransSidArray3 *r)
5469 : {
5470 52 : uint32_t cntr_sids_1;
5471 296 : ndr_print_struct(ndr, name, "lsa_TransSidArray3");
5472 296 : if (r == NULL) { ndr_print_null(ndr); return; }
5473 296 : ndr->depth++;
5474 296 : ndr_print_uint32(ndr, "count", r->count);
5475 296 : ndr_print_ptr(ndr, "sids", r->sids);
5476 296 : ndr->depth++;
5477 296 : if (r->sids) {
5478 294 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "sids", (uint32_t)(r->count));
5479 294 : ndr->depth++;
5480 14722 : for (cntr_sids_1 = 0; cntr_sids_1 < (r->count); cntr_sids_1++) {
5481 14428 : ndr_print_lsa_TranslatedSid3(ndr, "sids", &r->sids[cntr_sids_1]);
5482 : }
5483 294 : ndr->depth--;
5484 : }
5485 296 : ndr->depth--;
5486 296 : ndr->depth--;
5487 : }
5488 :
5489 3312 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_ForestTrustRecordFlags(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
5490 : {
5491 3312 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
5492 3280 : return NDR_ERR_SUCCESS;
5493 : }
5494 :
5495 10292 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_ForestTrustRecordFlags(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
5496 : {
5497 40 : uint32_t v;
5498 10292 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
5499 10292 : *r = v;
5500 10292 : return NDR_ERR_SUCCESS;
5501 : }
5502 :
5503 56 : _PUBLIC_ void ndr_print_lsa_ForestTrustRecordFlags(struct ndr_print *ndr, const char *name, uint32_t r)
5504 : {
5505 56 : ndr_print_uint32(ndr, name, r);
5506 56 : ndr->depth++;
5507 56 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TLN_DISABLED_NEW", LSA_TLN_DISABLED_NEW, r);
5508 56 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TLN_DISABLED_ADMIN", LSA_TLN_DISABLED_ADMIN, r);
5509 56 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_TLN_DISABLED_CONFLICT", LSA_TLN_DISABLED_CONFLICT, r);
5510 56 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_SID_DISABLED_ADMIN", LSA_SID_DISABLED_ADMIN, r);
5511 56 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_SID_DISABLED_CONFLICT", LSA_SID_DISABLED_CONFLICT, r);
5512 56 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_NB_DISABLED_ADMIN", LSA_NB_DISABLED_ADMIN, r);
5513 56 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_NB_DISABLED_CONFLICT", LSA_NB_DISABLED_CONFLICT, r);
5514 56 : ndr->depth--;
5515 56 : }
5516 :
5517 4820 : static enum ndr_err_code ndr_push_lsa_ForestTrustRecordType(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_ForestTrustRecordType r)
5518 : {
5519 4820 : NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
5520 4756 : return NDR_ERR_SUCCESS;
5521 : }
5522 :
5523 2490 : static enum ndr_err_code ndr_pull_lsa_ForestTrustRecordType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_ForestTrustRecordType *r)
5524 : {
5525 40 : uint16_t v;
5526 2490 : NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
5527 2490 : *r = v;
5528 2490 : return NDR_ERR_SUCCESS;
5529 : }
5530 :
5531 56 : _PUBLIC_ void ndr_print_lsa_ForestTrustRecordType(struct ndr_print *ndr, const char *name, enum lsa_ForestTrustRecordType r)
5532 : {
5533 56 : const char *val = NULL;
5534 :
5535 56 : switch (r) {
5536 34 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME: val = "LSA_FOREST_TRUST_TOP_LEVEL_NAME"; break;
5537 0 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX: val = "LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX"; break;
5538 22 : case LSA_FOREST_TRUST_DOMAIN_INFO: val = "LSA_FOREST_TRUST_DOMAIN_INFO"; break;
5539 0 : case LSA_FOREST_TRUST_BINARY_DATA: val = "LSA_FOREST_TRUST_BINARY_DATA"; break;
5540 0 : case LSA_FOREST_TRUST_SCANNER_INFO: val = "LSA_FOREST_TRUST_SCANNER_INFO"; break;
5541 : }
5542 56 : ndr_print_enum(ndr, name, "ENUM", val, r);
5543 56 : }
5544 :
5545 0 : static enum ndr_err_code ndr_push_lsa_ForestTrustBinaryData(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_ForestTrustBinaryData *r)
5546 : {
5547 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
5548 0 : if (ndr_flags & NDR_SCALARS) {
5549 0 : NDR_CHECK(ndr_push_align(ndr, 5));
5550 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->length));
5551 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->data));
5552 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
5553 : }
5554 0 : if (ndr_flags & NDR_BUFFERS) {
5555 0 : if (r->data) {
5556 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->length));
5557 0 : NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->data, r->length));
5558 : }
5559 : }
5560 0 : return NDR_ERR_SUCCESS;
5561 : }
5562 :
5563 0 : static enum ndr_err_code ndr_pull_lsa_ForestTrustBinaryData(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_ForestTrustBinaryData *r)
5564 : {
5565 0 : uint32_t _ptr_data;
5566 0 : uint32_t size_data_1 = 0;
5567 0 : TALLOC_CTX *_mem_save_data_0 = NULL;
5568 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
5569 0 : if (ndr_flags & NDR_SCALARS) {
5570 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
5571 0 : NDR_CHECK(ndr_pull_uint3264(ndr, NDR_SCALARS, &r->length));
5572 0 : if (r->length > 131072) {
5573 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->length), (uint32_t)(0), (uint32_t)(131072));
5574 : }
5575 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data));
5576 0 : if (_ptr_data) {
5577 0 : NDR_PULL_ALLOC(ndr, r->data);
5578 : } else {
5579 0 : r->data = NULL;
5580 : }
5581 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
5582 : }
5583 0 : if (ndr_flags & NDR_BUFFERS) {
5584 0 : if (r->data) {
5585 0 : _mem_save_data_0 = NDR_PULL_GET_MEM_CTX(ndr);
5586 0 : NDR_PULL_SET_MEM_CTX(ndr, r->data, 0);
5587 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->data));
5588 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->data, &size_data_1));
5589 0 : NDR_PULL_ALLOC_N(ndr, r->data, size_data_1);
5590 0 : NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->data, size_data_1));
5591 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_0, 0);
5592 : }
5593 0 : if (r->data) {
5594 0 : NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->data, r->length));
5595 : }
5596 : }
5597 0 : return NDR_ERR_SUCCESS;
5598 : }
5599 :
5600 0 : _PUBLIC_ void ndr_print_lsa_ForestTrustBinaryData(struct ndr_print *ndr, const char *name, const struct lsa_ForestTrustBinaryData *r)
5601 : {
5602 0 : ndr_print_struct(ndr, name, "lsa_ForestTrustBinaryData");
5603 0 : if (r == NULL) { ndr_print_null(ndr); return; }
5604 0 : ndr->depth++;
5605 0 : ndr_print_uint3264(ndr, "length", r->length);
5606 0 : ndr_print_ptr(ndr, "data", r->data);
5607 0 : ndr->depth++;
5608 0 : if (r->data) {
5609 0 : ndr_print_array_uint8(ndr, "data", r->data, r->length);
5610 : }
5611 0 : ndr->depth--;
5612 0 : ndr->depth--;
5613 : }
5614 :
5615 874 : static enum ndr_err_code ndr_push_lsa_ForestTrustDomainInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_ForestTrustDomainInfo *r)
5616 : {
5617 874 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
5618 874 : if (ndr_flags & NDR_SCALARS) {
5619 437 : NDR_CHECK(ndr_push_align(ndr, 5));
5620 437 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->domain_sid));
5621 437 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->dns_domain_name));
5622 437 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->netbios_domain_name));
5623 437 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
5624 : }
5625 874 : if (ndr_flags & NDR_BUFFERS) {
5626 437 : if (r->domain_sid) {
5627 437 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->domain_sid));
5628 : }
5629 437 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->dns_domain_name));
5630 437 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->netbios_domain_name));
5631 : }
5632 856 : return NDR_ERR_SUCCESS;
5633 : }
5634 :
5635 836 : static enum ndr_err_code ndr_pull_lsa_ForestTrustDomainInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_ForestTrustDomainInfo *r)
5636 : {
5637 24 : uint32_t _ptr_domain_sid;
5638 836 : TALLOC_CTX *_mem_save_domain_sid_0 = NULL;
5639 836 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
5640 836 : if (ndr_flags & NDR_SCALARS) {
5641 418 : NDR_CHECK(ndr_pull_align(ndr, 5));
5642 418 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_domain_sid));
5643 418 : if (_ptr_domain_sid) {
5644 418 : NDR_PULL_ALLOC(ndr, r->domain_sid);
5645 : } else {
5646 0 : r->domain_sid = NULL;
5647 : }
5648 418 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->dns_domain_name));
5649 418 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->netbios_domain_name));
5650 418 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
5651 : }
5652 836 : if (ndr_flags & NDR_BUFFERS) {
5653 418 : if (r->domain_sid) {
5654 418 : _mem_save_domain_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
5655 418 : NDR_PULL_SET_MEM_CTX(ndr, r->domain_sid, 0);
5656 418 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->domain_sid));
5657 418 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domain_sid_0, 0);
5658 : }
5659 418 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->dns_domain_name));
5660 418 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->netbios_domain_name));
5661 : }
5662 812 : return NDR_ERR_SUCCESS;
5663 : }
5664 :
5665 18 : _PUBLIC_ void ndr_print_lsa_ForestTrustDomainInfo(struct ndr_print *ndr, const char *name, const struct lsa_ForestTrustDomainInfo *r)
5666 : {
5667 18 : ndr_print_struct(ndr, name, "lsa_ForestTrustDomainInfo");
5668 18 : if (r == NULL) { ndr_print_null(ndr); return; }
5669 18 : ndr->depth++;
5670 18 : ndr_print_ptr(ndr, "domain_sid", r->domain_sid);
5671 18 : ndr->depth++;
5672 18 : if (r->domain_sid) {
5673 18 : ndr_print_dom_sid2(ndr, "domain_sid", r->domain_sid);
5674 : }
5675 18 : ndr->depth--;
5676 18 : ndr_print_lsa_StringLarge(ndr, "dns_domain_name", &r->dns_domain_name);
5677 18 : ndr_print_lsa_StringLarge(ndr, "netbios_domain_name", &r->netbios_domain_name);
5678 18 : ndr->depth--;
5679 : }
5680 :
5681 4624 : static enum ndr_err_code ndr_push_lsa_ForestTrustData(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union lsa_ForestTrustData *r)
5682 : {
5683 64 : uint32_t level;
5684 4624 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
5685 4624 : if (ndr_flags & NDR_SCALARS) {
5686 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
5687 2312 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
5688 2312 : NDR_CHECK(ndr_push_union_align(ndr, 5));
5689 2344 : NDR_CHECK(ndr_push_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, level));
5690 2312 : NDR_CHECK(ndr_push_union_align(ndr, 5));
5691 2312 : switch (level) {
5692 1819 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME: {
5693 1819 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->top_level_name));
5694 1796 : break; }
5695 :
5696 56 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX: {
5697 56 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->top_level_name_ex));
5698 56 : break; }
5699 :
5700 437 : case LSA_FOREST_TRUST_DOMAIN_INFO: {
5701 437 : NDR_CHECK(ndr_push_lsa_ForestTrustDomainInfo(ndr, NDR_SCALARS, &r->domain_info));
5702 428 : break; }
5703 :
5704 0 : default: {
5705 0 : NDR_CHECK(ndr_push_lsa_ForestTrustBinaryData(ndr, NDR_SCALARS, &r->data));
5706 0 : break; }
5707 :
5708 : }
5709 : }
5710 4624 : if (ndr_flags & NDR_BUFFERS) {
5711 2312 : if (!(ndr_flags & NDR_SCALARS)) {
5712 : /* We didn't get it above, and the token is not needed after this. */
5713 2312 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
5714 : }
5715 2312 : switch (level) {
5716 1819 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME:
5717 1819 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->top_level_name));
5718 1796 : break;
5719 :
5720 56 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX:
5721 56 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->top_level_name_ex));
5722 56 : break;
5723 :
5724 437 : case LSA_FOREST_TRUST_DOMAIN_INFO:
5725 437 : NDR_CHECK(ndr_push_lsa_ForestTrustDomainInfo(ndr, NDR_BUFFERS, &r->domain_info));
5726 428 : break;
5727 :
5728 0 : default:
5729 0 : NDR_CHECK(ndr_push_lsa_ForestTrustBinaryData(ndr, NDR_BUFFERS, &r->data));
5730 0 : break;
5731 :
5732 : }
5733 : }
5734 4560 : return NDR_ERR_SUCCESS;
5735 : }
5736 :
5737 4468 : static enum ndr_err_code ndr_pull_lsa_ForestTrustData(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union lsa_ForestTrustData *r)
5738 : {
5739 72 : uint32_t level;
5740 72 : uint16_t _level;
5741 4468 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
5742 4468 : if (ndr_flags & NDR_SCALARS) {
5743 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
5744 2234 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
5745 2234 : NDR_CHECK(ndr_pull_union_align(ndr, 5));
5746 2234 : NDR_CHECK(ndr_pull_uint1632(ndr, NDR_SCALARS, &_level));
5747 2234 : if (_level != level) {
5748 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu16" for r at %s", (uint16_t)_level, __location__);
5749 : }
5750 2234 : NDR_CHECK(ndr_pull_union_align(ndr, 5));
5751 2234 : switch (level) {
5752 1760 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME: {
5753 1760 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->top_level_name));
5754 1736 : break; }
5755 :
5756 56 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX: {
5757 56 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->top_level_name_ex));
5758 56 : break; }
5759 :
5760 418 : case LSA_FOREST_TRUST_DOMAIN_INFO: {
5761 418 : NDR_CHECK(ndr_pull_lsa_ForestTrustDomainInfo(ndr, NDR_SCALARS, &r->domain_info));
5762 406 : break; }
5763 :
5764 0 : default: {
5765 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustBinaryData(ndr, NDR_SCALARS, &r->data));
5766 0 : break; }
5767 :
5768 : }
5769 : }
5770 4468 : if (ndr_flags & NDR_BUFFERS) {
5771 2234 : if (!(ndr_flags & NDR_SCALARS)) {
5772 : /* We didn't get it above, and the token is not needed after this. */
5773 2234 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
5774 : }
5775 2234 : switch (level) {
5776 1760 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME:
5777 1760 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->top_level_name));
5778 1736 : break;
5779 :
5780 56 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX:
5781 56 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->top_level_name_ex));
5782 56 : break;
5783 :
5784 418 : case LSA_FOREST_TRUST_DOMAIN_INFO:
5785 418 : NDR_CHECK(ndr_pull_lsa_ForestTrustDomainInfo(ndr, NDR_BUFFERS, &r->domain_info));
5786 406 : break;
5787 :
5788 0 : default:
5789 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustBinaryData(ndr, NDR_BUFFERS, &r->data));
5790 0 : break;
5791 :
5792 : }
5793 : }
5794 4396 : return NDR_ERR_SUCCESS;
5795 : }
5796 :
5797 52 : _PUBLIC_ void ndr_print_lsa_ForestTrustData(struct ndr_print *ndr, const char *name, const union lsa_ForestTrustData *r)
5798 : {
5799 16 : uint32_t level;
5800 52 : level = ndr_print_steal_switch_value(ndr, r);
5801 52 : ndr_print_union(ndr, name, level, "lsa_ForestTrustData");
5802 52 : switch (level) {
5803 34 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME:
5804 34 : ndr_print_lsa_StringLarge(ndr, "top_level_name", &r->top_level_name);
5805 34 : break;
5806 :
5807 0 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX:
5808 0 : ndr_print_lsa_StringLarge(ndr, "top_level_name_ex", &r->top_level_name_ex);
5809 0 : break;
5810 :
5811 18 : case LSA_FOREST_TRUST_DOMAIN_INFO:
5812 18 : ndr_print_lsa_ForestTrustDomainInfo(ndr, "domain_info", &r->domain_info);
5813 18 : break;
5814 :
5815 0 : default:
5816 0 : ndr_print_lsa_ForestTrustBinaryData(ndr, "data", &r->data);
5817 0 : break;
5818 :
5819 : }
5820 52 : }
5821 :
5822 2312 : static enum ndr_err_code ndr_push_lsa_ForestTrustRecord(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_ForestTrustRecord *r)
5823 : {
5824 2312 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
5825 2312 : if (ndr_flags & NDR_SCALARS) {
5826 2312 : NDR_CHECK(ndr_push_align(ndr, 8));
5827 2312 : NDR_CHECK(ndr_push_lsa_ForestTrustRecordFlags(ndr, NDR_SCALARS, r->flags));
5828 2344 : NDR_CHECK(ndr_push_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, r->type));
5829 2312 : NDR_CHECK(ndr_push_NTTIME_hyper(ndr, NDR_SCALARS, r->time));
5830 2312 : NDR_CHECK(ndr_push_set_switch_value(ndr, &r->forest_trust_data, r->type));
5831 2312 : NDR_CHECK(ndr_push_lsa_ForestTrustData(ndr, NDR_SCALARS, &r->forest_trust_data));
5832 2312 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
5833 : }
5834 2312 : if (ndr_flags & NDR_BUFFERS) {
5835 2312 : NDR_CHECK(ndr_push_set_switch_value(ndr, &r->forest_trust_data, r->type));
5836 2312 : NDR_CHECK(ndr_push_lsa_ForestTrustData(ndr, NDR_BUFFERS, &r->forest_trust_data));
5837 : }
5838 2280 : return NDR_ERR_SUCCESS;
5839 : }
5840 :
5841 2234 : static enum ndr_err_code ndr_pull_lsa_ForestTrustRecord(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_ForestTrustRecord *r)
5842 : {
5843 2234 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
5844 2234 : if (ndr_flags & NDR_SCALARS) {
5845 2234 : NDR_CHECK(ndr_pull_align(ndr, 8));
5846 2234 : NDR_CHECK(ndr_pull_lsa_ForestTrustRecordFlags(ndr, NDR_SCALARS, &r->flags));
5847 2270 : NDR_CHECK(ndr_pull_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, &r->type));
5848 2234 : NDR_CHECK(ndr_pull_NTTIME_hyper(ndr, NDR_SCALARS, &r->time));
5849 2234 : NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->forest_trust_data, r->type));
5850 2234 : NDR_CHECK(ndr_pull_lsa_ForestTrustData(ndr, NDR_SCALARS, &r->forest_trust_data));
5851 2234 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
5852 : }
5853 2234 : if (ndr_flags & NDR_BUFFERS) {
5854 2234 : NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->forest_trust_data, r->type));
5855 2234 : NDR_CHECK(ndr_pull_lsa_ForestTrustData(ndr, NDR_BUFFERS, &r->forest_trust_data));
5856 : }
5857 2198 : return NDR_ERR_SUCCESS;
5858 : }
5859 :
5860 52 : _PUBLIC_ void ndr_print_lsa_ForestTrustRecord(struct ndr_print *ndr, const char *name, const struct lsa_ForestTrustRecord *r)
5861 : {
5862 52 : ndr_print_struct(ndr, name, "lsa_ForestTrustRecord");
5863 52 : if (r == NULL) { ndr_print_null(ndr); return; }
5864 52 : ndr->depth++;
5865 52 : ndr_print_lsa_ForestTrustRecordFlags(ndr, "flags", r->flags);
5866 52 : ndr_print_lsa_ForestTrustRecordType(ndr, "type", r->type);
5867 52 : ndr_print_NTTIME_hyper(ndr, "time", r->time);
5868 52 : ndr_print_set_switch_value(ndr, &r->forest_trust_data, r->type);
5869 52 : ndr_print_lsa_ForestTrustData(ndr, "forest_trust_data", &r->forest_trust_data);
5870 52 : ndr->depth--;
5871 : }
5872 :
5873 437 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_ForestTrustInformation(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_ForestTrustInformation *r)
5874 : {
5875 9 : uint32_t cntr_entries_1;
5876 437 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
5877 437 : if (ndr_flags & NDR_SCALARS) {
5878 437 : NDR_CHECK(ndr_push_align(ndr, 5));
5879 437 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
5880 437 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->entries));
5881 437 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
5882 : }
5883 437 : if (ndr_flags & NDR_BUFFERS) {
5884 437 : if (r->entries) {
5885 437 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
5886 2749 : for (cntr_entries_1 = 0; cntr_entries_1 < (r->count); cntr_entries_1++) {
5887 2312 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->entries[cntr_entries_1]));
5888 : }
5889 2749 : for (cntr_entries_1 = 0; cntr_entries_1 < (r->count); cntr_entries_1++) {
5890 2312 : if (r->entries[cntr_entries_1]) {
5891 2312 : NDR_CHECK(ndr_push_lsa_ForestTrustRecord(ndr, NDR_SCALARS|NDR_BUFFERS, r->entries[cntr_entries_1]));
5892 : }
5893 : }
5894 : }
5895 : }
5896 428 : return NDR_ERR_SUCCESS;
5897 : }
5898 :
5899 418 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_ForestTrustInformation(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_ForestTrustInformation *r)
5900 : {
5901 12 : uint32_t _ptr_entries;
5902 418 : uint32_t size_entries_1 = 0;
5903 12 : uint32_t cntr_entries_1;
5904 418 : TALLOC_CTX *_mem_save_entries_0 = NULL;
5905 418 : TALLOC_CTX *_mem_save_entries_1 = NULL;
5906 418 : TALLOC_CTX *_mem_save_entries_2 = NULL;
5907 418 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
5908 418 : if (ndr_flags & NDR_SCALARS) {
5909 418 : NDR_CHECK(ndr_pull_align(ndr, 5));
5910 418 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
5911 418 : if (r->count > 4000) {
5912 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->count), (uint32_t)(0), (uint32_t)(4000));
5913 : }
5914 418 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_entries));
5915 418 : if (_ptr_entries) {
5916 418 : NDR_PULL_ALLOC(ndr, r->entries);
5917 : } else {
5918 0 : r->entries = NULL;
5919 : }
5920 418 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
5921 : }
5922 418 : if (ndr_flags & NDR_BUFFERS) {
5923 418 : if (r->entries) {
5924 418 : _mem_save_entries_0 = NDR_PULL_GET_MEM_CTX(ndr);
5925 418 : NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
5926 418 : NDR_CHECK(ndr_pull_array_size(ndr, &r->entries));
5927 418 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->entries, &size_entries_1));
5928 418 : NDR_PULL_ALLOC_N(ndr, r->entries, size_entries_1);
5929 418 : _mem_save_entries_1 = NDR_PULL_GET_MEM_CTX(ndr);
5930 418 : NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
5931 2652 : for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
5932 2234 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_entries));
5933 2234 : if (_ptr_entries) {
5934 2234 : NDR_PULL_ALLOC(ndr, r->entries[cntr_entries_1]);
5935 : } else {
5936 0 : r->entries[cntr_entries_1] = NULL;
5937 : }
5938 : }
5939 2652 : for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
5940 2234 : if (r->entries[cntr_entries_1]) {
5941 2234 : _mem_save_entries_2 = NDR_PULL_GET_MEM_CTX(ndr);
5942 2234 : NDR_PULL_SET_MEM_CTX(ndr, r->entries[cntr_entries_1], 0);
5943 2234 : NDR_CHECK(ndr_pull_lsa_ForestTrustRecord(ndr, NDR_SCALARS|NDR_BUFFERS, r->entries[cntr_entries_1]));
5944 2234 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_2, 0);
5945 : }
5946 : }
5947 418 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_1, 0);
5948 418 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_0, 0);
5949 : }
5950 418 : if (r->entries) {
5951 418 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->entries, r->count));
5952 : }
5953 2652 : for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
5954 36 : }
5955 : }
5956 406 : return NDR_ERR_SUCCESS;
5957 : }
5958 :
5959 0 : static void ndr_print_flags_lsa_ForestTrustInformation(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_ForestTrustInformation *r)
5960 : {
5961 0 : ndr_print_lsa_ForestTrustInformation(ndr, name, r);
5962 0 : }
5963 :
5964 18 : _PUBLIC_ void ndr_print_lsa_ForestTrustInformation(struct ndr_print *ndr, const char *name, const struct lsa_ForestTrustInformation *r)
5965 : {
5966 6 : uint32_t cntr_entries_1;
5967 18 : ndr_print_struct(ndr, name, "lsa_ForestTrustInformation");
5968 18 : if (r == NULL) { ndr_print_null(ndr); return; }
5969 18 : ndr->depth++;
5970 18 : ndr_print_uint32(ndr, "count", r->count);
5971 18 : ndr_print_ptr(ndr, "entries", r->entries);
5972 18 : ndr->depth++;
5973 18 : if (r->entries) {
5974 18 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "entries", (uint32_t)(r->count));
5975 18 : ndr->depth++;
5976 70 : for (cntr_entries_1 = 0; cntr_entries_1 < (r->count); cntr_entries_1++) {
5977 52 : ndr_print_ptr(ndr, "entries", r->entries[cntr_entries_1]);
5978 52 : ndr->depth++;
5979 52 : if (r->entries[cntr_entries_1]) {
5980 52 : ndr_print_lsa_ForestTrustRecord(ndr, "entries", r->entries[cntr_entries_1]);
5981 : }
5982 52 : ndr->depth--;
5983 : }
5984 18 : ndr->depth--;
5985 : }
5986 18 : ndr->depth--;
5987 18 : ndr->depth--;
5988 : }
5989 :
5990 36 : static enum ndr_err_code ndr_push_lsa_ForestTrustCollisionRecordType(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum lsa_ForestTrustCollisionRecordType r)
5991 : {
5992 36 : NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
5993 36 : return NDR_ERR_SUCCESS;
5994 : }
5995 :
5996 32 : static enum ndr_err_code ndr_pull_lsa_ForestTrustCollisionRecordType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum lsa_ForestTrustCollisionRecordType *r)
5997 : {
5998 0 : uint32_t v;
5999 32 : NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
6000 32 : *r = v;
6001 32 : return NDR_ERR_SUCCESS;
6002 : }
6003 :
6004 0 : _PUBLIC_ void ndr_print_lsa_ForestTrustCollisionRecordType(struct ndr_print *ndr, const char *name, enum lsa_ForestTrustCollisionRecordType r)
6005 : {
6006 0 : const char *val = NULL;
6007 :
6008 0 : switch (r) {
6009 0 : case LSA_FOREST_TRUST_COLLISION_TDO: val = "LSA_FOREST_TRUST_COLLISION_TDO"; break;
6010 0 : case LSA_FOREST_TRUST_COLLISION_XREF: val = "LSA_FOREST_TRUST_COLLISION_XREF"; break;
6011 0 : case LSA_FOREST_TRUST_COLLISION_OTHER: val = "LSA_FOREST_TRUST_COLLISION_OTHER"; break;
6012 : }
6013 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
6014 0 : }
6015 :
6016 36 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_ForestTrustCollisionRecord(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_ForestTrustCollisionRecord *r)
6017 : {
6018 36 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
6019 36 : if (ndr_flags & NDR_SCALARS) {
6020 36 : NDR_CHECK(ndr_push_align(ndr, 5));
6021 36 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->index));
6022 36 : NDR_CHECK(ndr_push_lsa_ForestTrustCollisionRecordType(ndr, NDR_SCALARS, r->type));
6023 36 : NDR_CHECK(ndr_push_lsa_ForestTrustRecordFlags(ndr, NDR_SCALARS, r->flags));
6024 36 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS, &r->name));
6025 36 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
6026 : }
6027 36 : if (ndr_flags & NDR_BUFFERS) {
6028 36 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_BUFFERS, &r->name));
6029 : }
6030 36 : return NDR_ERR_SUCCESS;
6031 : }
6032 :
6033 32 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_ForestTrustCollisionRecord(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_ForestTrustCollisionRecord *r)
6034 : {
6035 32 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
6036 32 : if (ndr_flags & NDR_SCALARS) {
6037 32 : NDR_CHECK(ndr_pull_align(ndr, 5));
6038 32 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->index));
6039 32 : NDR_CHECK(ndr_pull_lsa_ForestTrustCollisionRecordType(ndr, NDR_SCALARS, &r->type));
6040 32 : NDR_CHECK(ndr_pull_lsa_ForestTrustRecordFlags(ndr, NDR_SCALARS, &r->flags));
6041 32 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS, &r->name));
6042 32 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
6043 : }
6044 32 : if (ndr_flags & NDR_BUFFERS) {
6045 32 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_BUFFERS, &r->name));
6046 : }
6047 32 : return NDR_ERR_SUCCESS;
6048 : }
6049 :
6050 0 : static void ndr_print_flags_lsa_ForestTrustCollisionRecord(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_ForestTrustCollisionRecord *r)
6051 : {
6052 0 : ndr_print_lsa_ForestTrustCollisionRecord(ndr, name, r);
6053 0 : }
6054 :
6055 0 : _PUBLIC_ void ndr_print_lsa_ForestTrustCollisionRecord(struct ndr_print *ndr, const char *name, const struct lsa_ForestTrustCollisionRecord *r)
6056 : {
6057 0 : ndr_print_struct(ndr, name, "lsa_ForestTrustCollisionRecord");
6058 0 : if (r == NULL) { ndr_print_null(ndr); return; }
6059 0 : ndr->depth++;
6060 0 : ndr_print_uint32(ndr, "index", r->index);
6061 0 : ndr_print_lsa_ForestTrustCollisionRecordType(ndr, "type", r->type);
6062 0 : ndr_print_lsa_ForestTrustRecordFlags(ndr, "flags", r->flags);
6063 0 : ndr_print_lsa_String(ndr, "name", &r->name);
6064 0 : ndr->depth--;
6065 : }
6066 :
6067 20 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_ForestTrustCollisionInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_ForestTrustCollisionInfo *r)
6068 : {
6069 0 : uint32_t cntr_entries_1;
6070 20 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
6071 20 : if (ndr_flags & NDR_SCALARS) {
6072 20 : NDR_CHECK(ndr_push_align(ndr, 5));
6073 20 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
6074 20 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->entries));
6075 20 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
6076 : }
6077 20 : if (ndr_flags & NDR_BUFFERS) {
6078 20 : if (r->entries) {
6079 20 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
6080 56 : for (cntr_entries_1 = 0; cntr_entries_1 < (r->count); cntr_entries_1++) {
6081 36 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->entries[cntr_entries_1]));
6082 : }
6083 56 : for (cntr_entries_1 = 0; cntr_entries_1 < (r->count); cntr_entries_1++) {
6084 36 : if (r->entries[cntr_entries_1]) {
6085 36 : NDR_CHECK(ndr_push_lsa_ForestTrustCollisionRecord(ndr, NDR_SCALARS|NDR_BUFFERS, r->entries[cntr_entries_1]));
6086 : }
6087 : }
6088 : }
6089 : }
6090 20 : return NDR_ERR_SUCCESS;
6091 : }
6092 :
6093 16 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_ForestTrustCollisionInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_ForestTrustCollisionInfo *r)
6094 : {
6095 0 : uint32_t _ptr_entries;
6096 16 : uint32_t size_entries_1 = 0;
6097 0 : uint32_t cntr_entries_1;
6098 16 : TALLOC_CTX *_mem_save_entries_0 = NULL;
6099 16 : TALLOC_CTX *_mem_save_entries_1 = NULL;
6100 16 : TALLOC_CTX *_mem_save_entries_2 = NULL;
6101 16 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
6102 16 : if (ndr_flags & NDR_SCALARS) {
6103 16 : NDR_CHECK(ndr_pull_align(ndr, 5));
6104 16 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
6105 16 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_entries));
6106 16 : if (_ptr_entries) {
6107 16 : NDR_PULL_ALLOC(ndr, r->entries);
6108 : } else {
6109 0 : r->entries = NULL;
6110 : }
6111 16 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
6112 : }
6113 16 : if (ndr_flags & NDR_BUFFERS) {
6114 16 : if (r->entries) {
6115 16 : _mem_save_entries_0 = NDR_PULL_GET_MEM_CTX(ndr);
6116 16 : NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
6117 16 : NDR_CHECK(ndr_pull_array_size(ndr, &r->entries));
6118 16 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->entries, &size_entries_1));
6119 16 : NDR_PULL_ALLOC_N(ndr, r->entries, size_entries_1);
6120 16 : _mem_save_entries_1 = NDR_PULL_GET_MEM_CTX(ndr);
6121 16 : NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
6122 48 : for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
6123 32 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_entries));
6124 32 : if (_ptr_entries) {
6125 32 : NDR_PULL_ALLOC(ndr, r->entries[cntr_entries_1]);
6126 : } else {
6127 0 : r->entries[cntr_entries_1] = NULL;
6128 : }
6129 : }
6130 48 : for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
6131 32 : if (r->entries[cntr_entries_1]) {
6132 32 : _mem_save_entries_2 = NDR_PULL_GET_MEM_CTX(ndr);
6133 32 : NDR_PULL_SET_MEM_CTX(ndr, r->entries[cntr_entries_1], 0);
6134 32 : NDR_CHECK(ndr_pull_lsa_ForestTrustCollisionRecord(ndr, NDR_SCALARS|NDR_BUFFERS, r->entries[cntr_entries_1]));
6135 32 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_2, 0);
6136 : }
6137 : }
6138 16 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_1, 0);
6139 16 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_0, 0);
6140 : }
6141 16 : if (r->entries) {
6142 16 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->entries, r->count));
6143 : }
6144 48 : for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
6145 0 : }
6146 : }
6147 16 : return NDR_ERR_SUCCESS;
6148 : }
6149 :
6150 0 : static void ndr_print_flags_lsa_ForestTrustCollisionInfo(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_ForestTrustCollisionInfo *r)
6151 : {
6152 0 : ndr_print_lsa_ForestTrustCollisionInfo(ndr, name, r);
6153 0 : }
6154 :
6155 0 : _PUBLIC_ void ndr_print_lsa_ForestTrustCollisionInfo(struct ndr_print *ndr, const char *name, const struct lsa_ForestTrustCollisionInfo *r)
6156 : {
6157 0 : uint32_t cntr_entries_1;
6158 0 : ndr_print_struct(ndr, name, "lsa_ForestTrustCollisionInfo");
6159 0 : if (r == NULL) { ndr_print_null(ndr); return; }
6160 0 : ndr->depth++;
6161 0 : ndr_print_uint32(ndr, "count", r->count);
6162 0 : ndr_print_ptr(ndr, "entries", r->entries);
6163 0 : ndr->depth++;
6164 0 : if (r->entries) {
6165 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "entries", (uint32_t)(r->count));
6166 0 : ndr->depth++;
6167 0 : for (cntr_entries_1 = 0; cntr_entries_1 < (r->count); cntr_entries_1++) {
6168 0 : ndr_print_ptr(ndr, "entries", r->entries[cntr_entries_1]);
6169 0 : ndr->depth++;
6170 0 : if (r->entries[cntr_entries_1]) {
6171 0 : ndr_print_lsa_ForestTrustCollisionRecord(ndr, "entries", r->entries[cntr_entries_1]);
6172 : }
6173 0 : ndr->depth--;
6174 : }
6175 0 : ndr->depth--;
6176 : }
6177 0 : ndr->depth--;
6178 0 : ndr->depth--;
6179 : }
6180 :
6181 704 : static enum ndr_err_code ndr_push_lsa_RevisionSupportedFeature(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
6182 : {
6183 704 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
6184 700 : return NDR_ERR_SUCCESS;
6185 : }
6186 :
6187 691 : static enum ndr_err_code ndr_pull_lsa_RevisionSupportedFeature(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
6188 : {
6189 4 : uint32_t v;
6190 691 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
6191 691 : *r = v;
6192 691 : return NDR_ERR_SUCCESS;
6193 : }
6194 :
6195 22 : _PUBLIC_ void ndr_print_lsa_RevisionSupportedFeature(struct ndr_print *ndr, const char *name, uint32_t r)
6196 : {
6197 22 : ndr_print_uint32(ndr, name, r);
6198 22 : ndr->depth++;
6199 22 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "LSA_FEATURE_TDO_AUTH_INFO_AES_CIPHER", LSA_FEATURE_TDO_AUTH_INFO_AES_CIPHER, r);
6200 22 : ndr->depth--;
6201 22 : }
6202 :
6203 704 : static enum ndr_err_code ndr_push_lsa_revision_info1(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_revision_info1 *r)
6204 : {
6205 704 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
6206 704 : if (ndr_flags & NDR_SCALARS) {
6207 704 : NDR_CHECK(ndr_push_align(ndr, 4));
6208 704 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->revision));
6209 708 : NDR_CHECK(ndr_push_lsa_RevisionSupportedFeature(ndr, NDR_SCALARS, r->supported_features));
6210 704 : NDR_CHECK(ndr_push_trailer_align(ndr, 4));
6211 : }
6212 704 : if (ndr_flags & NDR_BUFFERS) {
6213 4 : }
6214 704 : return NDR_ERR_SUCCESS;
6215 : }
6216 :
6217 691 : static enum ndr_err_code ndr_pull_lsa_revision_info1(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_revision_info1 *r)
6218 : {
6219 691 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
6220 691 : if (ndr_flags & NDR_SCALARS) {
6221 691 : NDR_CHECK(ndr_pull_align(ndr, 4));
6222 691 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->revision));
6223 695 : NDR_CHECK(ndr_pull_lsa_RevisionSupportedFeature(ndr, NDR_SCALARS, &r->supported_features));
6224 691 : NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
6225 : }
6226 691 : if (ndr_flags & NDR_BUFFERS) {
6227 4 : }
6228 691 : return NDR_ERR_SUCCESS;
6229 : }
6230 :
6231 22 : _PUBLIC_ void ndr_print_lsa_revision_info1(struct ndr_print *ndr, const char *name, const struct lsa_revision_info1 *r)
6232 : {
6233 22 : ndr_print_struct(ndr, name, "lsa_revision_info1");
6234 22 : if (r == NULL) { ndr_print_null(ndr); return; }
6235 22 : ndr->depth++;
6236 22 : ndr_print_uint32(ndr, "revision", r->revision);
6237 22 : ndr_print_lsa_RevisionSupportedFeature(ndr, "supported_features", r->supported_features);
6238 22 : ndr->depth--;
6239 : }
6240 :
6241 704 : static enum ndr_err_code ndr_push_lsa_revision_info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union lsa_revision_info *r)
6242 : {
6243 4 : uint32_t level;
6244 704 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
6245 704 : if (ndr_flags & NDR_SCALARS) {
6246 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
6247 704 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
6248 704 : NDR_CHECK(ndr_push_union_align(ndr, 4));
6249 704 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, level));
6250 704 : NDR_CHECK(ndr_push_union_align(ndr, 4));
6251 704 : switch (level) {
6252 704 : case 1: {
6253 704 : NDR_CHECK(ndr_push_lsa_revision_info1(ndr, NDR_SCALARS, &r->info1));
6254 700 : break; }
6255 :
6256 0 : default:
6257 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
6258 : }
6259 : }
6260 704 : if (ndr_flags & NDR_BUFFERS) {
6261 0 : if (!(ndr_flags & NDR_SCALARS)) {
6262 : /* We didn't get it above, and the token is not needed after this. */
6263 0 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
6264 : }
6265 0 : switch (level) {
6266 0 : case 1:
6267 0 : break;
6268 :
6269 0 : default:
6270 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
6271 : }
6272 : }
6273 700 : return NDR_ERR_SUCCESS;
6274 : }
6275 :
6276 691 : static enum ndr_err_code ndr_pull_lsa_revision_info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union lsa_revision_info *r)
6277 : {
6278 4 : uint32_t level;
6279 4 : uint32_t _level;
6280 691 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
6281 691 : if (ndr_flags & NDR_SCALARS) {
6282 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
6283 691 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
6284 691 : NDR_CHECK(ndr_pull_union_align(ndr, 4));
6285 691 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &_level));
6286 691 : if (_level != level) {
6287 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" for r at %s", (uint32_t)_level, __location__);
6288 : }
6289 691 : NDR_CHECK(ndr_pull_union_align(ndr, 4));
6290 691 : switch (level) {
6291 691 : case 1: {
6292 691 : NDR_CHECK(ndr_pull_lsa_revision_info1(ndr, NDR_SCALARS, &r->info1));
6293 687 : break; }
6294 :
6295 0 : default:
6296 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
6297 : }
6298 : }
6299 691 : if (ndr_flags & NDR_BUFFERS) {
6300 0 : if (!(ndr_flags & NDR_SCALARS)) {
6301 : /* We didn't get it above, and the token is not needed after this. */
6302 0 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
6303 : }
6304 0 : switch (level) {
6305 0 : case 1:
6306 0 : break;
6307 :
6308 0 : default:
6309 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
6310 : }
6311 : }
6312 687 : return NDR_ERR_SUCCESS;
6313 : }
6314 :
6315 22 : _PUBLIC_ void ndr_print_lsa_revision_info(struct ndr_print *ndr, const char *name, const union lsa_revision_info *r)
6316 : {
6317 0 : uint32_t level;
6318 22 : level = ndr_print_steal_switch_value(ndr, r);
6319 22 : ndr_print_union(ndr, name, level, "lsa_revision_info");
6320 22 : switch (level) {
6321 22 : case 1:
6322 22 : ndr_print_lsa_revision_info1(ndr, "info1", &r->info1);
6323 22 : break;
6324 :
6325 0 : default:
6326 0 : ndr_print_bad_level(ndr, name, level);
6327 : }
6328 22 : }
6329 :
6330 0 : static enum ndr_err_code ndr_push_lsa_ForestTrustData2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union lsa_ForestTrustData2 *r)
6331 : {
6332 0 : uint32_t level;
6333 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
6334 0 : if (ndr_flags & NDR_SCALARS) {
6335 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
6336 0 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
6337 0 : NDR_CHECK(ndr_push_union_align(ndr, 5));
6338 0 : NDR_CHECK(ndr_push_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, level));
6339 0 : NDR_CHECK(ndr_push_union_align(ndr, 5));
6340 0 : switch (level) {
6341 0 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME: {
6342 0 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->top_level_name));
6343 0 : break; }
6344 :
6345 0 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX: {
6346 0 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS, &r->top_level_name_ex));
6347 0 : break; }
6348 :
6349 0 : case LSA_FOREST_TRUST_DOMAIN_INFO: {
6350 0 : NDR_CHECK(ndr_push_lsa_ForestTrustDomainInfo(ndr, NDR_SCALARS, &r->domain_info));
6351 0 : break; }
6352 :
6353 0 : case LSA_FOREST_TRUST_BINARY_DATA: {
6354 0 : NDR_CHECK(ndr_push_lsa_ForestTrustBinaryData(ndr, NDR_SCALARS, &r->data));
6355 0 : break; }
6356 :
6357 0 : case LSA_FOREST_TRUST_SCANNER_INFO: {
6358 0 : NDR_CHECK(ndr_push_lsa_ForestTrustDomainInfo(ndr, NDR_SCALARS, &r->scanner_info));
6359 0 : break; }
6360 :
6361 0 : default:
6362 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
6363 : }
6364 : }
6365 0 : if (ndr_flags & NDR_BUFFERS) {
6366 0 : if (!(ndr_flags & NDR_SCALARS)) {
6367 : /* We didn't get it above, and the token is not needed after this. */
6368 0 : NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
6369 : }
6370 0 : switch (level) {
6371 0 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME:
6372 0 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->top_level_name));
6373 0 : break;
6374 :
6375 0 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX:
6376 0 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_BUFFERS, &r->top_level_name_ex));
6377 0 : break;
6378 :
6379 0 : case LSA_FOREST_TRUST_DOMAIN_INFO:
6380 0 : NDR_CHECK(ndr_push_lsa_ForestTrustDomainInfo(ndr, NDR_BUFFERS, &r->domain_info));
6381 0 : break;
6382 :
6383 0 : case LSA_FOREST_TRUST_BINARY_DATA:
6384 0 : NDR_CHECK(ndr_push_lsa_ForestTrustBinaryData(ndr, NDR_BUFFERS, &r->data));
6385 0 : break;
6386 :
6387 0 : case LSA_FOREST_TRUST_SCANNER_INFO:
6388 0 : NDR_CHECK(ndr_push_lsa_ForestTrustDomainInfo(ndr, NDR_BUFFERS, &r->scanner_info));
6389 0 : break;
6390 :
6391 0 : default:
6392 0 : return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
6393 : }
6394 : }
6395 0 : return NDR_ERR_SUCCESS;
6396 : }
6397 :
6398 0 : static enum ndr_err_code ndr_pull_lsa_ForestTrustData2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union lsa_ForestTrustData2 *r)
6399 : {
6400 0 : uint32_t level;
6401 0 : uint16_t _level;
6402 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
6403 0 : if (ndr_flags & NDR_SCALARS) {
6404 : /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
6405 0 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
6406 0 : NDR_CHECK(ndr_pull_union_align(ndr, 5));
6407 0 : NDR_CHECK(ndr_pull_uint1632(ndr, NDR_SCALARS, &_level));
6408 0 : if (_level != level) {
6409 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu16" for r at %s", (uint16_t)_level, __location__);
6410 : }
6411 0 : NDR_CHECK(ndr_pull_union_align(ndr, 5));
6412 0 : switch (level) {
6413 0 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME: {
6414 0 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->top_level_name));
6415 0 : break; }
6416 :
6417 0 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX: {
6418 0 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS, &r->top_level_name_ex));
6419 0 : break; }
6420 :
6421 0 : case LSA_FOREST_TRUST_DOMAIN_INFO: {
6422 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustDomainInfo(ndr, NDR_SCALARS, &r->domain_info));
6423 0 : break; }
6424 :
6425 0 : case LSA_FOREST_TRUST_BINARY_DATA: {
6426 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustBinaryData(ndr, NDR_SCALARS, &r->data));
6427 0 : break; }
6428 :
6429 0 : case LSA_FOREST_TRUST_SCANNER_INFO: {
6430 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustDomainInfo(ndr, NDR_SCALARS, &r->scanner_info));
6431 0 : break; }
6432 :
6433 0 : default:
6434 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
6435 : }
6436 : }
6437 0 : if (ndr_flags & NDR_BUFFERS) {
6438 0 : if (!(ndr_flags & NDR_SCALARS)) {
6439 : /* We didn't get it above, and the token is not needed after this. */
6440 0 : NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
6441 : }
6442 0 : switch (level) {
6443 0 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME:
6444 0 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->top_level_name));
6445 0 : break;
6446 :
6447 0 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX:
6448 0 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_BUFFERS, &r->top_level_name_ex));
6449 0 : break;
6450 :
6451 0 : case LSA_FOREST_TRUST_DOMAIN_INFO:
6452 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustDomainInfo(ndr, NDR_BUFFERS, &r->domain_info));
6453 0 : break;
6454 :
6455 0 : case LSA_FOREST_TRUST_BINARY_DATA:
6456 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustBinaryData(ndr, NDR_BUFFERS, &r->data));
6457 0 : break;
6458 :
6459 0 : case LSA_FOREST_TRUST_SCANNER_INFO:
6460 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustDomainInfo(ndr, NDR_BUFFERS, &r->scanner_info));
6461 0 : break;
6462 :
6463 0 : default:
6464 0 : return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
6465 : }
6466 : }
6467 0 : return NDR_ERR_SUCCESS;
6468 : }
6469 :
6470 0 : _PUBLIC_ void ndr_print_lsa_ForestTrustData2(struct ndr_print *ndr, const char *name, const union lsa_ForestTrustData2 *r)
6471 : {
6472 0 : uint32_t level;
6473 0 : level = ndr_print_steal_switch_value(ndr, r);
6474 0 : ndr_print_union(ndr, name, level, "lsa_ForestTrustData2");
6475 0 : switch (level) {
6476 0 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME:
6477 0 : ndr_print_lsa_StringLarge(ndr, "top_level_name", &r->top_level_name);
6478 0 : break;
6479 :
6480 0 : case LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX:
6481 0 : ndr_print_lsa_StringLarge(ndr, "top_level_name_ex", &r->top_level_name_ex);
6482 0 : break;
6483 :
6484 0 : case LSA_FOREST_TRUST_DOMAIN_INFO:
6485 0 : ndr_print_lsa_ForestTrustDomainInfo(ndr, "domain_info", &r->domain_info);
6486 0 : break;
6487 :
6488 0 : case LSA_FOREST_TRUST_BINARY_DATA:
6489 0 : ndr_print_lsa_ForestTrustBinaryData(ndr, "data", &r->data);
6490 0 : break;
6491 :
6492 0 : case LSA_FOREST_TRUST_SCANNER_INFO:
6493 0 : ndr_print_lsa_ForestTrustDomainInfo(ndr, "scanner_info", &r->scanner_info);
6494 0 : break;
6495 :
6496 0 : default:
6497 0 : ndr_print_bad_level(ndr, name, level);
6498 : }
6499 0 : }
6500 :
6501 0 : static enum ndr_err_code ndr_push_lsa_ForestTrustRecord2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_ForestTrustRecord2 *r)
6502 : {
6503 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
6504 0 : if (ndr_flags & NDR_SCALARS) {
6505 0 : NDR_CHECK(ndr_push_align(ndr, 8));
6506 0 : NDR_CHECK(ndr_push_lsa_ForestTrustRecordFlags(ndr, NDR_SCALARS, r->flags));
6507 0 : NDR_CHECK(ndr_push_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, r->type));
6508 0 : NDR_CHECK(ndr_push_NTTIME_hyper(ndr, NDR_SCALARS, r->time));
6509 0 : NDR_CHECK(ndr_push_set_switch_value(ndr, &r->forest_trust_data, r->type));
6510 0 : NDR_CHECK(ndr_push_lsa_ForestTrustData2(ndr, NDR_SCALARS, &r->forest_trust_data));
6511 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 8));
6512 : }
6513 0 : if (ndr_flags & NDR_BUFFERS) {
6514 0 : NDR_CHECK(ndr_push_set_switch_value(ndr, &r->forest_trust_data, r->type));
6515 0 : NDR_CHECK(ndr_push_lsa_ForestTrustData2(ndr, NDR_BUFFERS, &r->forest_trust_data));
6516 : }
6517 0 : return NDR_ERR_SUCCESS;
6518 : }
6519 :
6520 0 : static enum ndr_err_code ndr_pull_lsa_ForestTrustRecord2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_ForestTrustRecord2 *r)
6521 : {
6522 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
6523 0 : if (ndr_flags & NDR_SCALARS) {
6524 0 : NDR_CHECK(ndr_pull_align(ndr, 8));
6525 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustRecordFlags(ndr, NDR_SCALARS, &r->flags));
6526 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, &r->type));
6527 0 : NDR_CHECK(ndr_pull_NTTIME_hyper(ndr, NDR_SCALARS, &r->time));
6528 0 : NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->forest_trust_data, r->type));
6529 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustData2(ndr, NDR_SCALARS, &r->forest_trust_data));
6530 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
6531 : }
6532 0 : if (ndr_flags & NDR_BUFFERS) {
6533 0 : NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->forest_trust_data, r->type));
6534 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustData2(ndr, NDR_BUFFERS, &r->forest_trust_data));
6535 : }
6536 0 : return NDR_ERR_SUCCESS;
6537 : }
6538 :
6539 0 : _PUBLIC_ void ndr_print_lsa_ForestTrustRecord2(struct ndr_print *ndr, const char *name, const struct lsa_ForestTrustRecord2 *r)
6540 : {
6541 0 : ndr_print_struct(ndr, name, "lsa_ForestTrustRecord2");
6542 0 : if (r == NULL) { ndr_print_null(ndr); return; }
6543 0 : ndr->depth++;
6544 0 : ndr_print_lsa_ForestTrustRecordFlags(ndr, "flags", r->flags);
6545 0 : ndr_print_lsa_ForestTrustRecordType(ndr, "type", r->type);
6546 0 : ndr_print_NTTIME_hyper(ndr, "time", r->time);
6547 0 : ndr_print_set_switch_value(ndr, &r->forest_trust_data, r->type);
6548 0 : ndr_print_lsa_ForestTrustData2(ndr, "forest_trust_data", &r->forest_trust_data);
6549 0 : ndr->depth--;
6550 : }
6551 :
6552 0 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_ForestTrustInformation2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct lsa_ForestTrustInformation2 *r)
6553 : {
6554 0 : uint32_t cntr_entries_1;
6555 0 : NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
6556 0 : if (ndr_flags & NDR_SCALARS) {
6557 0 : NDR_CHECK(ndr_push_align(ndr, 5));
6558 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
6559 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->entries));
6560 0 : NDR_CHECK(ndr_push_trailer_align(ndr, 5));
6561 : }
6562 0 : if (ndr_flags & NDR_BUFFERS) {
6563 0 : if (r->entries) {
6564 0 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->count));
6565 0 : for (cntr_entries_1 = 0; cntr_entries_1 < (r->count); cntr_entries_1++) {
6566 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->entries[cntr_entries_1]));
6567 : }
6568 0 : for (cntr_entries_1 = 0; cntr_entries_1 < (r->count); cntr_entries_1++) {
6569 0 : if (r->entries[cntr_entries_1]) {
6570 0 : NDR_CHECK(ndr_push_lsa_ForestTrustRecord2(ndr, NDR_SCALARS|NDR_BUFFERS, r->entries[cntr_entries_1]));
6571 : }
6572 : }
6573 : }
6574 : }
6575 0 : return NDR_ERR_SUCCESS;
6576 : }
6577 :
6578 0 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_ForestTrustInformation2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct lsa_ForestTrustInformation2 *r)
6579 : {
6580 0 : uint32_t _ptr_entries;
6581 0 : uint32_t size_entries_1 = 0;
6582 0 : uint32_t cntr_entries_1;
6583 0 : TALLOC_CTX *_mem_save_entries_0 = NULL;
6584 0 : TALLOC_CTX *_mem_save_entries_1 = NULL;
6585 0 : TALLOC_CTX *_mem_save_entries_2 = NULL;
6586 0 : NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
6587 0 : if (ndr_flags & NDR_SCALARS) {
6588 0 : NDR_CHECK(ndr_pull_align(ndr, 5));
6589 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
6590 0 : if (r->count > 4000) {
6591 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->count), (uint32_t)(0), (uint32_t)(4000));
6592 : }
6593 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_entries));
6594 0 : if (_ptr_entries) {
6595 0 : NDR_PULL_ALLOC(ndr, r->entries);
6596 : } else {
6597 0 : r->entries = NULL;
6598 : }
6599 0 : NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
6600 : }
6601 0 : if (ndr_flags & NDR_BUFFERS) {
6602 0 : if (r->entries) {
6603 0 : _mem_save_entries_0 = NDR_PULL_GET_MEM_CTX(ndr);
6604 0 : NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
6605 0 : NDR_CHECK(ndr_pull_array_size(ndr, &r->entries));
6606 0 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->entries, &size_entries_1));
6607 0 : NDR_PULL_ALLOC_N(ndr, r->entries, size_entries_1);
6608 0 : _mem_save_entries_1 = NDR_PULL_GET_MEM_CTX(ndr);
6609 0 : NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
6610 0 : for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
6611 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_entries));
6612 0 : if (_ptr_entries) {
6613 0 : NDR_PULL_ALLOC(ndr, r->entries[cntr_entries_1]);
6614 : } else {
6615 0 : r->entries[cntr_entries_1] = NULL;
6616 : }
6617 : }
6618 0 : for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
6619 0 : if (r->entries[cntr_entries_1]) {
6620 0 : _mem_save_entries_2 = NDR_PULL_GET_MEM_CTX(ndr);
6621 0 : NDR_PULL_SET_MEM_CTX(ndr, r->entries[cntr_entries_1], 0);
6622 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustRecord2(ndr, NDR_SCALARS|NDR_BUFFERS, r->entries[cntr_entries_1]));
6623 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_2, 0);
6624 : }
6625 : }
6626 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_1, 0);
6627 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_0, 0);
6628 : }
6629 0 : if (r->entries) {
6630 0 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->entries, r->count));
6631 : }
6632 0 : for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
6633 0 : }
6634 : }
6635 0 : return NDR_ERR_SUCCESS;
6636 : }
6637 :
6638 0 : static void ndr_print_flags_lsa_ForestTrustInformation2(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct lsa_ForestTrustInformation2 *r)
6639 : {
6640 0 : ndr_print_lsa_ForestTrustInformation2(ndr, name, r);
6641 0 : }
6642 :
6643 0 : _PUBLIC_ void ndr_print_lsa_ForestTrustInformation2(struct ndr_print *ndr, const char *name, const struct lsa_ForestTrustInformation2 *r)
6644 : {
6645 0 : uint32_t cntr_entries_1;
6646 0 : ndr_print_struct(ndr, name, "lsa_ForestTrustInformation2");
6647 0 : if (r == NULL) { ndr_print_null(ndr); return; }
6648 0 : ndr->depth++;
6649 0 : ndr_print_uint32(ndr, "count", r->count);
6650 0 : ndr_print_ptr(ndr, "entries", r->entries);
6651 0 : ndr->depth++;
6652 0 : if (r->entries) {
6653 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "entries", (uint32_t)(r->count));
6654 0 : ndr->depth++;
6655 0 : for (cntr_entries_1 = 0; cntr_entries_1 < (r->count); cntr_entries_1++) {
6656 0 : ndr_print_ptr(ndr, "entries", r->entries[cntr_entries_1]);
6657 0 : ndr->depth++;
6658 0 : if (r->entries[cntr_entries_1]) {
6659 0 : ndr_print_lsa_ForestTrustRecord2(ndr, "entries", r->entries[cntr_entries_1]);
6660 : }
6661 0 : ndr->depth--;
6662 : }
6663 0 : ndr->depth--;
6664 : }
6665 0 : ndr->depth--;
6666 0 : ndr->depth--;
6667 : }
6668 :
6669 4121 : static enum ndr_err_code ndr_push_lsa_Close(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Close *r)
6670 : {
6671 4121 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
6672 4121 : if (flags & NDR_IN) {
6673 2137 : if (r->in.handle == NULL) {
6674 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6675 : }
6676 2137 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
6677 : }
6678 4121 : if (flags & NDR_OUT) {
6679 1984 : if (r->out.handle == NULL) {
6680 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6681 : }
6682 1984 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.handle));
6683 1984 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
6684 : }
6685 4053 : return NDR_ERR_SUCCESS;
6686 : }
6687 :
6688 3961 : static enum ndr_err_code ndr_pull_lsa_Close(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Close *r)
6689 : {
6690 3961 : TALLOC_CTX *_mem_save_handle_0 = NULL;
6691 3961 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
6692 3961 : if (flags & NDR_IN) {
6693 2068 : NDR_ZERO_STRUCT(r->out);
6694 :
6695 2068 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6696 2068 : NDR_PULL_ALLOC(ndr, r->in.handle);
6697 : }
6698 2068 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
6699 2068 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
6700 2068 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
6701 2068 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
6702 2068 : NDR_PULL_ALLOC(ndr, r->out.handle);
6703 2068 : *r->out.handle = *r->in.handle;
6704 : }
6705 3961 : if (flags & NDR_OUT) {
6706 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
6707 : if (r->in.handle == NULL) {
6708 : NDR_PULL_ALLOC(ndr, r->in.handle);
6709 : NDR_ZERO_STRUCTP(r->in.handle);
6710 : }
6711 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
6712 1893 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6713 1361 : NDR_PULL_ALLOC(ndr, r->out.handle);
6714 : }
6715 1893 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
6716 1893 : NDR_PULL_SET_MEM_CTX(ndr, r->out.handle, LIBNDR_FLAG_REF_ALLOC);
6717 1893 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.handle));
6718 1893 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
6719 1893 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
6720 : }
6721 3897 : return NDR_ERR_SUCCESS;
6722 : }
6723 :
6724 276 : _PUBLIC_ void ndr_print_lsa_Close(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Close *r)
6725 : {
6726 276 : ndr_print_struct(ndr, name, "lsa_Close");
6727 276 : if (r == NULL) { ndr_print_null(ndr); return; }
6728 276 : ndr->depth++;
6729 276 : if (flags & NDR_SET_VALUES) {
6730 2 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6731 : }
6732 276 : if (flags & NDR_IN) {
6733 2 : ndr_print_struct(ndr, "in", "lsa_Close");
6734 2 : ndr->depth++;
6735 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
6736 2 : ndr->depth++;
6737 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
6738 2 : ndr->depth--;
6739 2 : ndr->depth--;
6740 : }
6741 276 : if (flags & NDR_OUT) {
6742 274 : ndr_print_struct(ndr, "out", "lsa_Close");
6743 274 : ndr->depth++;
6744 274 : ndr_print_ptr(ndr, "handle", r->out.handle);
6745 274 : ndr->depth++;
6746 274 : ndr_print_policy_handle(ndr, "handle", r->out.handle);
6747 274 : ndr->depth--;
6748 274 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
6749 274 : ndr->depth--;
6750 : }
6751 276 : ndr->depth--;
6752 : }
6753 :
6754 113 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_Delete(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Delete *r)
6755 : {
6756 113 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
6757 113 : if (flags & NDR_IN) {
6758 54 : if (r->in.handle == NULL) {
6759 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6760 : }
6761 54 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
6762 : }
6763 113 : if (flags & NDR_OUT) {
6764 59 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
6765 : }
6766 113 : return NDR_ERR_SUCCESS;
6767 : }
6768 :
6769 104 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_Delete(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Delete *r)
6770 : {
6771 104 : TALLOC_CTX *_mem_save_handle_0 = NULL;
6772 104 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
6773 104 : if (flags & NDR_IN) {
6774 48 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6775 48 : NDR_PULL_ALLOC(ndr, r->in.handle);
6776 : }
6777 48 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
6778 48 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
6779 48 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
6780 48 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
6781 : }
6782 104 : if (flags & NDR_OUT) {
6783 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
6784 : if (r->in.handle == NULL) {
6785 : NDR_PULL_ALLOC(ndr, r->in.handle);
6786 : NDR_ZERO_STRUCTP(r->in.handle);
6787 : }
6788 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
6789 56 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
6790 : }
6791 100 : return NDR_ERR_SUCCESS;
6792 : }
6793 :
6794 30 : _PUBLIC_ void ndr_print_lsa_Delete(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Delete *r)
6795 : {
6796 30 : ndr_print_struct(ndr, name, "lsa_Delete");
6797 30 : if (r == NULL) { ndr_print_null(ndr); return; }
6798 30 : ndr->depth++;
6799 30 : if (flags & NDR_SET_VALUES) {
6800 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6801 : }
6802 30 : if (flags & NDR_IN) {
6803 2 : ndr_print_struct(ndr, "in", "lsa_Delete");
6804 2 : ndr->depth++;
6805 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
6806 2 : ndr->depth++;
6807 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
6808 2 : ndr->depth--;
6809 2 : ndr->depth--;
6810 : }
6811 30 : if (flags & NDR_OUT) {
6812 28 : ndr_print_struct(ndr, "out", "lsa_Delete");
6813 28 : ndr->depth++;
6814 28 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
6815 28 : ndr->depth--;
6816 : }
6817 30 : ndr->depth--;
6818 : }
6819 :
6820 11 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_EnumPrivs(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_EnumPrivs *r)
6821 : {
6822 11 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
6823 11 : if (flags & NDR_IN) {
6824 6 : if (r->in.handle == NULL) {
6825 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6826 : }
6827 6 : if (r->in.resume_handle == NULL) {
6828 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6829 : }
6830 6 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
6831 6 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.resume_handle));
6832 6 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.max_count));
6833 : }
6834 11 : if (flags & NDR_OUT) {
6835 5 : if (r->out.resume_handle == NULL) {
6836 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6837 : }
6838 5 : if (r->out.privs == NULL) {
6839 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6840 : }
6841 5 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.resume_handle));
6842 5 : NDR_CHECK(ndr_push_lsa_PrivArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.privs));
6843 5 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
6844 : }
6845 11 : return NDR_ERR_SUCCESS;
6846 : }
6847 :
6848 14 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_EnumPrivs(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_EnumPrivs *r)
6849 : {
6850 14 : TALLOC_CTX *_mem_save_handle_0 = NULL;
6851 14 : TALLOC_CTX *_mem_save_resume_handle_0 = NULL;
6852 14 : TALLOC_CTX *_mem_save_privs_0 = NULL;
6853 14 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
6854 14 : if (flags & NDR_IN) {
6855 6 : NDR_ZERO_STRUCT(r->out);
6856 :
6857 6 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6858 6 : NDR_PULL_ALLOC(ndr, r->in.handle);
6859 : }
6860 6 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
6861 6 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
6862 6 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
6863 6 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
6864 6 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6865 6 : NDR_PULL_ALLOC(ndr, r->in.resume_handle);
6866 : }
6867 6 : _mem_save_resume_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
6868 6 : NDR_PULL_SET_MEM_CTX(ndr, r->in.resume_handle, LIBNDR_FLAG_REF_ALLOC);
6869 6 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.resume_handle));
6870 6 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_resume_handle_0, LIBNDR_FLAG_REF_ALLOC);
6871 6 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.max_count));
6872 6 : NDR_PULL_ALLOC(ndr, r->out.resume_handle);
6873 6 : *r->out.resume_handle = *r->in.resume_handle;
6874 6 : NDR_PULL_ALLOC(ndr, r->out.privs);
6875 6 : NDR_ZERO_STRUCTP(r->out.privs);
6876 : }
6877 14 : if (flags & NDR_OUT) {
6878 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
6879 : if (r->in.handle == NULL) {
6880 : NDR_PULL_ALLOC(ndr, r->in.handle);
6881 : NDR_ZERO_STRUCTP(r->in.handle);
6882 : }
6883 : if (r->in.resume_handle == NULL) {
6884 : NDR_PULL_ALLOC(ndr, r->in.resume_handle);
6885 : NDR_ZERO_STRUCTP(r->in.resume_handle);
6886 : }
6887 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
6888 8 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6889 3 : NDR_PULL_ALLOC(ndr, r->out.resume_handle);
6890 : }
6891 8 : _mem_save_resume_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
6892 8 : NDR_PULL_SET_MEM_CTX(ndr, r->out.resume_handle, LIBNDR_FLAG_REF_ALLOC);
6893 8 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.resume_handle));
6894 8 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_resume_handle_0, LIBNDR_FLAG_REF_ALLOC);
6895 8 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6896 3 : NDR_PULL_ALLOC(ndr, r->out.privs);
6897 : }
6898 8 : _mem_save_privs_0 = NDR_PULL_GET_MEM_CTX(ndr);
6899 8 : NDR_PULL_SET_MEM_CTX(ndr, r->out.privs, LIBNDR_FLAG_REF_ALLOC);
6900 8 : NDR_CHECK(ndr_pull_lsa_PrivArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.privs));
6901 8 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_privs_0, LIBNDR_FLAG_REF_ALLOC);
6902 8 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
6903 : }
6904 10 : return NDR_ERR_SUCCESS;
6905 : }
6906 :
6907 6 : _PUBLIC_ void ndr_print_lsa_EnumPrivs(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_EnumPrivs *r)
6908 : {
6909 6 : ndr_print_struct(ndr, name, "lsa_EnumPrivs");
6910 6 : if (r == NULL) { ndr_print_null(ndr); return; }
6911 6 : ndr->depth++;
6912 6 : if (flags & NDR_SET_VALUES) {
6913 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
6914 : }
6915 6 : if (flags & NDR_IN) {
6916 2 : ndr_print_struct(ndr, "in", "lsa_EnumPrivs");
6917 2 : ndr->depth++;
6918 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
6919 2 : ndr->depth++;
6920 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
6921 2 : ndr->depth--;
6922 2 : ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
6923 2 : ndr->depth++;
6924 2 : ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
6925 2 : ndr->depth--;
6926 2 : ndr_print_uint32(ndr, "max_count", r->in.max_count);
6927 2 : ndr->depth--;
6928 : }
6929 6 : if (flags & NDR_OUT) {
6930 4 : ndr_print_struct(ndr, "out", "lsa_EnumPrivs");
6931 4 : ndr->depth++;
6932 4 : ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
6933 4 : ndr->depth++;
6934 4 : ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
6935 4 : ndr->depth--;
6936 4 : ndr_print_ptr(ndr, "privs", r->out.privs);
6937 4 : ndr->depth++;
6938 4 : ndr_print_lsa_PrivArray(ndr, "privs", r->out.privs);
6939 4 : ndr->depth--;
6940 4 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
6941 4 : ndr->depth--;
6942 : }
6943 6 : ndr->depth--;
6944 : }
6945 :
6946 156 : static enum ndr_err_code ndr_push_lsa_QuerySecurity(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_QuerySecurity *r)
6947 : {
6948 156 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
6949 156 : if (flags & NDR_IN) {
6950 76 : if (r->in.handle == NULL) {
6951 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6952 : }
6953 76 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
6954 76 : NDR_CHECK(ndr_push_security_secinfo(ndr, NDR_SCALARS, r->in.sec_info));
6955 : }
6956 156 : if (flags & NDR_OUT) {
6957 80 : if (r->out.sdbuf == NULL) {
6958 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
6959 : }
6960 80 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.sdbuf));
6961 80 : if (*r->out.sdbuf) {
6962 80 : NDR_CHECK(ndr_push_sec_desc_buf(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.sdbuf));
6963 : }
6964 80 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
6965 : }
6966 120 : return NDR_ERR_SUCCESS;
6967 : }
6968 :
6969 140 : static enum ndr_err_code ndr_pull_lsa_QuerySecurity(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_QuerySecurity *r)
6970 : {
6971 32 : uint32_t _ptr_sdbuf;
6972 140 : TALLOC_CTX *_mem_save_handle_0 = NULL;
6973 140 : TALLOC_CTX *_mem_save_sdbuf_0 = NULL;
6974 140 : TALLOC_CTX *_mem_save_sdbuf_1 = NULL;
6975 140 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
6976 140 : if (flags & NDR_IN) {
6977 64 : NDR_ZERO_STRUCT(r->out);
6978 :
6979 64 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6980 64 : NDR_PULL_ALLOC(ndr, r->in.handle);
6981 : }
6982 64 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
6983 64 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
6984 64 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
6985 64 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
6986 64 : NDR_CHECK(ndr_pull_security_secinfo(ndr, NDR_SCALARS, &r->in.sec_info));
6987 64 : NDR_PULL_ALLOC(ndr, r->out.sdbuf);
6988 64 : NDR_ZERO_STRUCTP(r->out.sdbuf);
6989 : }
6990 140 : if (flags & NDR_OUT) {
6991 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
6992 : if (r->in.handle == NULL) {
6993 : NDR_PULL_ALLOC(ndr, r->in.handle);
6994 : NDR_ZERO_STRUCTP(r->in.handle);
6995 : }
6996 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
6997 76 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
6998 16 : NDR_PULL_ALLOC(ndr, r->out.sdbuf);
6999 : }
7000 76 : _mem_save_sdbuf_0 = NDR_PULL_GET_MEM_CTX(ndr);
7001 76 : NDR_PULL_SET_MEM_CTX(ndr, r->out.sdbuf, LIBNDR_FLAG_REF_ALLOC);
7002 76 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sdbuf));
7003 76 : if (_ptr_sdbuf) {
7004 76 : NDR_PULL_ALLOC(ndr, *r->out.sdbuf);
7005 : } else {
7006 0 : *r->out.sdbuf = NULL;
7007 : }
7008 76 : if (*r->out.sdbuf) {
7009 76 : _mem_save_sdbuf_1 = NDR_PULL_GET_MEM_CTX(ndr);
7010 76 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.sdbuf, 0);
7011 76 : NDR_CHECK(ndr_pull_sec_desc_buf(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.sdbuf));
7012 76 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sdbuf_1, 0);
7013 : }
7014 76 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sdbuf_0, LIBNDR_FLAG_REF_ALLOC);
7015 76 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
7016 : }
7017 108 : return NDR_ERR_SUCCESS;
7018 : }
7019 :
7020 32 : _PUBLIC_ void ndr_print_lsa_QuerySecurity(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_QuerySecurity *r)
7021 : {
7022 32 : ndr_print_struct(ndr, name, "lsa_QuerySecurity");
7023 32 : if (r == NULL) { ndr_print_null(ndr); return; }
7024 32 : ndr->depth++;
7025 32 : if (flags & NDR_SET_VALUES) {
7026 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7027 : }
7028 32 : if (flags & NDR_IN) {
7029 0 : ndr_print_struct(ndr, "in", "lsa_QuerySecurity");
7030 0 : ndr->depth++;
7031 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
7032 0 : ndr->depth++;
7033 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
7034 0 : ndr->depth--;
7035 0 : ndr_print_security_secinfo(ndr, "sec_info", r->in.sec_info);
7036 0 : ndr->depth--;
7037 : }
7038 32 : if (flags & NDR_OUT) {
7039 32 : ndr_print_struct(ndr, "out", "lsa_QuerySecurity");
7040 32 : ndr->depth++;
7041 32 : ndr_print_ptr(ndr, "sdbuf", r->out.sdbuf);
7042 32 : ndr->depth++;
7043 32 : ndr_print_ptr(ndr, "sdbuf", *r->out.sdbuf);
7044 32 : ndr->depth++;
7045 32 : if (*r->out.sdbuf) {
7046 32 : ndr_print_sec_desc_buf(ndr, "sdbuf", *r->out.sdbuf);
7047 : }
7048 32 : ndr->depth--;
7049 32 : ndr->depth--;
7050 32 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
7051 32 : ndr->depth--;
7052 : }
7053 32 : ndr->depth--;
7054 : }
7055 :
7056 0 : static enum ndr_err_code ndr_push_lsa_SetSecObj(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_SetSecObj *r)
7057 : {
7058 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7059 0 : if (flags & NDR_IN) {
7060 0 : if (r->in.handle == NULL) {
7061 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7062 : }
7063 0 : if (r->in.sdbuf == NULL) {
7064 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7065 : }
7066 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
7067 0 : NDR_CHECK(ndr_push_security_secinfo(ndr, NDR_SCALARS, r->in.sec_info));
7068 0 : NDR_CHECK(ndr_push_sec_desc_buf(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sdbuf));
7069 : }
7070 0 : if (flags & NDR_OUT) {
7071 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
7072 : }
7073 0 : return NDR_ERR_SUCCESS;
7074 : }
7075 :
7076 0 : static enum ndr_err_code ndr_pull_lsa_SetSecObj(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_SetSecObj *r)
7077 : {
7078 0 : TALLOC_CTX *_mem_save_handle_0 = NULL;
7079 0 : TALLOC_CTX *_mem_save_sdbuf_0 = NULL;
7080 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7081 0 : if (flags & NDR_IN) {
7082 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7083 0 : NDR_PULL_ALLOC(ndr, r->in.handle);
7084 : }
7085 0 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7086 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
7087 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
7088 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
7089 0 : NDR_CHECK(ndr_pull_security_secinfo(ndr, NDR_SCALARS, &r->in.sec_info));
7090 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7091 0 : NDR_PULL_ALLOC(ndr, r->in.sdbuf);
7092 : }
7093 0 : _mem_save_sdbuf_0 = NDR_PULL_GET_MEM_CTX(ndr);
7094 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sdbuf, LIBNDR_FLAG_REF_ALLOC);
7095 0 : NDR_CHECK(ndr_pull_sec_desc_buf(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sdbuf));
7096 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sdbuf_0, LIBNDR_FLAG_REF_ALLOC);
7097 : }
7098 0 : if (flags & NDR_OUT) {
7099 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7100 : if (r->in.handle == NULL) {
7101 : NDR_PULL_ALLOC(ndr, r->in.handle);
7102 : NDR_ZERO_STRUCTP(r->in.handle);
7103 : }
7104 : if (r->in.sdbuf == NULL) {
7105 : NDR_PULL_ALLOC(ndr, r->in.sdbuf);
7106 : NDR_ZERO_STRUCTP(r->in.sdbuf);
7107 : }
7108 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7109 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
7110 : }
7111 0 : return NDR_ERR_SUCCESS;
7112 : }
7113 :
7114 0 : _PUBLIC_ void ndr_print_lsa_SetSecObj(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_SetSecObj *r)
7115 : {
7116 0 : ndr_print_struct(ndr, name, "lsa_SetSecObj");
7117 0 : if (r == NULL) { ndr_print_null(ndr); return; }
7118 0 : ndr->depth++;
7119 0 : if (flags & NDR_SET_VALUES) {
7120 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7121 : }
7122 0 : if (flags & NDR_IN) {
7123 0 : ndr_print_struct(ndr, "in", "lsa_SetSecObj");
7124 0 : ndr->depth++;
7125 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
7126 0 : ndr->depth++;
7127 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
7128 0 : ndr->depth--;
7129 0 : ndr_print_security_secinfo(ndr, "sec_info", r->in.sec_info);
7130 0 : ndr_print_ptr(ndr, "sdbuf", r->in.sdbuf);
7131 0 : ndr->depth++;
7132 0 : ndr_print_sec_desc_buf(ndr, "sdbuf", r->in.sdbuf);
7133 0 : ndr->depth--;
7134 0 : ndr->depth--;
7135 : }
7136 0 : if (flags & NDR_OUT) {
7137 0 : ndr_print_struct(ndr, "out", "lsa_SetSecObj");
7138 0 : ndr->depth++;
7139 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
7140 0 : ndr->depth--;
7141 : }
7142 0 : ndr->depth--;
7143 : }
7144 :
7145 0 : static enum ndr_err_code ndr_push_lsa_ChangePassword(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_ChangePassword *r)
7146 : {
7147 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7148 0 : if (flags & NDR_IN) {
7149 0 : }
7150 0 : if (flags & NDR_OUT) {
7151 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
7152 : }
7153 0 : return NDR_ERR_SUCCESS;
7154 : }
7155 :
7156 0 : static enum ndr_err_code ndr_pull_lsa_ChangePassword(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_ChangePassword *r)
7157 : {
7158 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7159 0 : if (flags & NDR_IN) {
7160 0 : }
7161 0 : if (flags & NDR_OUT) {
7162 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7163 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7164 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
7165 : }
7166 0 : return NDR_ERR_SUCCESS;
7167 : }
7168 :
7169 0 : _PUBLIC_ void ndr_print_lsa_ChangePassword(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_ChangePassword *r)
7170 : {
7171 0 : ndr_print_struct(ndr, name, "lsa_ChangePassword");
7172 0 : if (r == NULL) { ndr_print_null(ndr); return; }
7173 0 : ndr->depth++;
7174 0 : if (flags & NDR_SET_VALUES) {
7175 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7176 : }
7177 0 : if (flags & NDR_IN) {
7178 0 : ndr_print_struct(ndr, "in", "lsa_ChangePassword");
7179 0 : ndr->depth++;
7180 0 : ndr->depth--;
7181 : }
7182 0 : if (flags & NDR_OUT) {
7183 0 : ndr_print_struct(ndr, "out", "lsa_ChangePassword");
7184 0 : ndr->depth++;
7185 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
7186 0 : ndr->depth--;
7187 : }
7188 0 : ndr->depth--;
7189 : }
7190 :
7191 17556 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_OpenPolicy(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_OpenPolicy *r)
7192 : {
7193 17556 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7194 17556 : if (flags & NDR_IN) {
7195 8626 : if (r->in.attr == NULL) {
7196 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7197 : }
7198 8626 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.system_name));
7199 8626 : if (r->in.system_name) {
7200 8626 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->in.system_name));
7201 : }
7202 8626 : NDR_CHECK(ndr_push_lsa_ObjectAttribute(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.attr));
7203 8626 : NDR_CHECK(ndr_push_lsa_PolicyAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
7204 : }
7205 17556 : if (flags & NDR_OUT) {
7206 8930 : if (r->out.handle == NULL) {
7207 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7208 : }
7209 8930 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.handle));
7210 8930 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
7211 : }
7212 17525 : return NDR_ERR_SUCCESS;
7213 : }
7214 :
7215 17539 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_OpenPolicy(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_OpenPolicy *r)
7216 : {
7217 32 : uint32_t _ptr_system_name;
7218 17539 : TALLOC_CTX *_mem_save_system_name_0 = NULL;
7219 17539 : TALLOC_CTX *_mem_save_attr_0 = NULL;
7220 17539 : TALLOC_CTX *_mem_save_handle_0 = NULL;
7221 17539 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7222 17539 : if (flags & NDR_IN) {
7223 8917 : NDR_ZERO_STRUCT(r->out);
7224 :
7225 8917 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_system_name));
7226 8917 : if (_ptr_system_name) {
7227 8917 : NDR_PULL_ALLOC(ndr, r->in.system_name);
7228 : } else {
7229 0 : r->in.system_name = NULL;
7230 : }
7231 8917 : if (r->in.system_name) {
7232 8917 : _mem_save_system_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
7233 8917 : NDR_PULL_SET_MEM_CTX(ndr, r->in.system_name, 0);
7234 8917 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->in.system_name));
7235 8917 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_system_name_0, 0);
7236 : }
7237 8917 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7238 8917 : NDR_PULL_ALLOC(ndr, r->in.attr);
7239 : }
7240 8917 : _mem_save_attr_0 = NDR_PULL_GET_MEM_CTX(ndr);
7241 8917 : NDR_PULL_SET_MEM_CTX(ndr, r->in.attr, LIBNDR_FLAG_REF_ALLOC);
7242 8917 : NDR_CHECK(ndr_pull_lsa_ObjectAttribute(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.attr));
7243 8917 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_attr_0, LIBNDR_FLAG_REF_ALLOC);
7244 8917 : NDR_CHECK(ndr_pull_lsa_PolicyAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
7245 8917 : NDR_PULL_ALLOC(ndr, r->out.handle);
7246 8917 : NDR_ZERO_STRUCTP(r->out.handle);
7247 : }
7248 17539 : if (flags & NDR_OUT) {
7249 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7250 : if (r->in.attr == NULL) {
7251 : NDR_PULL_ALLOC(ndr, r->in.attr);
7252 : NDR_ZERO_STRUCTP(r->in.attr);
7253 : }
7254 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7255 8622 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7256 8521 : NDR_PULL_ALLOC(ndr, r->out.handle);
7257 : }
7258 8622 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7259 8622 : NDR_PULL_SET_MEM_CTX(ndr, r->out.handle, LIBNDR_FLAG_REF_ALLOC);
7260 8622 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.handle));
7261 8622 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
7262 8622 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
7263 : }
7264 17507 : return NDR_ERR_SUCCESS;
7265 : }
7266 :
7267 46 : _PUBLIC_ void ndr_print_lsa_OpenPolicy(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_OpenPolicy *r)
7268 : {
7269 46 : ndr_print_struct(ndr, name, "lsa_OpenPolicy");
7270 46 : if (r == NULL) { ndr_print_null(ndr); return; }
7271 46 : ndr->depth++;
7272 46 : if (flags & NDR_SET_VALUES) {
7273 2 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7274 : }
7275 46 : if (flags & NDR_IN) {
7276 4 : ndr_print_struct(ndr, "in", "lsa_OpenPolicy");
7277 4 : ndr->depth++;
7278 4 : ndr_print_ptr(ndr, "system_name", r->in.system_name);
7279 4 : ndr->depth++;
7280 4 : if (r->in.system_name) {
7281 4 : ndr_print_uint16(ndr, "system_name", *r->in.system_name);
7282 : }
7283 4 : ndr->depth--;
7284 4 : ndr_print_ptr(ndr, "attr", r->in.attr);
7285 4 : ndr->depth++;
7286 4 : ndr_print_lsa_ObjectAttribute(ndr, "attr", r->in.attr);
7287 4 : ndr->depth--;
7288 4 : ndr_print_lsa_PolicyAccessMask(ndr, "access_mask", r->in.access_mask);
7289 4 : ndr->depth--;
7290 : }
7291 46 : if (flags & NDR_OUT) {
7292 42 : ndr_print_struct(ndr, "out", "lsa_OpenPolicy");
7293 42 : ndr->depth++;
7294 42 : ndr_print_ptr(ndr, "handle", r->out.handle);
7295 42 : ndr->depth++;
7296 42 : ndr_print_policy_handle(ndr, "handle", r->out.handle);
7297 42 : ndr->depth--;
7298 42 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
7299 42 : ndr->depth--;
7300 : }
7301 46 : ndr->depth--;
7302 : }
7303 :
7304 3829 : static enum ndr_err_code ndr_push_lsa_QueryInfoPolicy(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_QueryInfoPolicy *r)
7305 : {
7306 3829 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7307 3829 : if (flags & NDR_IN) {
7308 1869 : if (r->in.handle == NULL) {
7309 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7310 : }
7311 1869 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
7312 1959 : NDR_CHECK(ndr_push_lsa_PolicyInfo(ndr, NDR_SCALARS, r->in.level));
7313 : }
7314 3829 : if (flags & NDR_OUT) {
7315 1960 : if (r->out.info == NULL) {
7316 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7317 : }
7318 1960 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.info));
7319 1960 : if (*r->out.info) {
7320 1900 : NDR_CHECK(ndr_push_set_switch_value(ndr, *r->out.info, r->in.level));
7321 1900 : NDR_CHECK(ndr_push_lsa_PolicyInformation(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
7322 : }
7323 1960 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
7324 : }
7325 3631 : return NDR_ERR_SUCCESS;
7326 : }
7327 :
7328 3647 : static enum ndr_err_code ndr_pull_lsa_QueryInfoPolicy(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_QueryInfoPolicy *r)
7329 : {
7330 180 : uint32_t _ptr_info;
7331 3647 : TALLOC_CTX *_mem_save_handle_0 = NULL;
7332 3647 : TALLOC_CTX *_mem_save_info_0 = NULL;
7333 3647 : TALLOC_CTX *_mem_save_info_1 = NULL;
7334 3647 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7335 3647 : if (flags & NDR_IN) {
7336 1778 : NDR_ZERO_STRUCT(r->out);
7337 :
7338 1778 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7339 1778 : NDR_PULL_ALLOC(ndr, r->in.handle);
7340 : }
7341 1778 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7342 1778 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
7343 1778 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
7344 1778 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
7345 1868 : NDR_CHECK(ndr_pull_lsa_PolicyInfo(ndr, NDR_SCALARS, &r->in.level));
7346 1778 : NDR_PULL_ALLOC(ndr, r->out.info);
7347 1778 : NDR_ZERO_STRUCTP(r->out.info);
7348 : }
7349 3647 : if (flags & NDR_OUT) {
7350 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7351 : if (r->in.handle == NULL) {
7352 : NDR_PULL_ALLOC(ndr, r->in.handle);
7353 : NDR_ZERO_STRUCTP(r->in.handle);
7354 : }
7355 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7356 1869 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7357 1076 : NDR_PULL_ALLOC(ndr, r->out.info);
7358 : }
7359 1869 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
7360 1869 : NDR_PULL_SET_MEM_CTX(ndr, r->out.info, LIBNDR_FLAG_REF_ALLOC);
7361 1869 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
7362 1869 : if (_ptr_info) {
7363 1815 : NDR_PULL_ALLOC(ndr, *r->out.info);
7364 : } else {
7365 54 : *r->out.info = NULL;
7366 : }
7367 1869 : if (*r->out.info) {
7368 1815 : _mem_save_info_1 = NDR_PULL_GET_MEM_CTX(ndr);
7369 1815 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.info, 0);
7370 1815 : NDR_CHECK(ndr_pull_set_switch_value(ndr, *r->out.info, r->in.level));
7371 1815 : NDR_CHECK(ndr_pull_lsa_PolicyInformation(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
7372 1815 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_1, 0);
7373 : }
7374 1869 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
7375 1869 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
7376 : }
7377 3467 : return NDR_ERR_SUCCESS;
7378 : }
7379 :
7380 368 : _PUBLIC_ void ndr_print_lsa_QueryInfoPolicy(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_QueryInfoPolicy *r)
7381 : {
7382 368 : ndr_print_struct(ndr, name, "lsa_QueryInfoPolicy");
7383 368 : if (r == NULL) { ndr_print_null(ndr); return; }
7384 368 : ndr->depth++;
7385 368 : if (flags & NDR_SET_VALUES) {
7386 2 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7387 : }
7388 368 : if (flags & NDR_IN) {
7389 2 : ndr_print_struct(ndr, "in", "lsa_QueryInfoPolicy");
7390 2 : ndr->depth++;
7391 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
7392 2 : ndr->depth++;
7393 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
7394 2 : ndr->depth--;
7395 2 : ndr_print_lsa_PolicyInfo(ndr, "level", r->in.level);
7396 2 : ndr->depth--;
7397 : }
7398 368 : if (flags & NDR_OUT) {
7399 366 : ndr_print_struct(ndr, "out", "lsa_QueryInfoPolicy");
7400 366 : ndr->depth++;
7401 366 : ndr_print_ptr(ndr, "info", r->out.info);
7402 366 : ndr->depth++;
7403 366 : ndr_print_ptr(ndr, "info", *r->out.info);
7404 366 : ndr->depth++;
7405 366 : if (*r->out.info) {
7406 342 : ndr_print_set_switch_value(ndr, *r->out.info, r->in.level);
7407 342 : ndr_print_lsa_PolicyInformation(ndr, "info", *r->out.info);
7408 : }
7409 366 : ndr->depth--;
7410 366 : ndr->depth--;
7411 366 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
7412 366 : ndr->depth--;
7413 : }
7414 368 : ndr->depth--;
7415 : }
7416 :
7417 0 : static enum ndr_err_code ndr_push_lsa_SetInfoPolicy(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_SetInfoPolicy *r)
7418 : {
7419 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7420 0 : if (flags & NDR_IN) {
7421 0 : if (r->in.handle == NULL) {
7422 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7423 : }
7424 0 : if (r->in.info == NULL) {
7425 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7426 : }
7427 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
7428 0 : NDR_CHECK(ndr_push_lsa_PolicyInfo(ndr, NDR_SCALARS, r->in.level));
7429 0 : NDR_CHECK(ndr_push_set_switch_value(ndr, r->in.info, r->in.level));
7430 0 : NDR_CHECK(ndr_push_lsa_PolicyInformation(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
7431 : }
7432 0 : if (flags & NDR_OUT) {
7433 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
7434 : }
7435 0 : return NDR_ERR_SUCCESS;
7436 : }
7437 :
7438 0 : static enum ndr_err_code ndr_pull_lsa_SetInfoPolicy(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_SetInfoPolicy *r)
7439 : {
7440 0 : TALLOC_CTX *_mem_save_handle_0 = NULL;
7441 0 : TALLOC_CTX *_mem_save_info_0 = NULL;
7442 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7443 0 : if (flags & NDR_IN) {
7444 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7445 0 : NDR_PULL_ALLOC(ndr, r->in.handle);
7446 : }
7447 0 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7448 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
7449 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
7450 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
7451 0 : NDR_CHECK(ndr_pull_lsa_PolicyInfo(ndr, NDR_SCALARS, &r->in.level));
7452 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7453 0 : NDR_PULL_ALLOC(ndr, r->in.info);
7454 : }
7455 0 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
7456 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.info, LIBNDR_FLAG_REF_ALLOC);
7457 0 : NDR_CHECK(ndr_pull_set_switch_value(ndr, r->in.info, r->in.level));
7458 0 : NDR_CHECK(ndr_pull_lsa_PolicyInformation(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
7459 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
7460 : }
7461 0 : if (flags & NDR_OUT) {
7462 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7463 : if (r->in.handle == NULL) {
7464 : NDR_PULL_ALLOC(ndr, r->in.handle);
7465 : NDR_ZERO_STRUCTP(r->in.handle);
7466 : }
7467 : if (r->in.info == NULL) {
7468 : NDR_PULL_ALLOC(ndr, r->in.info);
7469 : NDR_ZERO_STRUCTP(r->in.info);
7470 : }
7471 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7472 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
7473 : }
7474 0 : return NDR_ERR_SUCCESS;
7475 : }
7476 :
7477 0 : _PUBLIC_ void ndr_print_lsa_SetInfoPolicy(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_SetInfoPolicy *r)
7478 : {
7479 0 : ndr_print_struct(ndr, name, "lsa_SetInfoPolicy");
7480 0 : if (r == NULL) { ndr_print_null(ndr); return; }
7481 0 : ndr->depth++;
7482 0 : if (flags & NDR_SET_VALUES) {
7483 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7484 : }
7485 0 : if (flags & NDR_IN) {
7486 0 : ndr_print_struct(ndr, "in", "lsa_SetInfoPolicy");
7487 0 : ndr->depth++;
7488 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
7489 0 : ndr->depth++;
7490 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
7491 0 : ndr->depth--;
7492 0 : ndr_print_lsa_PolicyInfo(ndr, "level", r->in.level);
7493 0 : ndr_print_ptr(ndr, "info", r->in.info);
7494 0 : ndr->depth++;
7495 0 : ndr_print_set_switch_value(ndr, r->in.info, r->in.level);
7496 0 : ndr_print_lsa_PolicyInformation(ndr, "info", r->in.info);
7497 0 : ndr->depth--;
7498 0 : ndr->depth--;
7499 : }
7500 0 : if (flags & NDR_OUT) {
7501 0 : ndr_print_struct(ndr, "out", "lsa_SetInfoPolicy");
7502 0 : ndr->depth++;
7503 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
7504 0 : ndr->depth--;
7505 : }
7506 0 : ndr->depth--;
7507 : }
7508 :
7509 0 : static enum ndr_err_code ndr_push_lsa_ClearAuditLog(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_ClearAuditLog *r)
7510 : {
7511 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7512 0 : if (flags & NDR_IN) {
7513 0 : }
7514 0 : if (flags & NDR_OUT) {
7515 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
7516 : }
7517 0 : return NDR_ERR_SUCCESS;
7518 : }
7519 :
7520 0 : static enum ndr_err_code ndr_pull_lsa_ClearAuditLog(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_ClearAuditLog *r)
7521 : {
7522 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7523 0 : if (flags & NDR_IN) {
7524 0 : }
7525 0 : if (flags & NDR_OUT) {
7526 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7527 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7528 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
7529 : }
7530 0 : return NDR_ERR_SUCCESS;
7531 : }
7532 :
7533 0 : _PUBLIC_ void ndr_print_lsa_ClearAuditLog(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_ClearAuditLog *r)
7534 : {
7535 0 : ndr_print_struct(ndr, name, "lsa_ClearAuditLog");
7536 0 : if (r == NULL) { ndr_print_null(ndr); return; }
7537 0 : ndr->depth++;
7538 0 : if (flags & NDR_SET_VALUES) {
7539 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7540 : }
7541 0 : if (flags & NDR_IN) {
7542 0 : ndr_print_struct(ndr, "in", "lsa_ClearAuditLog");
7543 0 : ndr->depth++;
7544 0 : ndr->depth--;
7545 : }
7546 0 : if (flags & NDR_OUT) {
7547 0 : ndr_print_struct(ndr, "out", "lsa_ClearAuditLog");
7548 0 : ndr->depth++;
7549 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
7550 0 : ndr->depth--;
7551 : }
7552 0 : ndr->depth--;
7553 : }
7554 :
7555 11 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_CreateAccount(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CreateAccount *r)
7556 : {
7557 11 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7558 11 : if (flags & NDR_IN) {
7559 6 : if (r->in.handle == NULL) {
7560 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7561 : }
7562 6 : if (r->in.sid == NULL) {
7563 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7564 : }
7565 6 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
7566 6 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sid));
7567 6 : NDR_CHECK(ndr_push_lsa_AccountAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
7568 : }
7569 11 : if (flags & NDR_OUT) {
7570 5 : if (r->out.acct_handle == NULL) {
7571 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7572 : }
7573 5 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.acct_handle));
7574 5 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
7575 : }
7576 11 : return NDR_ERR_SUCCESS;
7577 : }
7578 :
7579 14 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_CreateAccount(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CreateAccount *r)
7580 : {
7581 14 : TALLOC_CTX *_mem_save_handle_0 = NULL;
7582 14 : TALLOC_CTX *_mem_save_sid_0 = NULL;
7583 14 : TALLOC_CTX *_mem_save_acct_handle_0 = NULL;
7584 14 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7585 14 : if (flags & NDR_IN) {
7586 6 : NDR_ZERO_STRUCT(r->out);
7587 :
7588 6 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7589 6 : NDR_PULL_ALLOC(ndr, r->in.handle);
7590 : }
7591 6 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7592 6 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
7593 6 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
7594 6 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
7595 6 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7596 6 : NDR_PULL_ALLOC(ndr, r->in.sid);
7597 : }
7598 6 : _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
7599 6 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sid, LIBNDR_FLAG_REF_ALLOC);
7600 6 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sid));
7601 6 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, LIBNDR_FLAG_REF_ALLOC);
7602 6 : NDR_CHECK(ndr_pull_lsa_AccountAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
7603 6 : NDR_PULL_ALLOC(ndr, r->out.acct_handle);
7604 6 : NDR_ZERO_STRUCTP(r->out.acct_handle);
7605 : }
7606 14 : if (flags & NDR_OUT) {
7607 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7608 : if (r->in.handle == NULL) {
7609 : NDR_PULL_ALLOC(ndr, r->in.handle);
7610 : NDR_ZERO_STRUCTP(r->in.handle);
7611 : }
7612 : if (r->in.sid == NULL) {
7613 : NDR_PULL_ALLOC(ndr, r->in.sid);
7614 : NDR_ZERO_STRUCTP(r->in.sid);
7615 : }
7616 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7617 8 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7618 3 : NDR_PULL_ALLOC(ndr, r->out.acct_handle);
7619 : }
7620 8 : _mem_save_acct_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7621 8 : NDR_PULL_SET_MEM_CTX(ndr, r->out.acct_handle, LIBNDR_FLAG_REF_ALLOC);
7622 8 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.acct_handle));
7623 8 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_acct_handle_0, LIBNDR_FLAG_REF_ALLOC);
7624 8 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
7625 : }
7626 10 : return NDR_ERR_SUCCESS;
7627 : }
7628 :
7629 6 : _PUBLIC_ void ndr_print_lsa_CreateAccount(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CreateAccount *r)
7630 : {
7631 6 : ndr_print_struct(ndr, name, "lsa_CreateAccount");
7632 6 : if (r == NULL) { ndr_print_null(ndr); return; }
7633 6 : ndr->depth++;
7634 6 : if (flags & NDR_SET_VALUES) {
7635 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7636 : }
7637 6 : if (flags & NDR_IN) {
7638 2 : ndr_print_struct(ndr, "in", "lsa_CreateAccount");
7639 2 : ndr->depth++;
7640 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
7641 2 : ndr->depth++;
7642 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
7643 2 : ndr->depth--;
7644 2 : ndr_print_ptr(ndr, "sid", r->in.sid);
7645 2 : ndr->depth++;
7646 2 : ndr_print_dom_sid2(ndr, "sid", r->in.sid);
7647 2 : ndr->depth--;
7648 2 : ndr_print_lsa_AccountAccessMask(ndr, "access_mask", r->in.access_mask);
7649 2 : ndr->depth--;
7650 : }
7651 6 : if (flags & NDR_OUT) {
7652 4 : ndr_print_struct(ndr, "out", "lsa_CreateAccount");
7653 4 : ndr->depth++;
7654 4 : ndr_print_ptr(ndr, "acct_handle", r->out.acct_handle);
7655 4 : ndr->depth++;
7656 4 : ndr_print_policy_handle(ndr, "acct_handle", r->out.acct_handle);
7657 4 : ndr->depth--;
7658 4 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
7659 4 : ndr->depth--;
7660 : }
7661 6 : ndr->depth--;
7662 : }
7663 :
7664 52 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_EnumAccounts(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_EnumAccounts *r)
7665 : {
7666 52 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7667 52 : if (flags & NDR_IN) {
7668 30 : if (r->in.handle == NULL) {
7669 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7670 : }
7671 30 : if (r->in.resume_handle == NULL) {
7672 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7673 : }
7674 30 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
7675 30 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.resume_handle));
7676 30 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.num_entries));
7677 : }
7678 52 : if (flags & NDR_OUT) {
7679 22 : if (r->out.resume_handle == NULL) {
7680 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7681 : }
7682 22 : if (r->out.sids == NULL) {
7683 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7684 : }
7685 22 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.resume_handle));
7686 22 : NDR_CHECK(ndr_push_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
7687 22 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
7688 : }
7689 52 : return NDR_ERR_SUCCESS;
7690 : }
7691 :
7692 54 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_EnumAccounts(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_EnumAccounts *r)
7693 : {
7694 54 : TALLOC_CTX *_mem_save_handle_0 = NULL;
7695 54 : TALLOC_CTX *_mem_save_resume_handle_0 = NULL;
7696 54 : TALLOC_CTX *_mem_save_sids_0 = NULL;
7697 54 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7698 54 : if (flags & NDR_IN) {
7699 22 : NDR_ZERO_STRUCT(r->out);
7700 :
7701 22 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7702 22 : NDR_PULL_ALLOC(ndr, r->in.handle);
7703 : }
7704 22 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7705 22 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
7706 22 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
7707 22 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
7708 22 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7709 22 : NDR_PULL_ALLOC(ndr, r->in.resume_handle);
7710 : }
7711 22 : _mem_save_resume_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7712 22 : NDR_PULL_SET_MEM_CTX(ndr, r->in.resume_handle, LIBNDR_FLAG_REF_ALLOC);
7713 22 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.resume_handle));
7714 22 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_resume_handle_0, LIBNDR_FLAG_REF_ALLOC);
7715 22 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.num_entries));
7716 22 : if (r->in.num_entries > 8192) {
7717 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.num_entries), (uint32_t)(0), (uint32_t)(8192));
7718 : }
7719 22 : NDR_PULL_ALLOC(ndr, r->out.resume_handle);
7720 22 : *r->out.resume_handle = *r->in.resume_handle;
7721 22 : NDR_PULL_ALLOC(ndr, r->out.sids);
7722 22 : NDR_ZERO_STRUCTP(r->out.sids);
7723 : }
7724 54 : if (flags & NDR_OUT) {
7725 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7726 : if (r->in.handle == NULL) {
7727 : NDR_PULL_ALLOC(ndr, r->in.handle);
7728 : NDR_ZERO_STRUCTP(r->in.handle);
7729 : }
7730 : if (r->in.resume_handle == NULL) {
7731 : NDR_PULL_ALLOC(ndr, r->in.resume_handle);
7732 : NDR_ZERO_STRUCTP(r->in.resume_handle);
7733 : }
7734 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7735 32 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7736 4 : NDR_PULL_ALLOC(ndr, r->out.resume_handle);
7737 : }
7738 32 : _mem_save_resume_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7739 32 : NDR_PULL_SET_MEM_CTX(ndr, r->out.resume_handle, LIBNDR_FLAG_REF_ALLOC);
7740 32 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.resume_handle));
7741 32 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_resume_handle_0, LIBNDR_FLAG_REF_ALLOC);
7742 32 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7743 4 : NDR_PULL_ALLOC(ndr, r->out.sids);
7744 : }
7745 32 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
7746 32 : NDR_PULL_SET_MEM_CTX(ndr, r->out.sids, LIBNDR_FLAG_REF_ALLOC);
7747 32 : NDR_CHECK(ndr_pull_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
7748 32 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
7749 32 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
7750 : }
7751 50 : return NDR_ERR_SUCCESS;
7752 : }
7753 :
7754 8 : _PUBLIC_ void ndr_print_lsa_EnumAccounts(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_EnumAccounts *r)
7755 : {
7756 8 : ndr_print_struct(ndr, name, "lsa_EnumAccounts");
7757 8 : if (r == NULL) { ndr_print_null(ndr); return; }
7758 8 : ndr->depth++;
7759 8 : if (flags & NDR_SET_VALUES) {
7760 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7761 : }
7762 8 : if (flags & NDR_IN) {
7763 2 : ndr_print_struct(ndr, "in", "lsa_EnumAccounts");
7764 2 : ndr->depth++;
7765 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
7766 2 : ndr->depth++;
7767 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
7768 2 : ndr->depth--;
7769 2 : ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
7770 2 : ndr->depth++;
7771 2 : ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
7772 2 : ndr->depth--;
7773 2 : ndr_print_uint32(ndr, "num_entries", r->in.num_entries);
7774 2 : ndr->depth--;
7775 : }
7776 8 : if (flags & NDR_OUT) {
7777 6 : ndr_print_struct(ndr, "out", "lsa_EnumAccounts");
7778 6 : ndr->depth++;
7779 6 : ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
7780 6 : ndr->depth++;
7781 6 : ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
7782 6 : ndr->depth--;
7783 6 : ndr_print_ptr(ndr, "sids", r->out.sids);
7784 6 : ndr->depth++;
7785 6 : ndr_print_lsa_SidArray(ndr, "sids", r->out.sids);
7786 6 : ndr->depth--;
7787 6 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
7788 6 : ndr->depth--;
7789 : }
7790 8 : ndr->depth--;
7791 : }
7792 :
7793 108 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_CreateTrustedDomain(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CreateTrustedDomain *r)
7794 : {
7795 108 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7796 108 : if (flags & NDR_IN) {
7797 48 : if (r->in.policy_handle == NULL) {
7798 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7799 : }
7800 48 : if (r->in.info == NULL) {
7801 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7802 : }
7803 48 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.policy_handle));
7804 48 : NDR_CHECK(ndr_push_lsa_DomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
7805 48 : NDR_CHECK(ndr_push_lsa_TrustedAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
7806 : }
7807 108 : if (flags & NDR_OUT) {
7808 60 : if (r->out.trustdom_handle == NULL) {
7809 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7810 : }
7811 60 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.trustdom_handle));
7812 60 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
7813 : }
7814 108 : return NDR_ERR_SUCCESS;
7815 : }
7816 :
7817 100 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_CreateTrustedDomain(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CreateTrustedDomain *r)
7818 : {
7819 100 : TALLOC_CTX *_mem_save_policy_handle_0 = NULL;
7820 100 : TALLOC_CTX *_mem_save_info_0 = NULL;
7821 100 : TALLOC_CTX *_mem_save_trustdom_handle_0 = NULL;
7822 100 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7823 100 : if (flags & NDR_IN) {
7824 50 : NDR_ZERO_STRUCT(r->out);
7825 :
7826 50 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7827 50 : NDR_PULL_ALLOC(ndr, r->in.policy_handle);
7828 : }
7829 50 : _mem_save_policy_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7830 50 : NDR_PULL_SET_MEM_CTX(ndr, r->in.policy_handle, LIBNDR_FLAG_REF_ALLOC);
7831 50 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.policy_handle));
7832 50 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_policy_handle_0, LIBNDR_FLAG_REF_ALLOC);
7833 50 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7834 50 : NDR_PULL_ALLOC(ndr, r->in.info);
7835 : }
7836 50 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
7837 50 : NDR_PULL_SET_MEM_CTX(ndr, r->in.info, LIBNDR_FLAG_REF_ALLOC);
7838 50 : NDR_CHECK(ndr_pull_lsa_DomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
7839 50 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
7840 50 : NDR_CHECK(ndr_pull_lsa_TrustedAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
7841 50 : NDR_PULL_ALLOC(ndr, r->out.trustdom_handle);
7842 50 : NDR_ZERO_STRUCTP(r->out.trustdom_handle);
7843 : }
7844 100 : if (flags & NDR_OUT) {
7845 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7846 : if (r->in.policy_handle == NULL) {
7847 : NDR_PULL_ALLOC(ndr, r->in.policy_handle);
7848 : NDR_ZERO_STRUCTP(r->in.policy_handle);
7849 : }
7850 : if (r->in.info == NULL) {
7851 : NDR_PULL_ALLOC(ndr, r->in.info);
7852 : NDR_ZERO_STRUCTP(r->in.info);
7853 : }
7854 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7855 50 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7856 14 : NDR_PULL_ALLOC(ndr, r->out.trustdom_handle);
7857 : }
7858 50 : _mem_save_trustdom_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7859 50 : NDR_PULL_SET_MEM_CTX(ndr, r->out.trustdom_handle, LIBNDR_FLAG_REF_ALLOC);
7860 50 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.trustdom_handle));
7861 50 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trustdom_handle_0, LIBNDR_FLAG_REF_ALLOC);
7862 50 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
7863 : }
7864 96 : return NDR_ERR_SUCCESS;
7865 : }
7866 :
7867 28 : _PUBLIC_ void ndr_print_lsa_CreateTrustedDomain(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CreateTrustedDomain *r)
7868 : {
7869 28 : ndr_print_struct(ndr, name, "lsa_CreateTrustedDomain");
7870 28 : if (r == NULL) { ndr_print_null(ndr); return; }
7871 28 : ndr->depth++;
7872 28 : if (flags & NDR_SET_VALUES) {
7873 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7874 : }
7875 28 : if (flags & NDR_IN) {
7876 2 : ndr_print_struct(ndr, "in", "lsa_CreateTrustedDomain");
7877 2 : ndr->depth++;
7878 2 : ndr_print_ptr(ndr, "policy_handle", r->in.policy_handle);
7879 2 : ndr->depth++;
7880 2 : ndr_print_policy_handle(ndr, "policy_handle", r->in.policy_handle);
7881 2 : ndr->depth--;
7882 2 : ndr_print_ptr(ndr, "info", r->in.info);
7883 2 : ndr->depth++;
7884 2 : ndr_print_lsa_DomainInfo(ndr, "info", r->in.info);
7885 2 : ndr->depth--;
7886 2 : ndr_print_lsa_TrustedAccessMask(ndr, "access_mask", r->in.access_mask);
7887 2 : ndr->depth--;
7888 : }
7889 28 : if (flags & NDR_OUT) {
7890 26 : ndr_print_struct(ndr, "out", "lsa_CreateTrustedDomain");
7891 26 : ndr->depth++;
7892 26 : ndr_print_ptr(ndr, "trustdom_handle", r->out.trustdom_handle);
7893 26 : ndr->depth++;
7894 26 : ndr_print_policy_handle(ndr, "trustdom_handle", r->out.trustdom_handle);
7895 26 : ndr->depth--;
7896 26 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
7897 26 : ndr->depth--;
7898 : }
7899 28 : ndr->depth--;
7900 : }
7901 :
7902 234 : static enum ndr_err_code ndr_push_lsa_EnumTrustDom(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_EnumTrustDom *r)
7903 : {
7904 234 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
7905 234 : if (flags & NDR_IN) {
7906 104 : if (r->in.handle == NULL) {
7907 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7908 : }
7909 104 : if (r->in.resume_handle == NULL) {
7910 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7911 : }
7912 104 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
7913 104 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.resume_handle));
7914 104 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.max_size));
7915 : }
7916 234 : if (flags & NDR_OUT) {
7917 130 : if (r->out.resume_handle == NULL) {
7918 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7919 : }
7920 130 : if (r->out.domains == NULL) {
7921 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
7922 : }
7923 130 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.resume_handle));
7924 130 : NDR_CHECK(ndr_push_lsa_DomainList(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.domains));
7925 130 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
7926 : }
7927 225 : return NDR_ERR_SUCCESS;
7928 : }
7929 :
7930 208 : static enum ndr_err_code ndr_pull_lsa_EnumTrustDom(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_EnumTrustDom *r)
7931 : {
7932 208 : TALLOC_CTX *_mem_save_handle_0 = NULL;
7933 208 : TALLOC_CTX *_mem_save_resume_handle_0 = NULL;
7934 208 : TALLOC_CTX *_mem_save_domains_0 = NULL;
7935 208 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
7936 208 : if (flags & NDR_IN) {
7937 104 : NDR_ZERO_STRUCT(r->out);
7938 :
7939 104 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7940 104 : NDR_PULL_ALLOC(ndr, r->in.handle);
7941 : }
7942 104 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7943 104 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
7944 104 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
7945 104 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
7946 104 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7947 104 : NDR_PULL_ALLOC(ndr, r->in.resume_handle);
7948 : }
7949 104 : _mem_save_resume_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7950 104 : NDR_PULL_SET_MEM_CTX(ndr, r->in.resume_handle, LIBNDR_FLAG_REF_ALLOC);
7951 104 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.resume_handle));
7952 104 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_resume_handle_0, LIBNDR_FLAG_REF_ALLOC);
7953 104 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.max_size));
7954 104 : NDR_PULL_ALLOC(ndr, r->out.resume_handle);
7955 104 : *r->out.resume_handle = *r->in.resume_handle;
7956 104 : NDR_PULL_ALLOC(ndr, r->out.domains);
7957 104 : NDR_ZERO_STRUCTP(r->out.domains);
7958 : }
7959 208 : if (flags & NDR_OUT) {
7960 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
7961 : if (r->in.handle == NULL) {
7962 : NDR_PULL_ALLOC(ndr, r->in.handle);
7963 : NDR_ZERO_STRUCTP(r->in.handle);
7964 : }
7965 : if (r->in.resume_handle == NULL) {
7966 : NDR_PULL_ALLOC(ndr, r->in.resume_handle);
7967 : NDR_ZERO_STRUCTP(r->in.resume_handle);
7968 : }
7969 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
7970 104 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7971 26 : NDR_PULL_ALLOC(ndr, r->out.resume_handle);
7972 : }
7973 104 : _mem_save_resume_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
7974 104 : NDR_PULL_SET_MEM_CTX(ndr, r->out.resume_handle, LIBNDR_FLAG_REF_ALLOC);
7975 104 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.resume_handle));
7976 104 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_resume_handle_0, LIBNDR_FLAG_REF_ALLOC);
7977 104 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
7978 26 : NDR_PULL_ALLOC(ndr, r->out.domains);
7979 : }
7980 104 : _mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
7981 104 : NDR_PULL_SET_MEM_CTX(ndr, r->out.domains, LIBNDR_FLAG_REF_ALLOC);
7982 104 : NDR_CHECK(ndr_pull_lsa_DomainList(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.domains));
7983 104 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, LIBNDR_FLAG_REF_ALLOC);
7984 104 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
7985 : }
7986 200 : return NDR_ERR_SUCCESS;
7987 : }
7988 :
7989 52 : _PUBLIC_ void ndr_print_lsa_EnumTrustDom(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_EnumTrustDom *r)
7990 : {
7991 52 : ndr_print_struct(ndr, name, "lsa_EnumTrustDom");
7992 52 : if (r == NULL) { ndr_print_null(ndr); return; }
7993 52 : ndr->depth++;
7994 52 : if (flags & NDR_SET_VALUES) {
7995 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
7996 : }
7997 52 : if (flags & NDR_IN) {
7998 0 : ndr_print_struct(ndr, "in", "lsa_EnumTrustDom");
7999 0 : ndr->depth++;
8000 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
8001 0 : ndr->depth++;
8002 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
8003 0 : ndr->depth--;
8004 0 : ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
8005 0 : ndr->depth++;
8006 0 : ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
8007 0 : ndr->depth--;
8008 0 : ndr_print_uint32(ndr, "max_size", r->in.max_size);
8009 0 : ndr->depth--;
8010 : }
8011 52 : if (flags & NDR_OUT) {
8012 52 : ndr_print_struct(ndr, "out", "lsa_EnumTrustDom");
8013 52 : ndr->depth++;
8014 52 : ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
8015 52 : ndr->depth++;
8016 52 : ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
8017 52 : ndr->depth--;
8018 52 : ndr_print_ptr(ndr, "domains", r->out.domains);
8019 52 : ndr->depth++;
8020 52 : ndr_print_lsa_DomainList(ndr, "domains", r->out.domains);
8021 52 : ndr->depth--;
8022 52 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
8023 52 : ndr->depth--;
8024 : }
8025 52 : ndr->depth--;
8026 : }
8027 :
8028 3833 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_LookupNames(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LookupNames *r)
8029 : {
8030 0 : uint32_t cntr_names_0;
8031 3833 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8032 3833 : if (flags & NDR_IN) {
8033 1938 : if (r->in.handle == NULL) {
8034 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8035 : }
8036 1938 : if (r->in.sids == NULL) {
8037 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8038 : }
8039 1938 : if (r->in.count == NULL) {
8040 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8041 : }
8042 1938 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8043 1938 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.num_names));
8044 1938 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.num_names));
8045 6521 : for (cntr_names_0 = 0; cntr_names_0 < (r->in.num_names); cntr_names_0++) {
8046 4583 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS, &r->in.names[cntr_names_0]));
8047 : }
8048 6521 : for (cntr_names_0 = 0; cntr_names_0 < (r->in.num_names); cntr_names_0++) {
8049 4583 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_BUFFERS, &r->in.names[cntr_names_0]));
8050 : }
8051 1938 : NDR_CHECK(ndr_push_lsa_TransSidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
8052 1938 : NDR_CHECK(ndr_push_lsa_LookupNamesLevel(ndr, NDR_SCALARS, r->in.level));
8053 1938 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.count));
8054 : }
8055 3833 : if (flags & NDR_OUT) {
8056 1895 : if (r->out.domains == NULL) {
8057 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8058 : }
8059 1895 : if (r->out.sids == NULL) {
8060 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8061 : }
8062 1895 : if (r->out.count == NULL) {
8063 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8064 : }
8065 1895 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.domains));
8066 1895 : if (*r->out.domains) {
8067 1895 : NDR_CHECK(ndr_push_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
8068 : }
8069 1895 : NDR_CHECK(ndr_push_lsa_TransSidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
8070 1895 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.count));
8071 1895 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
8072 : }
8073 3833 : return NDR_ERR_SUCCESS;
8074 : }
8075 :
8076 3778 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_LookupNames(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LookupNames *r)
8077 : {
8078 3778 : uint32_t size_names_0 = 0;
8079 4 : uint32_t cntr_names_0;
8080 4 : uint32_t _ptr_domains;
8081 3778 : TALLOC_CTX *_mem_save_handle_0 = NULL;
8082 3778 : TALLOC_CTX *_mem_save_names_0 = NULL;
8083 3778 : TALLOC_CTX *_mem_save_domains_0 = NULL;
8084 3778 : TALLOC_CTX *_mem_save_domains_1 = NULL;
8085 3778 : TALLOC_CTX *_mem_save_sids_0 = NULL;
8086 3778 : TALLOC_CTX *_mem_save_count_0 = NULL;
8087 3778 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8088 3778 : if (flags & NDR_IN) {
8089 1838 : NDR_ZERO_STRUCT(r->out);
8090 :
8091 1838 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8092 1838 : NDR_PULL_ALLOC(ndr, r->in.handle);
8093 : }
8094 1838 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
8095 1838 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
8096 1838 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8097 1838 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
8098 1838 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.num_names));
8099 1838 : if (r->in.num_names > 1000) {
8100 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.num_names), (uint32_t)(0), (uint32_t)(1000));
8101 : }
8102 1838 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.names));
8103 1838 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.names, &size_names_0));
8104 1838 : NDR_PULL_ALLOC_N(ndr, r->in.names, size_names_0);
8105 1838 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
8106 1838 : NDR_PULL_SET_MEM_CTX(ndr, r->in.names, 0);
8107 6311 : for (cntr_names_0 = 0; cntr_names_0 < (size_names_0); cntr_names_0++) {
8108 4473 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS, &r->in.names[cntr_names_0]));
8109 : }
8110 6311 : for (cntr_names_0 = 0; cntr_names_0 < (size_names_0); cntr_names_0++) {
8111 4473 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_BUFFERS, &r->in.names[cntr_names_0]));
8112 : }
8113 1838 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, 0);
8114 1838 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8115 1838 : NDR_PULL_ALLOC(ndr, r->in.sids);
8116 : }
8117 1838 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
8118 1838 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sids, LIBNDR_FLAG_REF_ALLOC);
8119 1838 : NDR_CHECK(ndr_pull_lsa_TransSidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
8120 1838 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
8121 1838 : NDR_CHECK(ndr_pull_lsa_LookupNamesLevel(ndr, NDR_SCALARS, &r->in.level));
8122 1838 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8123 1838 : NDR_PULL_ALLOC(ndr, r->in.count);
8124 : }
8125 1838 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
8126 1838 : NDR_PULL_SET_MEM_CTX(ndr, r->in.count, LIBNDR_FLAG_REF_ALLOC);
8127 1838 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.count));
8128 1838 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
8129 1838 : NDR_PULL_ALLOC(ndr, r->out.domains);
8130 1838 : NDR_ZERO_STRUCTP(r->out.domains);
8131 1838 : NDR_PULL_ALLOC(ndr, r->out.sids);
8132 1838 : *r->out.sids = *r->in.sids;
8133 1838 : NDR_PULL_ALLOC(ndr, r->out.count);
8134 1838 : *r->out.count = *r->in.count;
8135 1838 : if (r->in.names) {
8136 1838 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.names, r->in.num_names));
8137 : }
8138 6311 : for (cntr_names_0 = 0; cntr_names_0 < (size_names_0); cntr_names_0++) {
8139 200 : }
8140 : }
8141 3778 : if (flags & NDR_OUT) {
8142 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8143 : if (r->in.handle == NULL) {
8144 : NDR_PULL_ALLOC(ndr, r->in.handle);
8145 : NDR_ZERO_STRUCTP(r->in.handle);
8146 : }
8147 : if (r->in.sids == NULL) {
8148 : NDR_PULL_ALLOC(ndr, r->in.sids);
8149 : NDR_ZERO_STRUCTP(r->in.sids);
8150 : }
8151 : if (r->in.count == NULL) {
8152 : NDR_PULL_ALLOC(ndr, r->in.count);
8153 : NDR_ZERO_STRUCTP(r->in.count);
8154 : }
8155 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8156 1940 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8157 1726 : NDR_PULL_ALLOC(ndr, r->out.domains);
8158 : }
8159 1940 : _mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
8160 1940 : NDR_PULL_SET_MEM_CTX(ndr, r->out.domains, LIBNDR_FLAG_REF_ALLOC);
8161 1940 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_domains));
8162 1940 : if (_ptr_domains) {
8163 1940 : NDR_PULL_ALLOC(ndr, *r->out.domains);
8164 : } else {
8165 0 : *r->out.domains = NULL;
8166 : }
8167 1940 : if (*r->out.domains) {
8168 1940 : _mem_save_domains_1 = NDR_PULL_GET_MEM_CTX(ndr);
8169 1940 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.domains, 0);
8170 1940 : NDR_CHECK(ndr_pull_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
8171 1940 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_1, 0);
8172 : }
8173 1940 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, LIBNDR_FLAG_REF_ALLOC);
8174 1940 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8175 1726 : NDR_PULL_ALLOC(ndr, r->out.sids);
8176 : }
8177 1940 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
8178 1940 : NDR_PULL_SET_MEM_CTX(ndr, r->out.sids, LIBNDR_FLAG_REF_ALLOC);
8179 1940 : NDR_CHECK(ndr_pull_lsa_TransSidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
8180 1940 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
8181 1940 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8182 1726 : NDR_PULL_ALLOC(ndr, r->out.count);
8183 : }
8184 1940 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
8185 1940 : NDR_PULL_SET_MEM_CTX(ndr, r->out.count, LIBNDR_FLAG_REF_ALLOC);
8186 1940 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.count));
8187 1940 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
8188 1940 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
8189 : }
8190 3774 : return NDR_ERR_SUCCESS;
8191 : }
8192 :
8193 122 : _PUBLIC_ void ndr_print_lsa_LookupNames(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LookupNames *r)
8194 : {
8195 4 : uint32_t cntr_names_0;
8196 122 : ndr_print_struct(ndr, name, "lsa_LookupNames");
8197 122 : if (r == NULL) { ndr_print_null(ndr); return; }
8198 122 : ndr->depth++;
8199 122 : if (flags & NDR_SET_VALUES) {
8200 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8201 : }
8202 122 : if (flags & NDR_IN) {
8203 2 : ndr_print_struct(ndr, "in", "lsa_LookupNames");
8204 2 : ndr->depth++;
8205 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
8206 2 : ndr->depth++;
8207 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
8208 2 : ndr->depth--;
8209 2 : ndr_print_uint32(ndr, "num_names", r->in.num_names);
8210 2 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "names", (uint32_t)(r->in.num_names));
8211 2 : ndr->depth++;
8212 202 : for (cntr_names_0 = 0; cntr_names_0 < (r->in.num_names); cntr_names_0++) {
8213 200 : ndr_print_lsa_String(ndr, "names", &r->in.names[cntr_names_0]);
8214 : }
8215 2 : ndr->depth--;
8216 2 : ndr_print_ptr(ndr, "sids", r->in.sids);
8217 2 : ndr->depth++;
8218 2 : ndr_print_lsa_TransSidArray(ndr, "sids", r->in.sids);
8219 2 : ndr->depth--;
8220 2 : ndr_print_lsa_LookupNamesLevel(ndr, "level", r->in.level);
8221 2 : ndr_print_ptr(ndr, "count", r->in.count);
8222 2 : ndr->depth++;
8223 2 : ndr_print_uint32(ndr, "count", *r->in.count);
8224 2 : ndr->depth--;
8225 2 : ndr->depth--;
8226 : }
8227 122 : if (flags & NDR_OUT) {
8228 120 : ndr_print_struct(ndr, "out", "lsa_LookupNames");
8229 120 : ndr->depth++;
8230 120 : ndr_print_ptr(ndr, "domains", r->out.domains);
8231 120 : ndr->depth++;
8232 120 : ndr_print_ptr(ndr, "domains", *r->out.domains);
8233 120 : ndr->depth++;
8234 120 : if (*r->out.domains) {
8235 120 : ndr_print_lsa_RefDomainList(ndr, "domains", *r->out.domains);
8236 : }
8237 120 : ndr->depth--;
8238 120 : ndr->depth--;
8239 120 : ndr_print_ptr(ndr, "sids", r->out.sids);
8240 120 : ndr->depth++;
8241 120 : ndr_print_lsa_TransSidArray(ndr, "sids", r->out.sids);
8242 120 : ndr->depth--;
8243 120 : ndr_print_ptr(ndr, "count", r->out.count);
8244 120 : ndr->depth++;
8245 120 : ndr_print_uint32(ndr, "count", *r->out.count);
8246 120 : ndr->depth--;
8247 120 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
8248 120 : ndr->depth--;
8249 : }
8250 122 : ndr->depth--;
8251 : }
8252 :
8253 15170 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_LookupSids(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LookupSids *r)
8254 : {
8255 15170 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8256 15170 : if (flags & NDR_IN) {
8257 8155 : if (r->in.handle == NULL) {
8258 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8259 : }
8260 8155 : if (r->in.sids == NULL) {
8261 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8262 : }
8263 8155 : if (r->in.names == NULL) {
8264 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8265 : }
8266 8155 : if (r->in.count == NULL) {
8267 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8268 : }
8269 8155 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8270 8155 : NDR_CHECK(ndr_push_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
8271 8155 : NDR_CHECK(ndr_push_lsa_TransNameArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.names));
8272 8155 : NDR_CHECK(ndr_push_lsa_LookupNamesLevel(ndr, NDR_SCALARS, r->in.level));
8273 8155 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.count));
8274 : }
8275 15170 : if (flags & NDR_OUT) {
8276 7015 : if (r->out.domains == NULL) {
8277 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8278 : }
8279 7015 : if (r->out.names == NULL) {
8280 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8281 : }
8282 7015 : if (r->out.count == NULL) {
8283 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8284 : }
8285 7015 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.domains));
8286 7015 : if (*r->out.domains) {
8287 7015 : NDR_CHECK(ndr_push_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
8288 : }
8289 7015 : NDR_CHECK(ndr_push_lsa_TransNameArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.names));
8290 7015 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.count));
8291 7015 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
8292 : }
8293 15170 : return NDR_ERR_SUCCESS;
8294 : }
8295 :
8296 14968 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_LookupSids(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LookupSids *r)
8297 : {
8298 4 : uint32_t _ptr_domains;
8299 14968 : TALLOC_CTX *_mem_save_handle_0 = NULL;
8300 14968 : TALLOC_CTX *_mem_save_sids_0 = NULL;
8301 14968 : TALLOC_CTX *_mem_save_domains_0 = NULL;
8302 14968 : TALLOC_CTX *_mem_save_domains_1 = NULL;
8303 14968 : TALLOC_CTX *_mem_save_names_0 = NULL;
8304 14968 : TALLOC_CTX *_mem_save_count_0 = NULL;
8305 14968 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8306 14968 : if (flags & NDR_IN) {
8307 6811 : NDR_ZERO_STRUCT(r->out);
8308 :
8309 6811 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8310 6811 : NDR_PULL_ALLOC(ndr, r->in.handle);
8311 : }
8312 6811 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
8313 6811 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
8314 6811 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8315 6811 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
8316 6811 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8317 6811 : NDR_PULL_ALLOC(ndr, r->in.sids);
8318 : }
8319 6811 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
8320 6811 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sids, LIBNDR_FLAG_REF_ALLOC);
8321 6811 : NDR_CHECK(ndr_pull_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
8322 6811 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
8323 6811 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8324 6811 : NDR_PULL_ALLOC(ndr, r->in.names);
8325 : }
8326 6811 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
8327 6811 : NDR_PULL_SET_MEM_CTX(ndr, r->in.names, LIBNDR_FLAG_REF_ALLOC);
8328 6811 : NDR_CHECK(ndr_pull_lsa_TransNameArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.names));
8329 6811 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, LIBNDR_FLAG_REF_ALLOC);
8330 6811 : NDR_CHECK(ndr_pull_lsa_LookupNamesLevel(ndr, NDR_SCALARS, &r->in.level));
8331 6811 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8332 6811 : NDR_PULL_ALLOC(ndr, r->in.count);
8333 : }
8334 6811 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
8335 6811 : NDR_PULL_SET_MEM_CTX(ndr, r->in.count, LIBNDR_FLAG_REF_ALLOC);
8336 6811 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.count));
8337 6811 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
8338 6811 : NDR_PULL_ALLOC(ndr, r->out.domains);
8339 6811 : NDR_ZERO_STRUCTP(r->out.domains);
8340 6811 : NDR_PULL_ALLOC(ndr, r->out.names);
8341 6811 : *r->out.names = *r->in.names;
8342 6811 : NDR_PULL_ALLOC(ndr, r->out.count);
8343 6811 : *r->out.count = *r->in.count;
8344 : }
8345 14968 : if (flags & NDR_OUT) {
8346 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8347 : if (r->in.handle == NULL) {
8348 : NDR_PULL_ALLOC(ndr, r->in.handle);
8349 : NDR_ZERO_STRUCTP(r->in.handle);
8350 : }
8351 : if (r->in.sids == NULL) {
8352 : NDR_PULL_ALLOC(ndr, r->in.sids);
8353 : NDR_ZERO_STRUCTP(r->in.sids);
8354 : }
8355 : if (r->in.names == NULL) {
8356 : NDR_PULL_ALLOC(ndr, r->in.names);
8357 : NDR_ZERO_STRUCTP(r->in.names);
8358 : }
8359 : if (r->in.count == NULL) {
8360 : NDR_PULL_ALLOC(ndr, r->in.count);
8361 : NDR_ZERO_STRUCTP(r->in.count);
8362 : }
8363 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8364 8157 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8365 7283 : NDR_PULL_ALLOC(ndr, r->out.domains);
8366 : }
8367 8157 : _mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
8368 8157 : NDR_PULL_SET_MEM_CTX(ndr, r->out.domains, LIBNDR_FLAG_REF_ALLOC);
8369 8157 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_domains));
8370 8157 : if (_ptr_domains) {
8371 8157 : NDR_PULL_ALLOC(ndr, *r->out.domains);
8372 : } else {
8373 0 : *r->out.domains = NULL;
8374 : }
8375 8157 : if (*r->out.domains) {
8376 8157 : _mem_save_domains_1 = NDR_PULL_GET_MEM_CTX(ndr);
8377 8157 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.domains, 0);
8378 8157 : NDR_CHECK(ndr_pull_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
8379 8157 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_1, 0);
8380 : }
8381 8157 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, LIBNDR_FLAG_REF_ALLOC);
8382 8157 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8383 7283 : NDR_PULL_ALLOC(ndr, r->out.names);
8384 : }
8385 8157 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
8386 8157 : NDR_PULL_SET_MEM_CTX(ndr, r->out.names, LIBNDR_FLAG_REF_ALLOC);
8387 8157 : NDR_CHECK(ndr_pull_lsa_TransNameArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.names));
8388 8157 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, LIBNDR_FLAG_REF_ALLOC);
8389 8157 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8390 7283 : NDR_PULL_ALLOC(ndr, r->out.count);
8391 : }
8392 8157 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
8393 8157 : NDR_PULL_SET_MEM_CTX(ndr, r->out.count, LIBNDR_FLAG_REF_ALLOC);
8394 8157 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.count));
8395 8157 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
8396 8157 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
8397 : }
8398 14964 : return NDR_ERR_SUCCESS;
8399 : }
8400 :
8401 416 : _PUBLIC_ void ndr_print_lsa_LookupSids(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LookupSids *r)
8402 : {
8403 416 : ndr_print_struct(ndr, name, "lsa_LookupSids");
8404 416 : if (r == NULL) { ndr_print_null(ndr); return; }
8405 416 : ndr->depth++;
8406 416 : if (flags & NDR_SET_VALUES) {
8407 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8408 : }
8409 416 : if (flags & NDR_IN) {
8410 2 : ndr_print_struct(ndr, "in", "lsa_LookupSids");
8411 2 : ndr->depth++;
8412 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
8413 2 : ndr->depth++;
8414 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
8415 2 : ndr->depth--;
8416 2 : ndr_print_ptr(ndr, "sids", r->in.sids);
8417 2 : ndr->depth++;
8418 2 : ndr_print_lsa_SidArray(ndr, "sids", r->in.sids);
8419 2 : ndr->depth--;
8420 2 : ndr_print_ptr(ndr, "names", r->in.names);
8421 2 : ndr->depth++;
8422 2 : ndr_print_lsa_TransNameArray(ndr, "names", r->in.names);
8423 2 : ndr->depth--;
8424 2 : ndr_print_lsa_LookupNamesLevel(ndr, "level", r->in.level);
8425 2 : ndr_print_ptr(ndr, "count", r->in.count);
8426 2 : ndr->depth++;
8427 2 : ndr_print_uint32(ndr, "count", *r->in.count);
8428 2 : ndr->depth--;
8429 2 : ndr->depth--;
8430 : }
8431 416 : if (flags & NDR_OUT) {
8432 414 : ndr_print_struct(ndr, "out", "lsa_LookupSids");
8433 414 : ndr->depth++;
8434 414 : ndr_print_ptr(ndr, "domains", r->out.domains);
8435 414 : ndr->depth++;
8436 414 : ndr_print_ptr(ndr, "domains", *r->out.domains);
8437 414 : ndr->depth++;
8438 414 : if (*r->out.domains) {
8439 414 : ndr_print_lsa_RefDomainList(ndr, "domains", *r->out.domains);
8440 : }
8441 414 : ndr->depth--;
8442 414 : ndr->depth--;
8443 414 : ndr_print_ptr(ndr, "names", r->out.names);
8444 414 : ndr->depth++;
8445 414 : ndr_print_lsa_TransNameArray(ndr, "names", r->out.names);
8446 414 : ndr->depth--;
8447 414 : ndr_print_ptr(ndr, "count", r->out.count);
8448 414 : ndr->depth++;
8449 414 : ndr_print_uint32(ndr, "count", *r->out.count);
8450 414 : ndr->depth--;
8451 414 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
8452 414 : ndr->depth--;
8453 : }
8454 416 : ndr->depth--;
8455 : }
8456 :
8457 4032 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_CreateSecret(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CreateSecret *r)
8458 : {
8459 4032 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8460 4032 : if (flags & NDR_IN) {
8461 2324 : if (r->in.handle == NULL) {
8462 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8463 : }
8464 2324 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8465 2324 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.name));
8466 2324 : NDR_CHECK(ndr_push_lsa_SecretAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
8467 : }
8468 4032 : if (flags & NDR_OUT) {
8469 1708 : if (r->out.sec_handle == NULL) {
8470 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8471 : }
8472 1708 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.sec_handle));
8473 1708 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
8474 : }
8475 4032 : return NDR_ERR_SUCCESS;
8476 : }
8477 :
8478 4020 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_CreateSecret(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CreateSecret *r)
8479 : {
8480 4020 : TALLOC_CTX *_mem_save_handle_0 = NULL;
8481 4020 : TALLOC_CTX *_mem_save_sec_handle_0 = NULL;
8482 4020 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8483 4020 : if (flags & NDR_IN) {
8484 1694 : NDR_ZERO_STRUCT(r->out);
8485 :
8486 1694 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8487 1694 : NDR_PULL_ALLOC(ndr, r->in.handle);
8488 : }
8489 1694 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
8490 1694 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
8491 1694 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8492 1694 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
8493 1694 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.name));
8494 1694 : NDR_CHECK(ndr_pull_lsa_SecretAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
8495 1694 : NDR_PULL_ALLOC(ndr, r->out.sec_handle);
8496 1694 : NDR_ZERO_STRUCTP(r->out.sec_handle);
8497 : }
8498 4020 : if (flags & NDR_OUT) {
8499 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8500 : if (r->in.handle == NULL) {
8501 : NDR_PULL_ALLOC(ndr, r->in.handle);
8502 : NDR_ZERO_STRUCTP(r->in.handle);
8503 : }
8504 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8505 2326 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8506 20 : NDR_PULL_ALLOC(ndr, r->out.sec_handle);
8507 : }
8508 2326 : _mem_save_sec_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
8509 2326 : NDR_PULL_SET_MEM_CTX(ndr, r->out.sec_handle, LIBNDR_FLAG_REF_ALLOC);
8510 2326 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.sec_handle));
8511 2326 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sec_handle_0, LIBNDR_FLAG_REF_ALLOC);
8512 2326 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
8513 : }
8514 4016 : return NDR_ERR_SUCCESS;
8515 : }
8516 :
8517 36 : _PUBLIC_ void ndr_print_lsa_CreateSecret(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CreateSecret *r)
8518 : {
8519 36 : ndr_print_struct(ndr, name, "lsa_CreateSecret");
8520 36 : if (r == NULL) { ndr_print_null(ndr); return; }
8521 36 : ndr->depth++;
8522 36 : if (flags & NDR_SET_VALUES) {
8523 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8524 : }
8525 36 : if (flags & NDR_IN) {
8526 2 : ndr_print_struct(ndr, "in", "lsa_CreateSecret");
8527 2 : ndr->depth++;
8528 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
8529 2 : ndr->depth++;
8530 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
8531 2 : ndr->depth--;
8532 2 : ndr_print_lsa_String(ndr, "name", &r->in.name);
8533 2 : ndr_print_lsa_SecretAccessMask(ndr, "access_mask", r->in.access_mask);
8534 2 : ndr->depth--;
8535 : }
8536 36 : if (flags & NDR_OUT) {
8537 34 : ndr_print_struct(ndr, "out", "lsa_CreateSecret");
8538 34 : ndr->depth++;
8539 34 : ndr_print_ptr(ndr, "sec_handle", r->out.sec_handle);
8540 34 : ndr->depth++;
8541 34 : ndr_print_policy_handle(ndr, "sec_handle", r->out.sec_handle);
8542 34 : ndr->depth--;
8543 34 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
8544 34 : ndr->depth--;
8545 : }
8546 36 : ndr->depth--;
8547 : }
8548 :
8549 86 : static enum ndr_err_code ndr_push_lsa_OpenAccount(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_OpenAccount *r)
8550 : {
8551 86 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8552 86 : if (flags & NDR_IN) {
8553 48 : if (r->in.handle == NULL) {
8554 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8555 : }
8556 48 : if (r->in.sid == NULL) {
8557 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8558 : }
8559 48 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8560 48 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sid));
8561 48 : NDR_CHECK(ndr_push_lsa_AccountAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
8562 : }
8563 86 : if (flags & NDR_OUT) {
8564 38 : if (r->out.acct_handle == NULL) {
8565 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8566 : }
8567 38 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.acct_handle));
8568 38 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
8569 : }
8570 86 : return NDR_ERR_SUCCESS;
8571 : }
8572 :
8573 80 : static enum ndr_err_code ndr_pull_lsa_OpenAccount(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_OpenAccount *r)
8574 : {
8575 80 : TALLOC_CTX *_mem_save_handle_0 = NULL;
8576 80 : TALLOC_CTX *_mem_save_sid_0 = NULL;
8577 80 : TALLOC_CTX *_mem_save_acct_handle_0 = NULL;
8578 80 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8579 80 : if (flags & NDR_IN) {
8580 32 : NDR_ZERO_STRUCT(r->out);
8581 :
8582 32 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8583 32 : NDR_PULL_ALLOC(ndr, r->in.handle);
8584 : }
8585 32 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
8586 32 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
8587 32 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8588 32 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
8589 32 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8590 32 : NDR_PULL_ALLOC(ndr, r->in.sid);
8591 : }
8592 32 : _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
8593 32 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sid, LIBNDR_FLAG_REF_ALLOC);
8594 32 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sid));
8595 32 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, LIBNDR_FLAG_REF_ALLOC);
8596 32 : NDR_CHECK(ndr_pull_lsa_AccountAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
8597 32 : NDR_PULL_ALLOC(ndr, r->out.acct_handle);
8598 32 : NDR_ZERO_STRUCTP(r->out.acct_handle);
8599 : }
8600 80 : if (flags & NDR_OUT) {
8601 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8602 : if (r->in.handle == NULL) {
8603 : NDR_PULL_ALLOC(ndr, r->in.handle);
8604 : NDR_ZERO_STRUCTP(r->in.handle);
8605 : }
8606 : if (r->in.sid == NULL) {
8607 : NDR_PULL_ALLOC(ndr, r->in.sid);
8608 : NDR_ZERO_STRUCTP(r->in.sid);
8609 : }
8610 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8611 48 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8612 6 : NDR_PULL_ALLOC(ndr, r->out.acct_handle);
8613 : }
8614 48 : _mem_save_acct_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
8615 48 : NDR_PULL_SET_MEM_CTX(ndr, r->out.acct_handle, LIBNDR_FLAG_REF_ALLOC);
8616 48 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.acct_handle));
8617 48 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_acct_handle_0, LIBNDR_FLAG_REF_ALLOC);
8618 48 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
8619 : }
8620 80 : return NDR_ERR_SUCCESS;
8621 : }
8622 :
8623 12 : _PUBLIC_ void ndr_print_lsa_OpenAccount(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_OpenAccount *r)
8624 : {
8625 12 : ndr_print_struct(ndr, name, "lsa_OpenAccount");
8626 12 : if (r == NULL) { ndr_print_null(ndr); return; }
8627 12 : ndr->depth++;
8628 12 : if (flags & NDR_SET_VALUES) {
8629 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8630 : }
8631 12 : if (flags & NDR_IN) {
8632 0 : ndr_print_struct(ndr, "in", "lsa_OpenAccount");
8633 0 : ndr->depth++;
8634 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
8635 0 : ndr->depth++;
8636 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
8637 0 : ndr->depth--;
8638 0 : ndr_print_ptr(ndr, "sid", r->in.sid);
8639 0 : ndr->depth++;
8640 0 : ndr_print_dom_sid2(ndr, "sid", r->in.sid);
8641 0 : ndr->depth--;
8642 0 : ndr_print_lsa_AccountAccessMask(ndr, "access_mask", r->in.access_mask);
8643 0 : ndr->depth--;
8644 : }
8645 12 : if (flags & NDR_OUT) {
8646 12 : ndr_print_struct(ndr, "out", "lsa_OpenAccount");
8647 12 : ndr->depth++;
8648 12 : ndr_print_ptr(ndr, "acct_handle", r->out.acct_handle);
8649 12 : ndr->depth++;
8650 12 : ndr_print_policy_handle(ndr, "acct_handle", r->out.acct_handle);
8651 12 : ndr->depth--;
8652 12 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
8653 12 : ndr->depth--;
8654 : }
8655 12 : ndr->depth--;
8656 : }
8657 :
8658 66 : static enum ndr_err_code ndr_push_lsa_EnumPrivsAccount(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_EnumPrivsAccount *r)
8659 : {
8660 66 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8661 66 : if (flags & NDR_IN) {
8662 36 : if (r->in.handle == NULL) {
8663 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8664 : }
8665 36 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8666 : }
8667 66 : if (flags & NDR_OUT) {
8668 30 : if (r->out.privs == NULL) {
8669 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8670 : }
8671 30 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.privs));
8672 30 : if (*r->out.privs) {
8673 30 : NDR_CHECK(ndr_push_lsa_PrivilegeSet(ndr, NDR_SCALARS, *r->out.privs));
8674 : }
8675 30 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
8676 : }
8677 66 : return NDR_ERR_SUCCESS;
8678 : }
8679 :
8680 60 : static enum ndr_err_code ndr_pull_lsa_EnumPrivsAccount(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_EnumPrivsAccount *r)
8681 : {
8682 0 : uint32_t _ptr_privs;
8683 60 : TALLOC_CTX *_mem_save_handle_0 = NULL;
8684 60 : TALLOC_CTX *_mem_save_privs_0 = NULL;
8685 60 : TALLOC_CTX *_mem_save_privs_1 = NULL;
8686 60 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8687 60 : if (flags & NDR_IN) {
8688 24 : NDR_ZERO_STRUCT(r->out);
8689 :
8690 24 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8691 24 : NDR_PULL_ALLOC(ndr, r->in.handle);
8692 : }
8693 24 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
8694 24 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
8695 24 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8696 24 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
8697 24 : NDR_PULL_ALLOC(ndr, r->out.privs);
8698 24 : NDR_ZERO_STRUCTP(r->out.privs);
8699 : }
8700 60 : if (flags & NDR_OUT) {
8701 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8702 : if (r->in.handle == NULL) {
8703 : NDR_PULL_ALLOC(ndr, r->in.handle);
8704 : NDR_ZERO_STRUCTP(r->in.handle);
8705 : }
8706 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8707 36 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8708 6 : NDR_PULL_ALLOC(ndr, r->out.privs);
8709 : }
8710 36 : _mem_save_privs_0 = NDR_PULL_GET_MEM_CTX(ndr);
8711 36 : NDR_PULL_SET_MEM_CTX(ndr, r->out.privs, LIBNDR_FLAG_REF_ALLOC);
8712 36 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_privs));
8713 36 : if (_ptr_privs) {
8714 36 : NDR_PULL_ALLOC(ndr, *r->out.privs);
8715 : } else {
8716 0 : *r->out.privs = NULL;
8717 : }
8718 36 : if (*r->out.privs) {
8719 36 : _mem_save_privs_1 = NDR_PULL_GET_MEM_CTX(ndr);
8720 36 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.privs, 0);
8721 36 : NDR_CHECK(ndr_pull_lsa_PrivilegeSet(ndr, NDR_SCALARS, *r->out.privs));
8722 36 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_privs_1, 0);
8723 : }
8724 36 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_privs_0, LIBNDR_FLAG_REF_ALLOC);
8725 36 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
8726 : }
8727 60 : return NDR_ERR_SUCCESS;
8728 : }
8729 :
8730 12 : _PUBLIC_ void ndr_print_lsa_EnumPrivsAccount(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_EnumPrivsAccount *r)
8731 : {
8732 12 : ndr_print_struct(ndr, name, "lsa_EnumPrivsAccount");
8733 12 : if (r == NULL) { ndr_print_null(ndr); return; }
8734 12 : ndr->depth++;
8735 12 : if (flags & NDR_SET_VALUES) {
8736 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8737 : }
8738 12 : if (flags & NDR_IN) {
8739 0 : ndr_print_struct(ndr, "in", "lsa_EnumPrivsAccount");
8740 0 : ndr->depth++;
8741 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
8742 0 : ndr->depth++;
8743 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
8744 0 : ndr->depth--;
8745 0 : ndr->depth--;
8746 : }
8747 12 : if (flags & NDR_OUT) {
8748 12 : ndr_print_struct(ndr, "out", "lsa_EnumPrivsAccount");
8749 12 : ndr->depth++;
8750 12 : ndr_print_ptr(ndr, "privs", r->out.privs);
8751 12 : ndr->depth++;
8752 12 : ndr_print_ptr(ndr, "privs", *r->out.privs);
8753 12 : ndr->depth++;
8754 12 : if (*r->out.privs) {
8755 12 : ndr_print_lsa_PrivilegeSet(ndr, "privs", *r->out.privs);
8756 : }
8757 12 : ndr->depth--;
8758 12 : ndr->depth--;
8759 12 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
8760 12 : ndr->depth--;
8761 : }
8762 12 : ndr->depth--;
8763 : }
8764 :
8765 47 : static enum ndr_err_code ndr_push_lsa_AddPrivilegesToAccount(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_AddPrivilegesToAccount *r)
8766 : {
8767 47 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8768 47 : if (flags & NDR_IN) {
8769 22 : if (r->in.handle == NULL) {
8770 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8771 : }
8772 22 : if (r->in.privs == NULL) {
8773 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8774 : }
8775 22 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8776 22 : NDR_CHECK(ndr_push_lsa_PrivilegeSet(ndr, NDR_SCALARS, r->in.privs));
8777 : }
8778 47 : if (flags & NDR_OUT) {
8779 25 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
8780 : }
8781 47 : return NDR_ERR_SUCCESS;
8782 : }
8783 :
8784 42 : static enum ndr_err_code ndr_pull_lsa_AddPrivilegesToAccount(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_AddPrivilegesToAccount *r)
8785 : {
8786 42 : TALLOC_CTX *_mem_save_handle_0 = NULL;
8787 42 : TALLOC_CTX *_mem_save_privs_0 = NULL;
8788 42 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8789 42 : if (flags & NDR_IN) {
8790 20 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8791 20 : NDR_PULL_ALLOC(ndr, r->in.handle);
8792 : }
8793 20 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
8794 20 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
8795 20 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8796 20 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
8797 20 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8798 20 : NDR_PULL_ALLOC(ndr, r->in.privs);
8799 : }
8800 20 : _mem_save_privs_0 = NDR_PULL_GET_MEM_CTX(ndr);
8801 20 : NDR_PULL_SET_MEM_CTX(ndr, r->in.privs, LIBNDR_FLAG_REF_ALLOC);
8802 20 : NDR_CHECK(ndr_pull_lsa_PrivilegeSet(ndr, NDR_SCALARS, r->in.privs));
8803 20 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_privs_0, LIBNDR_FLAG_REF_ALLOC);
8804 : }
8805 42 : if (flags & NDR_OUT) {
8806 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8807 : if (r->in.handle == NULL) {
8808 : NDR_PULL_ALLOC(ndr, r->in.handle);
8809 : NDR_ZERO_STRUCTP(r->in.handle);
8810 : }
8811 : if (r->in.privs == NULL) {
8812 : NDR_PULL_ALLOC(ndr, r->in.privs);
8813 : NDR_ZERO_STRUCTP(r->in.privs);
8814 : }
8815 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8816 22 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
8817 : }
8818 42 : return NDR_ERR_SUCCESS;
8819 : }
8820 :
8821 10 : _PUBLIC_ void ndr_print_lsa_AddPrivilegesToAccount(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_AddPrivilegesToAccount *r)
8822 : {
8823 10 : ndr_print_struct(ndr, name, "lsa_AddPrivilegesToAccount");
8824 10 : if (r == NULL) { ndr_print_null(ndr); return; }
8825 10 : ndr->depth++;
8826 10 : if (flags & NDR_SET_VALUES) {
8827 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8828 : }
8829 10 : if (flags & NDR_IN) {
8830 0 : ndr_print_struct(ndr, "in", "lsa_AddPrivilegesToAccount");
8831 0 : ndr->depth++;
8832 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
8833 0 : ndr->depth++;
8834 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
8835 0 : ndr->depth--;
8836 0 : ndr_print_ptr(ndr, "privs", r->in.privs);
8837 0 : ndr->depth++;
8838 0 : ndr_print_lsa_PrivilegeSet(ndr, "privs", r->in.privs);
8839 0 : ndr->depth--;
8840 0 : ndr->depth--;
8841 : }
8842 10 : if (flags & NDR_OUT) {
8843 10 : ndr_print_struct(ndr, "out", "lsa_AddPrivilegesToAccount");
8844 10 : ndr->depth++;
8845 10 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
8846 10 : ndr->depth--;
8847 : }
8848 10 : ndr->depth--;
8849 : }
8850 :
8851 47 : static enum ndr_err_code ndr_push_lsa_RemovePrivilegesFromAccount(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_RemovePrivilegesFromAccount *r)
8852 : {
8853 47 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8854 47 : if (flags & NDR_IN) {
8855 22 : if (r->in.handle == NULL) {
8856 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
8857 : }
8858 22 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8859 22 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.remove_all));
8860 22 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.privs));
8861 22 : if (r->in.privs) {
8862 22 : NDR_CHECK(ndr_push_lsa_PrivilegeSet(ndr, NDR_SCALARS, r->in.privs));
8863 : }
8864 : }
8865 47 : if (flags & NDR_OUT) {
8866 25 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
8867 : }
8868 47 : return NDR_ERR_SUCCESS;
8869 : }
8870 :
8871 42 : static enum ndr_err_code ndr_pull_lsa_RemovePrivilegesFromAccount(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_RemovePrivilegesFromAccount *r)
8872 : {
8873 0 : uint32_t _ptr_privs;
8874 42 : TALLOC_CTX *_mem_save_handle_0 = NULL;
8875 42 : TALLOC_CTX *_mem_save_privs_0 = NULL;
8876 42 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8877 42 : if (flags & NDR_IN) {
8878 20 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
8879 20 : NDR_PULL_ALLOC(ndr, r->in.handle);
8880 : }
8881 20 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
8882 20 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
8883 20 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
8884 20 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
8885 20 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.remove_all));
8886 20 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_privs));
8887 20 : if (_ptr_privs) {
8888 20 : NDR_PULL_ALLOC(ndr, r->in.privs);
8889 : } else {
8890 0 : r->in.privs = NULL;
8891 : }
8892 20 : if (r->in.privs) {
8893 20 : _mem_save_privs_0 = NDR_PULL_GET_MEM_CTX(ndr);
8894 20 : NDR_PULL_SET_MEM_CTX(ndr, r->in.privs, 0);
8895 20 : NDR_CHECK(ndr_pull_lsa_PrivilegeSet(ndr, NDR_SCALARS, r->in.privs));
8896 20 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_privs_0, 0);
8897 : }
8898 : }
8899 42 : if (flags & NDR_OUT) {
8900 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8901 : if (r->in.handle == NULL) {
8902 : NDR_PULL_ALLOC(ndr, r->in.handle);
8903 : NDR_ZERO_STRUCTP(r->in.handle);
8904 : }
8905 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8906 22 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
8907 : }
8908 42 : return NDR_ERR_SUCCESS;
8909 : }
8910 :
8911 10 : _PUBLIC_ void ndr_print_lsa_RemovePrivilegesFromAccount(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_RemovePrivilegesFromAccount *r)
8912 : {
8913 10 : ndr_print_struct(ndr, name, "lsa_RemovePrivilegesFromAccount");
8914 10 : if (r == NULL) { ndr_print_null(ndr); return; }
8915 10 : ndr->depth++;
8916 10 : if (flags & NDR_SET_VALUES) {
8917 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8918 : }
8919 10 : if (flags & NDR_IN) {
8920 0 : ndr_print_struct(ndr, "in", "lsa_RemovePrivilegesFromAccount");
8921 0 : ndr->depth++;
8922 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
8923 0 : ndr->depth++;
8924 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
8925 0 : ndr->depth--;
8926 0 : ndr_print_uint8(ndr, "remove_all", r->in.remove_all);
8927 0 : ndr_print_ptr(ndr, "privs", r->in.privs);
8928 0 : ndr->depth++;
8929 0 : if (r->in.privs) {
8930 0 : ndr_print_lsa_PrivilegeSet(ndr, "privs", r->in.privs);
8931 : }
8932 0 : ndr->depth--;
8933 0 : ndr->depth--;
8934 : }
8935 10 : if (flags & NDR_OUT) {
8936 10 : ndr_print_struct(ndr, "out", "lsa_RemovePrivilegesFromAccount");
8937 10 : ndr->depth++;
8938 10 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
8939 10 : ndr->depth--;
8940 : }
8941 10 : ndr->depth--;
8942 : }
8943 :
8944 0 : static enum ndr_err_code ndr_push_lsa_GetQuotasForAccount(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_GetQuotasForAccount *r)
8945 : {
8946 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8947 0 : if (flags & NDR_IN) {
8948 0 : }
8949 0 : if (flags & NDR_OUT) {
8950 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
8951 : }
8952 0 : return NDR_ERR_SUCCESS;
8953 : }
8954 :
8955 0 : static enum ndr_err_code ndr_pull_lsa_GetQuotasForAccount(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_GetQuotasForAccount *r)
8956 : {
8957 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
8958 0 : if (flags & NDR_IN) {
8959 0 : }
8960 0 : if (flags & NDR_OUT) {
8961 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
8962 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
8963 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
8964 : }
8965 0 : return NDR_ERR_SUCCESS;
8966 : }
8967 :
8968 0 : _PUBLIC_ void ndr_print_lsa_GetQuotasForAccount(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_GetQuotasForAccount *r)
8969 : {
8970 0 : ndr_print_struct(ndr, name, "lsa_GetQuotasForAccount");
8971 0 : if (r == NULL) { ndr_print_null(ndr); return; }
8972 0 : ndr->depth++;
8973 0 : if (flags & NDR_SET_VALUES) {
8974 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
8975 : }
8976 0 : if (flags & NDR_IN) {
8977 0 : ndr_print_struct(ndr, "in", "lsa_GetQuotasForAccount");
8978 0 : ndr->depth++;
8979 0 : ndr->depth--;
8980 : }
8981 0 : if (flags & NDR_OUT) {
8982 0 : ndr_print_struct(ndr, "out", "lsa_GetQuotasForAccount");
8983 0 : ndr->depth++;
8984 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
8985 0 : ndr->depth--;
8986 : }
8987 0 : ndr->depth--;
8988 : }
8989 :
8990 0 : static enum ndr_err_code ndr_push_lsa_SetQuotasForAccount(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_SetQuotasForAccount *r)
8991 : {
8992 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
8993 0 : if (flags & NDR_IN) {
8994 0 : }
8995 0 : if (flags & NDR_OUT) {
8996 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
8997 : }
8998 0 : return NDR_ERR_SUCCESS;
8999 : }
9000 :
9001 0 : static enum ndr_err_code ndr_pull_lsa_SetQuotasForAccount(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_SetQuotasForAccount *r)
9002 : {
9003 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9004 0 : if (flags & NDR_IN) {
9005 0 : }
9006 0 : if (flags & NDR_OUT) {
9007 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9008 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9009 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
9010 : }
9011 0 : return NDR_ERR_SUCCESS;
9012 : }
9013 :
9014 0 : _PUBLIC_ void ndr_print_lsa_SetQuotasForAccount(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_SetQuotasForAccount *r)
9015 : {
9016 0 : ndr_print_struct(ndr, name, "lsa_SetQuotasForAccount");
9017 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9018 0 : ndr->depth++;
9019 0 : if (flags & NDR_SET_VALUES) {
9020 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9021 : }
9022 0 : if (flags & NDR_IN) {
9023 0 : ndr_print_struct(ndr, "in", "lsa_SetQuotasForAccount");
9024 0 : ndr->depth++;
9025 0 : ndr->depth--;
9026 : }
9027 0 : if (flags & NDR_OUT) {
9028 0 : ndr_print_struct(ndr, "out", "lsa_SetQuotasForAccount");
9029 0 : ndr->depth++;
9030 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
9031 0 : ndr->depth--;
9032 : }
9033 0 : ndr->depth--;
9034 : }
9035 :
9036 86 : static enum ndr_err_code ndr_push_lsa_GetSystemAccessAccount(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_GetSystemAccessAccount *r)
9037 : {
9038 86 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9039 86 : if (flags & NDR_IN) {
9040 48 : if (r->in.handle == NULL) {
9041 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9042 : }
9043 48 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
9044 : }
9045 86 : if (flags & NDR_OUT) {
9046 38 : if (r->out.access_mask == NULL) {
9047 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9048 : }
9049 38 : NDR_CHECK(ndr_push_lsa_AccountAccessMask(ndr, NDR_SCALARS, *r->out.access_mask));
9050 38 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
9051 : }
9052 86 : return NDR_ERR_SUCCESS;
9053 : }
9054 :
9055 80 : static enum ndr_err_code ndr_pull_lsa_GetSystemAccessAccount(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_GetSystemAccessAccount *r)
9056 : {
9057 80 : TALLOC_CTX *_mem_save_handle_0 = NULL;
9058 80 : TALLOC_CTX *_mem_save_access_mask_0 = NULL;
9059 80 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9060 80 : if (flags & NDR_IN) {
9061 32 : NDR_ZERO_STRUCT(r->out);
9062 :
9063 32 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9064 32 : NDR_PULL_ALLOC(ndr, r->in.handle);
9065 : }
9066 32 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
9067 32 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
9068 32 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
9069 32 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
9070 32 : NDR_PULL_ALLOC(ndr, r->out.access_mask);
9071 32 : NDR_ZERO_STRUCTP(r->out.access_mask);
9072 : }
9073 80 : if (flags & NDR_OUT) {
9074 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9075 : if (r->in.handle == NULL) {
9076 : NDR_PULL_ALLOC(ndr, r->in.handle);
9077 : NDR_ZERO_STRUCTP(r->in.handle);
9078 : }
9079 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9080 48 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9081 6 : NDR_PULL_ALLOC(ndr, r->out.access_mask);
9082 : }
9083 48 : _mem_save_access_mask_0 = NDR_PULL_GET_MEM_CTX(ndr);
9084 48 : NDR_PULL_SET_MEM_CTX(ndr, r->out.access_mask, LIBNDR_FLAG_REF_ALLOC);
9085 48 : NDR_CHECK(ndr_pull_lsa_AccountAccessMask(ndr, NDR_SCALARS, r->out.access_mask));
9086 48 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_access_mask_0, LIBNDR_FLAG_REF_ALLOC);
9087 48 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
9088 : }
9089 80 : return NDR_ERR_SUCCESS;
9090 : }
9091 :
9092 12 : _PUBLIC_ void ndr_print_lsa_GetSystemAccessAccount(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_GetSystemAccessAccount *r)
9093 : {
9094 12 : ndr_print_struct(ndr, name, "lsa_GetSystemAccessAccount");
9095 12 : if (r == NULL) { ndr_print_null(ndr); return; }
9096 12 : ndr->depth++;
9097 12 : if (flags & NDR_SET_VALUES) {
9098 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9099 : }
9100 12 : if (flags & NDR_IN) {
9101 0 : ndr_print_struct(ndr, "in", "lsa_GetSystemAccessAccount");
9102 0 : ndr->depth++;
9103 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
9104 0 : ndr->depth++;
9105 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
9106 0 : ndr->depth--;
9107 0 : ndr->depth--;
9108 : }
9109 12 : if (flags & NDR_OUT) {
9110 12 : ndr_print_struct(ndr, "out", "lsa_GetSystemAccessAccount");
9111 12 : ndr->depth++;
9112 12 : ndr_print_ptr(ndr, "access_mask", r->out.access_mask);
9113 12 : ndr->depth++;
9114 12 : ndr_print_lsa_AccountAccessMask(ndr, "access_mask", *r->out.access_mask);
9115 12 : ndr->depth--;
9116 12 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
9117 12 : ndr->depth--;
9118 : }
9119 12 : ndr->depth--;
9120 : }
9121 :
9122 0 : static enum ndr_err_code ndr_push_lsa_SetSystemAccessAccount(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_SetSystemAccessAccount *r)
9123 : {
9124 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9125 0 : if (flags & NDR_IN) {
9126 0 : if (r->in.handle == NULL) {
9127 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9128 : }
9129 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
9130 0 : NDR_CHECK(ndr_push_lsa_AccountAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
9131 : }
9132 0 : if (flags & NDR_OUT) {
9133 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
9134 : }
9135 0 : return NDR_ERR_SUCCESS;
9136 : }
9137 :
9138 0 : static enum ndr_err_code ndr_pull_lsa_SetSystemAccessAccount(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_SetSystemAccessAccount *r)
9139 : {
9140 0 : TALLOC_CTX *_mem_save_handle_0 = NULL;
9141 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9142 0 : if (flags & NDR_IN) {
9143 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9144 0 : NDR_PULL_ALLOC(ndr, r->in.handle);
9145 : }
9146 0 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
9147 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
9148 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
9149 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
9150 0 : NDR_CHECK(ndr_pull_lsa_AccountAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
9151 : }
9152 0 : if (flags & NDR_OUT) {
9153 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9154 : if (r->in.handle == NULL) {
9155 : NDR_PULL_ALLOC(ndr, r->in.handle);
9156 : NDR_ZERO_STRUCTP(r->in.handle);
9157 : }
9158 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9159 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
9160 : }
9161 0 : return NDR_ERR_SUCCESS;
9162 : }
9163 :
9164 0 : _PUBLIC_ void ndr_print_lsa_SetSystemAccessAccount(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_SetSystemAccessAccount *r)
9165 : {
9166 0 : ndr_print_struct(ndr, name, "lsa_SetSystemAccessAccount");
9167 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9168 0 : ndr->depth++;
9169 0 : if (flags & NDR_SET_VALUES) {
9170 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9171 : }
9172 0 : if (flags & NDR_IN) {
9173 0 : ndr_print_struct(ndr, "in", "lsa_SetSystemAccessAccount");
9174 0 : ndr->depth++;
9175 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
9176 0 : ndr->depth++;
9177 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
9178 0 : ndr->depth--;
9179 0 : ndr_print_lsa_AccountAccessMask(ndr, "access_mask", r->in.access_mask);
9180 0 : ndr->depth--;
9181 : }
9182 0 : if (flags & NDR_OUT) {
9183 0 : ndr_print_struct(ndr, "out", "lsa_SetSystemAccessAccount");
9184 0 : ndr->depth++;
9185 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
9186 0 : ndr->depth--;
9187 : }
9188 0 : ndr->depth--;
9189 : }
9190 :
9191 432 : static enum ndr_err_code ndr_push_lsa_OpenTrustedDomain(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_OpenTrustedDomain *r)
9192 : {
9193 432 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9194 432 : if (flags & NDR_IN) {
9195 192 : if (r->in.handle == NULL) {
9196 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9197 : }
9198 192 : if (r->in.sid == NULL) {
9199 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9200 : }
9201 192 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
9202 192 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sid));
9203 192 : NDR_CHECK(ndr_push_lsa_TrustedAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
9204 : }
9205 432 : if (flags & NDR_OUT) {
9206 240 : if (r->out.trustdom_handle == NULL) {
9207 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9208 : }
9209 240 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.trustdom_handle));
9210 240 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
9211 : }
9212 432 : return NDR_ERR_SUCCESS;
9213 : }
9214 :
9215 384 : static enum ndr_err_code ndr_pull_lsa_OpenTrustedDomain(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_OpenTrustedDomain *r)
9216 : {
9217 384 : TALLOC_CTX *_mem_save_handle_0 = NULL;
9218 384 : TALLOC_CTX *_mem_save_sid_0 = NULL;
9219 384 : TALLOC_CTX *_mem_save_trustdom_handle_0 = NULL;
9220 384 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9221 384 : if (flags & NDR_IN) {
9222 192 : NDR_ZERO_STRUCT(r->out);
9223 :
9224 192 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9225 192 : NDR_PULL_ALLOC(ndr, r->in.handle);
9226 : }
9227 192 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
9228 192 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
9229 192 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
9230 192 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
9231 192 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9232 192 : NDR_PULL_ALLOC(ndr, r->in.sid);
9233 : }
9234 192 : _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
9235 192 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sid, LIBNDR_FLAG_REF_ALLOC);
9236 192 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sid));
9237 192 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, LIBNDR_FLAG_REF_ALLOC);
9238 192 : NDR_CHECK(ndr_pull_lsa_TrustedAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
9239 192 : NDR_PULL_ALLOC(ndr, r->out.trustdom_handle);
9240 192 : NDR_ZERO_STRUCTP(r->out.trustdom_handle);
9241 : }
9242 384 : if (flags & NDR_OUT) {
9243 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9244 : if (r->in.handle == NULL) {
9245 : NDR_PULL_ALLOC(ndr, r->in.handle);
9246 : NDR_ZERO_STRUCTP(r->in.handle);
9247 : }
9248 : if (r->in.sid == NULL) {
9249 : NDR_PULL_ALLOC(ndr, r->in.sid);
9250 : NDR_ZERO_STRUCTP(r->in.sid);
9251 : }
9252 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9253 192 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9254 48 : NDR_PULL_ALLOC(ndr, r->out.trustdom_handle);
9255 : }
9256 192 : _mem_save_trustdom_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
9257 192 : NDR_PULL_SET_MEM_CTX(ndr, r->out.trustdom_handle, LIBNDR_FLAG_REF_ALLOC);
9258 192 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.trustdom_handle));
9259 192 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trustdom_handle_0, LIBNDR_FLAG_REF_ALLOC);
9260 192 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
9261 : }
9262 384 : return NDR_ERR_SUCCESS;
9263 : }
9264 :
9265 96 : _PUBLIC_ void ndr_print_lsa_OpenTrustedDomain(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_OpenTrustedDomain *r)
9266 : {
9267 96 : ndr_print_struct(ndr, name, "lsa_OpenTrustedDomain");
9268 96 : if (r == NULL) { ndr_print_null(ndr); return; }
9269 96 : ndr->depth++;
9270 96 : if (flags & NDR_SET_VALUES) {
9271 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9272 : }
9273 96 : if (flags & NDR_IN) {
9274 0 : ndr_print_struct(ndr, "in", "lsa_OpenTrustedDomain");
9275 0 : ndr->depth++;
9276 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
9277 0 : ndr->depth++;
9278 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
9279 0 : ndr->depth--;
9280 0 : ndr_print_ptr(ndr, "sid", r->in.sid);
9281 0 : ndr->depth++;
9282 0 : ndr_print_dom_sid2(ndr, "sid", r->in.sid);
9283 0 : ndr->depth--;
9284 0 : ndr_print_lsa_TrustedAccessMask(ndr, "access_mask", r->in.access_mask);
9285 0 : ndr->depth--;
9286 : }
9287 96 : if (flags & NDR_OUT) {
9288 96 : ndr_print_struct(ndr, "out", "lsa_OpenTrustedDomain");
9289 96 : ndr->depth++;
9290 96 : ndr_print_ptr(ndr, "trustdom_handle", r->out.trustdom_handle);
9291 96 : ndr->depth++;
9292 96 : ndr_print_policy_handle(ndr, "trustdom_handle", r->out.trustdom_handle);
9293 96 : ndr->depth--;
9294 96 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
9295 96 : ndr->depth--;
9296 : }
9297 96 : ndr->depth--;
9298 : }
9299 :
9300 11673 : static enum ndr_err_code ndr_push_lsa_QueryTrustedDomainInfo(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_QueryTrustedDomainInfo *r)
9301 : {
9302 11673 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9303 11673 : if (flags & NDR_IN) {
9304 5188 : if (r->in.trustdom_handle == NULL) {
9305 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9306 : }
9307 5188 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.trustdom_handle));
9308 5188 : NDR_CHECK(ndr_push_lsa_TrustDomInfoEnum(ndr, NDR_SCALARS, r->in.level));
9309 : }
9310 11673 : if (flags & NDR_OUT) {
9311 6485 : if (r->out.info == NULL) {
9312 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9313 : }
9314 6485 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.info));
9315 6485 : if (*r->out.info) {
9316 3125 : NDR_CHECK(ndr_push_set_switch_value(ndr, *r->out.info, r->in.level));
9317 3125 : NDR_CHECK(ndr_push_lsa_TrustedDomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
9318 : }
9319 6485 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
9320 : }
9321 11673 : return NDR_ERR_SUCCESS;
9322 : }
9323 :
9324 10376 : static enum ndr_err_code ndr_pull_lsa_QueryTrustedDomainInfo(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_QueryTrustedDomainInfo *r)
9325 : {
9326 0 : uint32_t _ptr_info;
9327 10376 : TALLOC_CTX *_mem_save_trustdom_handle_0 = NULL;
9328 10376 : TALLOC_CTX *_mem_save_info_0 = NULL;
9329 10376 : TALLOC_CTX *_mem_save_info_1 = NULL;
9330 10376 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9331 10376 : if (flags & NDR_IN) {
9332 5188 : NDR_ZERO_STRUCT(r->out);
9333 :
9334 5188 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9335 5188 : NDR_PULL_ALLOC(ndr, r->in.trustdom_handle);
9336 : }
9337 5188 : _mem_save_trustdom_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
9338 5188 : NDR_PULL_SET_MEM_CTX(ndr, r->in.trustdom_handle, LIBNDR_FLAG_REF_ALLOC);
9339 5188 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.trustdom_handle));
9340 5188 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trustdom_handle_0, LIBNDR_FLAG_REF_ALLOC);
9341 5188 : NDR_CHECK(ndr_pull_lsa_TrustDomInfoEnum(ndr, NDR_SCALARS, &r->in.level));
9342 5188 : NDR_PULL_ALLOC(ndr, r->out.info);
9343 5188 : NDR_ZERO_STRUCTP(r->out.info);
9344 : }
9345 10376 : if (flags & NDR_OUT) {
9346 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9347 : if (r->in.trustdom_handle == NULL) {
9348 : NDR_PULL_ALLOC(ndr, r->in.trustdom_handle);
9349 : NDR_ZERO_STRUCTP(r->in.trustdom_handle);
9350 : }
9351 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9352 5188 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9353 1297 : NDR_PULL_ALLOC(ndr, r->out.info);
9354 : }
9355 5188 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
9356 5188 : NDR_PULL_SET_MEM_CTX(ndr, r->out.info, LIBNDR_FLAG_REF_ALLOC);
9357 5188 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
9358 5188 : if (_ptr_info) {
9359 2500 : NDR_PULL_ALLOC(ndr, *r->out.info);
9360 : } else {
9361 2688 : *r->out.info = NULL;
9362 : }
9363 5188 : if (*r->out.info) {
9364 2500 : _mem_save_info_1 = NDR_PULL_GET_MEM_CTX(ndr);
9365 2500 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.info, 0);
9366 2500 : NDR_CHECK(ndr_pull_set_switch_value(ndr, *r->out.info, r->in.level));
9367 2500 : NDR_CHECK(ndr_pull_lsa_TrustedDomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
9368 2500 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_1, 0);
9369 : }
9370 5188 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
9371 5188 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
9372 : }
9373 10376 : return NDR_ERR_SUCCESS;
9374 : }
9375 :
9376 2594 : _PUBLIC_ void ndr_print_lsa_QueryTrustedDomainInfo(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_QueryTrustedDomainInfo *r)
9377 : {
9378 2594 : ndr_print_struct(ndr, name, "lsa_QueryTrustedDomainInfo");
9379 2594 : if (r == NULL) { ndr_print_null(ndr); return; }
9380 2594 : ndr->depth++;
9381 2594 : if (flags & NDR_SET_VALUES) {
9382 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9383 : }
9384 2594 : if (flags & NDR_IN) {
9385 0 : ndr_print_struct(ndr, "in", "lsa_QueryTrustedDomainInfo");
9386 0 : ndr->depth++;
9387 0 : ndr_print_ptr(ndr, "trustdom_handle", r->in.trustdom_handle);
9388 0 : ndr->depth++;
9389 0 : ndr_print_policy_handle(ndr, "trustdom_handle", r->in.trustdom_handle);
9390 0 : ndr->depth--;
9391 0 : ndr_print_lsa_TrustDomInfoEnum(ndr, "level", r->in.level);
9392 0 : ndr->depth--;
9393 : }
9394 2594 : if (flags & NDR_OUT) {
9395 2594 : ndr_print_struct(ndr, "out", "lsa_QueryTrustedDomainInfo");
9396 2594 : ndr->depth++;
9397 2594 : ndr_print_ptr(ndr, "info", r->out.info);
9398 2594 : ndr->depth++;
9399 2594 : ndr_print_ptr(ndr, "info", *r->out.info);
9400 2594 : ndr->depth++;
9401 2594 : if (*r->out.info) {
9402 1250 : ndr_print_set_switch_value(ndr, *r->out.info, r->in.level);
9403 1250 : ndr_print_lsa_TrustedDomainInfo(ndr, "info", *r->out.info);
9404 : }
9405 2594 : ndr->depth--;
9406 2594 : ndr->depth--;
9407 2594 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
9408 2594 : ndr->depth--;
9409 : }
9410 2594 : ndr->depth--;
9411 : }
9412 :
9413 44 : static enum ndr_err_code ndr_push_lsa_SetInformationTrustedDomain(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_SetInformationTrustedDomain *r)
9414 : {
9415 44 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9416 44 : if (flags & NDR_IN) {
9417 22 : if (r->in.trustdom_handle == NULL) {
9418 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9419 : }
9420 22 : if (r->in.info == NULL) {
9421 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9422 : }
9423 22 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.trustdom_handle));
9424 22 : NDR_CHECK(ndr_push_lsa_TrustDomInfoEnum(ndr, NDR_SCALARS, r->in.level));
9425 22 : NDR_CHECK(ndr_push_set_switch_value(ndr, r->in.info, r->in.level));
9426 22 : NDR_CHECK(ndr_push_lsa_TrustedDomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
9427 : }
9428 44 : if (flags & NDR_OUT) {
9429 22 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
9430 : }
9431 44 : return NDR_ERR_SUCCESS;
9432 : }
9433 :
9434 44 : static enum ndr_err_code ndr_pull_lsa_SetInformationTrustedDomain(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_SetInformationTrustedDomain *r)
9435 : {
9436 44 : TALLOC_CTX *_mem_save_trustdom_handle_0 = NULL;
9437 44 : TALLOC_CTX *_mem_save_info_0 = NULL;
9438 44 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9439 44 : if (flags & NDR_IN) {
9440 22 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9441 22 : NDR_PULL_ALLOC(ndr, r->in.trustdom_handle);
9442 : }
9443 22 : _mem_save_trustdom_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
9444 22 : NDR_PULL_SET_MEM_CTX(ndr, r->in.trustdom_handle, LIBNDR_FLAG_REF_ALLOC);
9445 22 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.trustdom_handle));
9446 22 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trustdom_handle_0, LIBNDR_FLAG_REF_ALLOC);
9447 22 : NDR_CHECK(ndr_pull_lsa_TrustDomInfoEnum(ndr, NDR_SCALARS, &r->in.level));
9448 22 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9449 22 : NDR_PULL_ALLOC(ndr, r->in.info);
9450 : }
9451 22 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
9452 22 : NDR_PULL_SET_MEM_CTX(ndr, r->in.info, LIBNDR_FLAG_REF_ALLOC);
9453 22 : NDR_CHECK(ndr_pull_set_switch_value(ndr, r->in.info, r->in.level));
9454 22 : NDR_CHECK(ndr_pull_lsa_TrustedDomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
9455 22 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
9456 : }
9457 44 : if (flags & NDR_OUT) {
9458 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9459 : if (r->in.trustdom_handle == NULL) {
9460 : NDR_PULL_ALLOC(ndr, r->in.trustdom_handle);
9461 : NDR_ZERO_STRUCTP(r->in.trustdom_handle);
9462 : }
9463 : if (r->in.info == NULL) {
9464 : NDR_PULL_ALLOC(ndr, r->in.info);
9465 : NDR_ZERO_STRUCTP(r->in.info);
9466 : }
9467 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9468 22 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
9469 : }
9470 44 : return NDR_ERR_SUCCESS;
9471 : }
9472 :
9473 0 : _PUBLIC_ void ndr_print_lsa_SetInformationTrustedDomain(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_SetInformationTrustedDomain *r)
9474 : {
9475 0 : ndr_print_struct(ndr, name, "lsa_SetInformationTrustedDomain");
9476 0 : if (r == NULL) { ndr_print_null(ndr); return; }
9477 0 : ndr->depth++;
9478 0 : if (flags & NDR_SET_VALUES) {
9479 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9480 : }
9481 0 : if (flags & NDR_IN) {
9482 0 : ndr_print_struct(ndr, "in", "lsa_SetInformationTrustedDomain");
9483 0 : ndr->depth++;
9484 0 : ndr_print_ptr(ndr, "trustdom_handle", r->in.trustdom_handle);
9485 0 : ndr->depth++;
9486 0 : ndr_print_policy_handle(ndr, "trustdom_handle", r->in.trustdom_handle);
9487 0 : ndr->depth--;
9488 0 : ndr_print_lsa_TrustDomInfoEnum(ndr, "level", r->in.level);
9489 0 : ndr_print_ptr(ndr, "info", r->in.info);
9490 0 : ndr->depth++;
9491 0 : ndr_print_set_switch_value(ndr, r->in.info, r->in.level);
9492 0 : ndr_print_lsa_TrustedDomainInfo(ndr, "info", r->in.info);
9493 0 : ndr->depth--;
9494 0 : ndr->depth--;
9495 : }
9496 0 : if (flags & NDR_OUT) {
9497 0 : ndr_print_struct(ndr, "out", "lsa_SetInformationTrustedDomain");
9498 0 : ndr->depth++;
9499 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
9500 0 : ndr->depth--;
9501 : }
9502 0 : ndr->depth--;
9503 : }
9504 :
9505 148 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_OpenSecret(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_OpenSecret *r)
9506 : {
9507 148 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9508 148 : if (flags & NDR_IN) {
9509 70 : if (r->in.handle == NULL) {
9510 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9511 : }
9512 70 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
9513 70 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.name));
9514 70 : NDR_CHECK(ndr_push_lsa_SecretAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
9515 : }
9516 148 : if (flags & NDR_OUT) {
9517 78 : if (r->out.sec_handle == NULL) {
9518 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9519 : }
9520 78 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.sec_handle));
9521 78 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
9522 : }
9523 148 : return NDR_ERR_SUCCESS;
9524 : }
9525 :
9526 136 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_OpenSecret(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_OpenSecret *r)
9527 : {
9528 136 : TALLOC_CTX *_mem_save_handle_0 = NULL;
9529 136 : TALLOC_CTX *_mem_save_sec_handle_0 = NULL;
9530 136 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9531 136 : if (flags & NDR_IN) {
9532 64 : NDR_ZERO_STRUCT(r->out);
9533 :
9534 64 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9535 64 : NDR_PULL_ALLOC(ndr, r->in.handle);
9536 : }
9537 64 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
9538 64 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
9539 64 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
9540 64 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
9541 64 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.name));
9542 64 : NDR_CHECK(ndr_pull_lsa_SecretAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
9543 64 : NDR_PULL_ALLOC(ndr, r->out.sec_handle);
9544 64 : NDR_ZERO_STRUCTP(r->out.sec_handle);
9545 : }
9546 136 : if (flags & NDR_OUT) {
9547 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9548 : if (r->in.handle == NULL) {
9549 : NDR_PULL_ALLOC(ndr, r->in.handle);
9550 : NDR_ZERO_STRUCTP(r->in.handle);
9551 : }
9552 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9553 72 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9554 19 : NDR_PULL_ALLOC(ndr, r->out.sec_handle);
9555 : }
9556 72 : _mem_save_sec_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
9557 72 : NDR_PULL_SET_MEM_CTX(ndr, r->out.sec_handle, LIBNDR_FLAG_REF_ALLOC);
9558 72 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.sec_handle));
9559 72 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sec_handle_0, LIBNDR_FLAG_REF_ALLOC);
9560 72 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
9561 : }
9562 132 : return NDR_ERR_SUCCESS;
9563 : }
9564 :
9565 36 : _PUBLIC_ void ndr_print_lsa_OpenSecret(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_OpenSecret *r)
9566 : {
9567 36 : ndr_print_struct(ndr, name, "lsa_OpenSecret");
9568 36 : if (r == NULL) { ndr_print_null(ndr); return; }
9569 36 : ndr->depth++;
9570 36 : if (flags & NDR_SET_VALUES) {
9571 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9572 : }
9573 36 : if (flags & NDR_IN) {
9574 2 : ndr_print_struct(ndr, "in", "lsa_OpenSecret");
9575 2 : ndr->depth++;
9576 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
9577 2 : ndr->depth++;
9578 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
9579 2 : ndr->depth--;
9580 2 : ndr_print_lsa_String(ndr, "name", &r->in.name);
9581 2 : ndr_print_lsa_SecretAccessMask(ndr, "access_mask", r->in.access_mask);
9582 2 : ndr->depth--;
9583 : }
9584 36 : if (flags & NDR_OUT) {
9585 34 : ndr_print_struct(ndr, "out", "lsa_OpenSecret");
9586 34 : ndr->depth++;
9587 34 : ndr_print_ptr(ndr, "sec_handle", r->out.sec_handle);
9588 34 : ndr->depth++;
9589 34 : ndr_print_policy_handle(ndr, "sec_handle", r->out.sec_handle);
9590 34 : ndr->depth--;
9591 34 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
9592 34 : ndr->depth--;
9593 : }
9594 36 : ndr->depth--;
9595 : }
9596 :
9597 5696 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_SetSecret(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_SetSecret *r)
9598 : {
9599 5696 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9600 5696 : if (flags & NDR_IN) {
9601 3256 : if (r->in.sec_handle == NULL) {
9602 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9603 : }
9604 3256 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.sec_handle));
9605 3256 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.new_val));
9606 3256 : if (r->in.new_val) {
9607 3226 : NDR_CHECK(ndr_push_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.new_val));
9608 : }
9609 3256 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.old_val));
9610 3256 : if (r->in.old_val) {
9611 30 : NDR_CHECK(ndr_push_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.old_val));
9612 : }
9613 : }
9614 5696 : if (flags & NDR_OUT) {
9615 2440 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
9616 : }
9617 5696 : return NDR_ERR_SUCCESS;
9618 : }
9619 :
9620 5668 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_SetSecret(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_SetSecret *r)
9621 : {
9622 4 : uint32_t _ptr_new_val;
9623 4 : uint32_t _ptr_old_val;
9624 5668 : TALLOC_CTX *_mem_save_sec_handle_0 = NULL;
9625 5668 : TALLOC_CTX *_mem_save_new_val_0 = NULL;
9626 5668 : TALLOC_CTX *_mem_save_old_val_0 = NULL;
9627 5668 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9628 5668 : if (flags & NDR_IN) {
9629 2410 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9630 2410 : NDR_PULL_ALLOC(ndr, r->in.sec_handle);
9631 : }
9632 2410 : _mem_save_sec_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
9633 2410 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sec_handle, LIBNDR_FLAG_REF_ALLOC);
9634 2410 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.sec_handle));
9635 2410 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sec_handle_0, LIBNDR_FLAG_REF_ALLOC);
9636 2410 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_new_val));
9637 2410 : if (_ptr_new_val) {
9638 2384 : NDR_PULL_ALLOC(ndr, r->in.new_val);
9639 : } else {
9640 26 : r->in.new_val = NULL;
9641 : }
9642 2410 : if (r->in.new_val) {
9643 2384 : _mem_save_new_val_0 = NDR_PULL_GET_MEM_CTX(ndr);
9644 2384 : NDR_PULL_SET_MEM_CTX(ndr, r->in.new_val, 0);
9645 2384 : NDR_CHECK(ndr_pull_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.new_val));
9646 2384 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_new_val_0, 0);
9647 : }
9648 2410 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_old_val));
9649 2410 : if (_ptr_old_val) {
9650 26 : NDR_PULL_ALLOC(ndr, r->in.old_val);
9651 : } else {
9652 2384 : r->in.old_val = NULL;
9653 : }
9654 2410 : if (r->in.old_val) {
9655 26 : _mem_save_old_val_0 = NDR_PULL_GET_MEM_CTX(ndr);
9656 26 : NDR_PULL_SET_MEM_CTX(ndr, r->in.old_val, 0);
9657 26 : NDR_CHECK(ndr_pull_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.old_val));
9658 26 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_old_val_0, 0);
9659 : }
9660 : }
9661 5668 : if (flags & NDR_OUT) {
9662 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9663 : if (r->in.sec_handle == NULL) {
9664 : NDR_PULL_ALLOC(ndr, r->in.sec_handle);
9665 : NDR_ZERO_STRUCTP(r->in.sec_handle);
9666 : }
9667 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9668 3258 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
9669 : }
9670 5664 : return NDR_ERR_SUCCESS;
9671 : }
9672 :
9673 68 : _PUBLIC_ void ndr_print_lsa_SetSecret(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_SetSecret *r)
9674 : {
9675 68 : ndr_print_struct(ndr, name, "lsa_SetSecret");
9676 68 : if (r == NULL) { ndr_print_null(ndr); return; }
9677 68 : ndr->depth++;
9678 68 : if (flags & NDR_SET_VALUES) {
9679 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9680 : }
9681 68 : if (flags & NDR_IN) {
9682 2 : ndr_print_struct(ndr, "in", "lsa_SetSecret");
9683 2 : ndr->depth++;
9684 2 : ndr_print_ptr(ndr, "sec_handle", r->in.sec_handle);
9685 2 : ndr->depth++;
9686 2 : ndr_print_policy_handle(ndr, "sec_handle", r->in.sec_handle);
9687 2 : ndr->depth--;
9688 2 : ndr_print_ptr(ndr, "new_val", r->in.new_val);
9689 2 : ndr->depth++;
9690 2 : if (r->in.new_val) {
9691 2 : ndr_print_lsa_DATA_BUF(ndr, "new_val", r->in.new_val);
9692 : }
9693 2 : ndr->depth--;
9694 2 : ndr_print_ptr(ndr, "old_val", r->in.old_val);
9695 2 : ndr->depth++;
9696 2 : if (r->in.old_val) {
9697 0 : ndr_print_lsa_DATA_BUF(ndr, "old_val", r->in.old_val);
9698 : }
9699 2 : ndr->depth--;
9700 2 : ndr->depth--;
9701 : }
9702 68 : if (flags & NDR_OUT) {
9703 66 : ndr_print_struct(ndr, "out", "lsa_SetSecret");
9704 66 : ndr->depth++;
9705 66 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
9706 66 : ndr->depth--;
9707 : }
9708 68 : ndr->depth--;
9709 : }
9710 :
9711 2924 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_QuerySecret(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_QuerySecret *r)
9712 : {
9713 2924 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9714 2924 : if (flags & NDR_IN) {
9715 1664 : if (r->in.sec_handle == NULL) {
9716 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9717 : }
9718 1664 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.sec_handle));
9719 1664 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.new_val));
9720 1664 : if (r->in.new_val) {
9721 1664 : NDR_CHECK(ndr_push_lsa_DATA_BUF_PTR(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.new_val));
9722 : }
9723 1664 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.new_mtime));
9724 1664 : if (r->in.new_mtime) {
9725 1658 : NDR_CHECK(ndr_push_NTTIME_hyper(ndr, NDR_SCALARS, *r->in.new_mtime));
9726 : }
9727 1664 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.old_val));
9728 1664 : if (r->in.old_val) {
9729 60 : NDR_CHECK(ndr_push_lsa_DATA_BUF_PTR(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.old_val));
9730 : }
9731 1664 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.old_mtime));
9732 1664 : if (r->in.old_mtime) {
9733 60 : NDR_CHECK(ndr_push_NTTIME_hyper(ndr, NDR_SCALARS, *r->in.old_mtime));
9734 : }
9735 : }
9736 2924 : if (flags & NDR_OUT) {
9737 1260 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.new_val));
9738 1260 : if (r->out.new_val) {
9739 1260 : NDR_CHECK(ndr_push_lsa_DATA_BUF_PTR(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.new_val));
9740 : }
9741 1260 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.new_mtime));
9742 1260 : if (r->out.new_mtime) {
9743 1254 : NDR_CHECK(ndr_push_NTTIME_hyper(ndr, NDR_SCALARS, *r->out.new_mtime));
9744 : }
9745 1260 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.old_val));
9746 1260 : if (r->out.old_val) {
9747 68 : NDR_CHECK(ndr_push_lsa_DATA_BUF_PTR(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.old_val));
9748 : }
9749 1260 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.old_mtime));
9750 1260 : if (r->out.old_mtime) {
9751 68 : NDR_CHECK(ndr_push_NTTIME_hyper(ndr, NDR_SCALARS, *r->out.old_mtime));
9752 : }
9753 1260 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
9754 : }
9755 2924 : return NDR_ERR_SUCCESS;
9756 : }
9757 :
9758 2904 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_QuerySecret(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_QuerySecret *r)
9759 : {
9760 4 : uint32_t _ptr_new_val;
9761 4 : uint32_t _ptr_new_mtime;
9762 4 : uint32_t _ptr_old_val;
9763 4 : uint32_t _ptr_old_mtime;
9764 2904 : TALLOC_CTX *_mem_save_sec_handle_0 = NULL;
9765 2904 : TALLOC_CTX *_mem_save_new_val_0 = NULL;
9766 2904 : TALLOC_CTX *_mem_save_new_mtime_0 = NULL;
9767 2904 : TALLOC_CTX *_mem_save_old_val_0 = NULL;
9768 2904 : TALLOC_CTX *_mem_save_old_mtime_0 = NULL;
9769 2904 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9770 2904 : if (flags & NDR_IN) {
9771 1238 : NDR_ZERO_STRUCT(r->out);
9772 :
9773 1238 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9774 1238 : NDR_PULL_ALLOC(ndr, r->in.sec_handle);
9775 : }
9776 1238 : _mem_save_sec_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
9777 1238 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sec_handle, LIBNDR_FLAG_REF_ALLOC);
9778 1238 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.sec_handle));
9779 1238 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sec_handle_0, LIBNDR_FLAG_REF_ALLOC);
9780 1238 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_new_val));
9781 1238 : if (_ptr_new_val) {
9782 1238 : NDR_PULL_ALLOC(ndr, r->in.new_val);
9783 : } else {
9784 0 : r->in.new_val = NULL;
9785 : }
9786 1238 : if (r->in.new_val) {
9787 1238 : _mem_save_new_val_0 = NDR_PULL_GET_MEM_CTX(ndr);
9788 1238 : NDR_PULL_SET_MEM_CTX(ndr, r->in.new_val, 0);
9789 1238 : NDR_CHECK(ndr_pull_lsa_DATA_BUF_PTR(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.new_val));
9790 1238 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_new_val_0, 0);
9791 : }
9792 1238 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_new_mtime));
9793 1238 : if (_ptr_new_mtime) {
9794 1232 : NDR_PULL_ALLOC(ndr, r->in.new_mtime);
9795 : } else {
9796 6 : r->in.new_mtime = NULL;
9797 : }
9798 1238 : if (r->in.new_mtime) {
9799 1232 : _mem_save_new_mtime_0 = NDR_PULL_GET_MEM_CTX(ndr);
9800 1232 : NDR_PULL_SET_MEM_CTX(ndr, r->in.new_mtime, 0);
9801 1232 : NDR_CHECK(ndr_pull_NTTIME_hyper(ndr, NDR_SCALARS, r->in.new_mtime));
9802 1232 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_new_mtime_0, 0);
9803 : }
9804 1238 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_old_val));
9805 1238 : if (_ptr_old_val) {
9806 52 : NDR_PULL_ALLOC(ndr, r->in.old_val);
9807 : } else {
9808 1186 : r->in.old_val = NULL;
9809 : }
9810 1238 : if (r->in.old_val) {
9811 52 : _mem_save_old_val_0 = NDR_PULL_GET_MEM_CTX(ndr);
9812 52 : NDR_PULL_SET_MEM_CTX(ndr, r->in.old_val, 0);
9813 52 : NDR_CHECK(ndr_pull_lsa_DATA_BUF_PTR(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.old_val));
9814 52 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_old_val_0, 0);
9815 : }
9816 1238 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_old_mtime));
9817 1238 : if (_ptr_old_mtime) {
9818 52 : NDR_PULL_ALLOC(ndr, r->in.old_mtime);
9819 : } else {
9820 1186 : r->in.old_mtime = NULL;
9821 : }
9822 1238 : if (r->in.old_mtime) {
9823 52 : _mem_save_old_mtime_0 = NDR_PULL_GET_MEM_CTX(ndr);
9824 52 : NDR_PULL_SET_MEM_CTX(ndr, r->in.old_mtime, 0);
9825 52 : NDR_CHECK(ndr_pull_NTTIME_hyper(ndr, NDR_SCALARS, r->in.old_mtime));
9826 52 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_old_mtime_0, 0);
9827 : }
9828 : }
9829 2904 : if (flags & NDR_OUT) {
9830 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
9831 : if (r->in.sec_handle == NULL) {
9832 : NDR_PULL_ALLOC(ndr, r->in.sec_handle);
9833 : NDR_ZERO_STRUCTP(r->in.sec_handle);
9834 : }
9835 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
9836 1666 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_new_val));
9837 1666 : if (_ptr_new_val) {
9838 1666 : NDR_PULL_ALLOC(ndr, r->out.new_val);
9839 : } else {
9840 0 : r->out.new_val = NULL;
9841 : }
9842 1666 : if (r->out.new_val) {
9843 1666 : _mem_save_new_val_0 = NDR_PULL_GET_MEM_CTX(ndr);
9844 1666 : NDR_PULL_SET_MEM_CTX(ndr, r->out.new_val, 0);
9845 1666 : NDR_CHECK(ndr_pull_lsa_DATA_BUF_PTR(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.new_val));
9846 1666 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_new_val_0, 0);
9847 : }
9848 1666 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_new_mtime));
9849 1666 : if (_ptr_new_mtime) {
9850 1660 : NDR_PULL_ALLOC(ndr, r->out.new_mtime);
9851 : } else {
9852 6 : r->out.new_mtime = NULL;
9853 : }
9854 1666 : if (r->out.new_mtime) {
9855 1660 : _mem_save_new_mtime_0 = NDR_PULL_GET_MEM_CTX(ndr);
9856 1660 : NDR_PULL_SET_MEM_CTX(ndr, r->out.new_mtime, 0);
9857 1660 : NDR_CHECK(ndr_pull_NTTIME_hyper(ndr, NDR_SCALARS, r->out.new_mtime));
9858 1660 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_new_mtime_0, 0);
9859 : }
9860 1666 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_old_val));
9861 1666 : if (_ptr_old_val) {
9862 60 : NDR_PULL_ALLOC(ndr, r->out.old_val);
9863 : } else {
9864 1606 : r->out.old_val = NULL;
9865 : }
9866 1666 : if (r->out.old_val) {
9867 60 : _mem_save_old_val_0 = NDR_PULL_GET_MEM_CTX(ndr);
9868 60 : NDR_PULL_SET_MEM_CTX(ndr, r->out.old_val, 0);
9869 60 : NDR_CHECK(ndr_pull_lsa_DATA_BUF_PTR(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.old_val));
9870 60 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_old_val_0, 0);
9871 : }
9872 1666 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_old_mtime));
9873 1666 : if (_ptr_old_mtime) {
9874 60 : NDR_PULL_ALLOC(ndr, r->out.old_mtime);
9875 : } else {
9876 1606 : r->out.old_mtime = NULL;
9877 : }
9878 1666 : if (r->out.old_mtime) {
9879 60 : _mem_save_old_mtime_0 = NDR_PULL_GET_MEM_CTX(ndr);
9880 60 : NDR_PULL_SET_MEM_CTX(ndr, r->out.old_mtime, 0);
9881 60 : NDR_CHECK(ndr_pull_NTTIME_hyper(ndr, NDR_SCALARS, r->out.old_mtime));
9882 60 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_old_mtime_0, 0);
9883 : }
9884 1666 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
9885 : }
9886 2900 : return NDR_ERR_SUCCESS;
9887 : }
9888 :
9889 52 : _PUBLIC_ void ndr_print_lsa_QuerySecret(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_QuerySecret *r)
9890 : {
9891 52 : ndr_print_struct(ndr, name, "lsa_QuerySecret");
9892 52 : if (r == NULL) { ndr_print_null(ndr); return; }
9893 52 : ndr->depth++;
9894 52 : if (flags & NDR_SET_VALUES) {
9895 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
9896 : }
9897 52 : if (flags & NDR_IN) {
9898 2 : ndr_print_struct(ndr, "in", "lsa_QuerySecret");
9899 2 : ndr->depth++;
9900 2 : ndr_print_ptr(ndr, "sec_handle", r->in.sec_handle);
9901 2 : ndr->depth++;
9902 2 : ndr_print_policy_handle(ndr, "sec_handle", r->in.sec_handle);
9903 2 : ndr->depth--;
9904 2 : ndr_print_ptr(ndr, "new_val", r->in.new_val);
9905 2 : ndr->depth++;
9906 2 : if (r->in.new_val) {
9907 2 : ndr_print_lsa_DATA_BUF_PTR(ndr, "new_val", r->in.new_val);
9908 : }
9909 2 : ndr->depth--;
9910 2 : ndr_print_ptr(ndr, "new_mtime", r->in.new_mtime);
9911 2 : ndr->depth++;
9912 2 : if (r->in.new_mtime) {
9913 2 : ndr_print_NTTIME_hyper(ndr, "new_mtime", *r->in.new_mtime);
9914 : }
9915 2 : ndr->depth--;
9916 2 : ndr_print_ptr(ndr, "old_val", r->in.old_val);
9917 2 : ndr->depth++;
9918 2 : if (r->in.old_val) {
9919 0 : ndr_print_lsa_DATA_BUF_PTR(ndr, "old_val", r->in.old_val);
9920 : }
9921 2 : ndr->depth--;
9922 2 : ndr_print_ptr(ndr, "old_mtime", r->in.old_mtime);
9923 2 : ndr->depth++;
9924 2 : if (r->in.old_mtime) {
9925 0 : ndr_print_NTTIME_hyper(ndr, "old_mtime", *r->in.old_mtime);
9926 : }
9927 2 : ndr->depth--;
9928 2 : ndr->depth--;
9929 : }
9930 52 : if (flags & NDR_OUT) {
9931 50 : ndr_print_struct(ndr, "out", "lsa_QuerySecret");
9932 50 : ndr->depth++;
9933 50 : ndr_print_ptr(ndr, "new_val", r->out.new_val);
9934 50 : ndr->depth++;
9935 50 : if (r->out.new_val) {
9936 50 : ndr_print_lsa_DATA_BUF_PTR(ndr, "new_val", r->out.new_val);
9937 : }
9938 50 : ndr->depth--;
9939 50 : ndr_print_ptr(ndr, "new_mtime", r->out.new_mtime);
9940 50 : ndr->depth++;
9941 50 : if (r->out.new_mtime) {
9942 50 : ndr_print_NTTIME_hyper(ndr, "new_mtime", *r->out.new_mtime);
9943 : }
9944 50 : ndr->depth--;
9945 50 : ndr_print_ptr(ndr, "old_val", r->out.old_val);
9946 50 : ndr->depth++;
9947 50 : if (r->out.old_val) {
9948 32 : ndr_print_lsa_DATA_BUF_PTR(ndr, "old_val", r->out.old_val);
9949 : }
9950 50 : ndr->depth--;
9951 50 : ndr_print_ptr(ndr, "old_mtime", r->out.old_mtime);
9952 50 : ndr->depth++;
9953 50 : if (r->out.old_mtime) {
9954 32 : ndr_print_NTTIME_hyper(ndr, "old_mtime", *r->out.old_mtime);
9955 : }
9956 50 : ndr->depth--;
9957 50 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
9958 50 : ndr->depth--;
9959 : }
9960 52 : ndr->depth--;
9961 : }
9962 :
9963 251 : static enum ndr_err_code ndr_push_lsa_LookupPrivValue(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LookupPrivValue *r)
9964 : {
9965 251 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9966 251 : if (flags & NDR_IN) {
9967 122 : if (r->in.handle == NULL) {
9968 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9969 : }
9970 122 : if (r->in.name == NULL) {
9971 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9972 : }
9973 122 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
9974 122 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.name));
9975 : }
9976 251 : if (flags & NDR_OUT) {
9977 129 : if (r->out.luid == NULL) {
9978 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
9979 : }
9980 129 : NDR_CHECK(ndr_push_lsa_LUID(ndr, NDR_SCALARS, r->out.luid));
9981 129 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
9982 : }
9983 251 : return NDR_ERR_SUCCESS;
9984 : }
9985 :
9986 226 : static enum ndr_err_code ndr_pull_lsa_LookupPrivValue(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LookupPrivValue *r)
9987 : {
9988 226 : TALLOC_CTX *_mem_save_handle_0 = NULL;
9989 226 : TALLOC_CTX *_mem_save_name_0 = NULL;
9990 226 : TALLOC_CTX *_mem_save_luid_0 = NULL;
9991 226 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
9992 226 : if (flags & NDR_IN) {
9993 104 : NDR_ZERO_STRUCT(r->out);
9994 :
9995 104 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
9996 104 : NDR_PULL_ALLOC(ndr, r->in.handle);
9997 : }
9998 104 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
9999 104 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
10000 104 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10001 104 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
10002 104 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10003 104 : NDR_PULL_ALLOC(ndr, r->in.name);
10004 : }
10005 104 : _mem_save_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
10006 104 : NDR_PULL_SET_MEM_CTX(ndr, r->in.name, LIBNDR_FLAG_REF_ALLOC);
10007 104 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.name));
10008 104 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_name_0, LIBNDR_FLAG_REF_ALLOC);
10009 104 : NDR_PULL_ALLOC(ndr, r->out.luid);
10010 104 : NDR_ZERO_STRUCTP(r->out.luid);
10011 : }
10012 226 : if (flags & NDR_OUT) {
10013 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10014 : if (r->in.handle == NULL) {
10015 : NDR_PULL_ALLOC(ndr, r->in.handle);
10016 : NDR_ZERO_STRUCTP(r->in.handle);
10017 : }
10018 : if (r->in.name == NULL) {
10019 : NDR_PULL_ALLOC(ndr, r->in.name);
10020 : NDR_ZERO_STRUCTP(r->in.name);
10021 : }
10022 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10023 122 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10024 25 : NDR_PULL_ALLOC(ndr, r->out.luid);
10025 : }
10026 122 : _mem_save_luid_0 = NDR_PULL_GET_MEM_CTX(ndr);
10027 122 : NDR_PULL_SET_MEM_CTX(ndr, r->out.luid, LIBNDR_FLAG_REF_ALLOC);
10028 122 : NDR_CHECK(ndr_pull_lsa_LUID(ndr, NDR_SCALARS, r->out.luid));
10029 122 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_luid_0, LIBNDR_FLAG_REF_ALLOC);
10030 122 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
10031 : }
10032 226 : return NDR_ERR_SUCCESS;
10033 : }
10034 :
10035 50 : _PUBLIC_ void ndr_print_lsa_LookupPrivValue(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LookupPrivValue *r)
10036 : {
10037 50 : ndr_print_struct(ndr, name, "lsa_LookupPrivValue");
10038 50 : if (r == NULL) { ndr_print_null(ndr); return; }
10039 50 : ndr->depth++;
10040 50 : if (flags & NDR_SET_VALUES) {
10041 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10042 : }
10043 50 : if (flags & NDR_IN) {
10044 0 : ndr_print_struct(ndr, "in", "lsa_LookupPrivValue");
10045 0 : ndr->depth++;
10046 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
10047 0 : ndr->depth++;
10048 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
10049 0 : ndr->depth--;
10050 0 : ndr_print_ptr(ndr, "name", r->in.name);
10051 0 : ndr->depth++;
10052 0 : ndr_print_lsa_String(ndr, "name", r->in.name);
10053 0 : ndr->depth--;
10054 0 : ndr->depth--;
10055 : }
10056 50 : if (flags & NDR_OUT) {
10057 50 : ndr_print_struct(ndr, "out", "lsa_LookupPrivValue");
10058 50 : ndr->depth++;
10059 50 : ndr_print_ptr(ndr, "luid", r->out.luid);
10060 50 : ndr->depth++;
10061 50 : ndr_print_lsa_LUID(ndr, "luid", r->out.luid);
10062 50 : ndr->depth--;
10063 50 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
10064 50 : ndr->depth--;
10065 : }
10066 50 : ndr->depth--;
10067 : }
10068 :
10069 338 : static enum ndr_err_code ndr_push_lsa_LookupPrivName(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LookupPrivName *r)
10070 : {
10071 338 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10072 338 : if (flags & NDR_IN) {
10073 178 : if (r->in.handle == NULL) {
10074 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10075 : }
10076 178 : if (r->in.luid == NULL) {
10077 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10078 : }
10079 178 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10080 178 : NDR_CHECK(ndr_push_lsa_LUID(ndr, NDR_SCALARS, r->in.luid));
10081 : }
10082 338 : if (flags & NDR_OUT) {
10083 160 : if (r->out.name == NULL) {
10084 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10085 : }
10086 160 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.name));
10087 160 : if (*r->out.name) {
10088 160 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.name));
10089 : }
10090 160 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
10091 : }
10092 338 : return NDR_ERR_SUCCESS;
10093 : }
10094 :
10095 306 : static enum ndr_err_code ndr_pull_lsa_LookupPrivName(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LookupPrivName *r)
10096 : {
10097 0 : uint32_t _ptr_name;
10098 306 : TALLOC_CTX *_mem_save_handle_0 = NULL;
10099 306 : TALLOC_CTX *_mem_save_luid_0 = NULL;
10100 306 : TALLOC_CTX *_mem_save_name_0 = NULL;
10101 306 : TALLOC_CTX *_mem_save_name_1 = NULL;
10102 306 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10103 306 : if (flags & NDR_IN) {
10104 128 : NDR_ZERO_STRUCT(r->out);
10105 :
10106 128 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10107 128 : NDR_PULL_ALLOC(ndr, r->in.handle);
10108 : }
10109 128 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
10110 128 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
10111 128 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10112 128 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
10113 128 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10114 128 : NDR_PULL_ALLOC(ndr, r->in.luid);
10115 : }
10116 128 : _mem_save_luid_0 = NDR_PULL_GET_MEM_CTX(ndr);
10117 128 : NDR_PULL_SET_MEM_CTX(ndr, r->in.luid, LIBNDR_FLAG_REF_ALLOC);
10118 128 : NDR_CHECK(ndr_pull_lsa_LUID(ndr, NDR_SCALARS, r->in.luid));
10119 128 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_luid_0, LIBNDR_FLAG_REF_ALLOC);
10120 128 : NDR_PULL_ALLOC(ndr, r->out.name);
10121 128 : NDR_ZERO_STRUCTP(r->out.name);
10122 : }
10123 306 : if (flags & NDR_OUT) {
10124 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10125 : if (r->in.handle == NULL) {
10126 : NDR_PULL_ALLOC(ndr, r->in.handle);
10127 : NDR_ZERO_STRUCTP(r->in.handle);
10128 : }
10129 : if (r->in.luid == NULL) {
10130 : NDR_PULL_ALLOC(ndr, r->in.luid);
10131 : NDR_ZERO_STRUCTP(r->in.luid);
10132 : }
10133 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10134 178 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10135 32 : NDR_PULL_ALLOC(ndr, r->out.name);
10136 : }
10137 178 : _mem_save_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
10138 178 : NDR_PULL_SET_MEM_CTX(ndr, r->out.name, LIBNDR_FLAG_REF_ALLOC);
10139 178 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_name));
10140 178 : if (_ptr_name) {
10141 178 : NDR_PULL_ALLOC(ndr, *r->out.name);
10142 : } else {
10143 0 : *r->out.name = NULL;
10144 : }
10145 178 : if (*r->out.name) {
10146 178 : _mem_save_name_1 = NDR_PULL_GET_MEM_CTX(ndr);
10147 178 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.name, 0);
10148 178 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.name));
10149 178 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_name_1, 0);
10150 : }
10151 178 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_name_0, LIBNDR_FLAG_REF_ALLOC);
10152 178 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
10153 : }
10154 306 : return NDR_ERR_SUCCESS;
10155 : }
10156 :
10157 64 : _PUBLIC_ void ndr_print_lsa_LookupPrivName(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LookupPrivName *r)
10158 : {
10159 64 : ndr_print_struct(ndr, name, "lsa_LookupPrivName");
10160 64 : if (r == NULL) { ndr_print_null(ndr); return; }
10161 64 : ndr->depth++;
10162 64 : if (flags & NDR_SET_VALUES) {
10163 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10164 : }
10165 64 : if (flags & NDR_IN) {
10166 0 : ndr_print_struct(ndr, "in", "lsa_LookupPrivName");
10167 0 : ndr->depth++;
10168 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
10169 0 : ndr->depth++;
10170 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
10171 0 : ndr->depth--;
10172 0 : ndr_print_ptr(ndr, "luid", r->in.luid);
10173 0 : ndr->depth++;
10174 0 : ndr_print_lsa_LUID(ndr, "luid", r->in.luid);
10175 0 : ndr->depth--;
10176 0 : ndr->depth--;
10177 : }
10178 64 : if (flags & NDR_OUT) {
10179 64 : ndr_print_struct(ndr, "out", "lsa_LookupPrivName");
10180 64 : ndr->depth++;
10181 64 : ndr_print_ptr(ndr, "name", r->out.name);
10182 64 : ndr->depth++;
10183 64 : ndr_print_ptr(ndr, "name", *r->out.name);
10184 64 : ndr->depth++;
10185 64 : if (*r->out.name) {
10186 64 : ndr_print_lsa_StringLarge(ndr, "name", *r->out.name);
10187 : }
10188 64 : ndr->depth--;
10189 64 : ndr->depth--;
10190 64 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
10191 64 : ndr->depth--;
10192 : }
10193 64 : ndr->depth--;
10194 : }
10195 :
10196 243 : static enum ndr_err_code ndr_push_lsa_LookupPrivDisplayName(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LookupPrivDisplayName *r)
10197 : {
10198 243 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10199 243 : if (flags & NDR_IN) {
10200 118 : if (r->in.handle == NULL) {
10201 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10202 : }
10203 118 : if (r->in.name == NULL) {
10204 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10205 : }
10206 118 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10207 118 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.name));
10208 118 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.language_id));
10209 118 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.language_id_sys));
10210 : }
10211 243 : if (flags & NDR_OUT) {
10212 125 : if (r->out.disp_name == NULL) {
10213 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10214 : }
10215 125 : if (r->out.returned_language_id == NULL) {
10216 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10217 : }
10218 125 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.disp_name));
10219 125 : if (*r->out.disp_name) {
10220 125 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.disp_name));
10221 : }
10222 125 : NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.returned_language_id));
10223 125 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
10224 : }
10225 243 : return NDR_ERR_SUCCESS;
10226 : }
10227 :
10228 218 : static enum ndr_err_code ndr_pull_lsa_LookupPrivDisplayName(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LookupPrivDisplayName *r)
10229 : {
10230 0 : uint32_t _ptr_disp_name;
10231 218 : TALLOC_CTX *_mem_save_handle_0 = NULL;
10232 218 : TALLOC_CTX *_mem_save_name_0 = NULL;
10233 218 : TALLOC_CTX *_mem_save_disp_name_0 = NULL;
10234 218 : TALLOC_CTX *_mem_save_disp_name_1 = NULL;
10235 218 : TALLOC_CTX *_mem_save_returned_language_id_0 = NULL;
10236 218 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10237 218 : if (flags & NDR_IN) {
10238 100 : NDR_ZERO_STRUCT(r->out);
10239 :
10240 100 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10241 100 : NDR_PULL_ALLOC(ndr, r->in.handle);
10242 : }
10243 100 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
10244 100 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
10245 100 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10246 100 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
10247 100 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10248 100 : NDR_PULL_ALLOC(ndr, r->in.name);
10249 : }
10250 100 : _mem_save_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
10251 100 : NDR_PULL_SET_MEM_CTX(ndr, r->in.name, LIBNDR_FLAG_REF_ALLOC);
10252 100 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.name));
10253 100 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_name_0, LIBNDR_FLAG_REF_ALLOC);
10254 100 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.language_id));
10255 100 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.language_id_sys));
10256 100 : NDR_PULL_ALLOC(ndr, r->out.disp_name);
10257 100 : NDR_ZERO_STRUCTP(r->out.disp_name);
10258 100 : NDR_PULL_ALLOC(ndr, r->out.returned_language_id);
10259 100 : NDR_ZERO_STRUCTP(r->out.returned_language_id);
10260 : }
10261 218 : if (flags & NDR_OUT) {
10262 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10263 : if (r->in.handle == NULL) {
10264 : NDR_PULL_ALLOC(ndr, r->in.handle);
10265 : NDR_ZERO_STRUCTP(r->in.handle);
10266 : }
10267 : if (r->in.name == NULL) {
10268 : NDR_PULL_ALLOC(ndr, r->in.name);
10269 : NDR_ZERO_STRUCTP(r->in.name);
10270 : }
10271 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10272 118 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10273 25 : NDR_PULL_ALLOC(ndr, r->out.disp_name);
10274 : }
10275 118 : _mem_save_disp_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
10276 118 : NDR_PULL_SET_MEM_CTX(ndr, r->out.disp_name, LIBNDR_FLAG_REF_ALLOC);
10277 118 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_disp_name));
10278 118 : if (_ptr_disp_name) {
10279 118 : NDR_PULL_ALLOC(ndr, *r->out.disp_name);
10280 : } else {
10281 0 : *r->out.disp_name = NULL;
10282 : }
10283 118 : if (*r->out.disp_name) {
10284 118 : _mem_save_disp_name_1 = NDR_PULL_GET_MEM_CTX(ndr);
10285 118 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.disp_name, 0);
10286 118 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.disp_name));
10287 118 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_disp_name_1, 0);
10288 : }
10289 118 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_disp_name_0, LIBNDR_FLAG_REF_ALLOC);
10290 118 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10291 25 : NDR_PULL_ALLOC(ndr, r->out.returned_language_id);
10292 : }
10293 118 : _mem_save_returned_language_id_0 = NDR_PULL_GET_MEM_CTX(ndr);
10294 118 : NDR_PULL_SET_MEM_CTX(ndr, r->out.returned_language_id, LIBNDR_FLAG_REF_ALLOC);
10295 118 : NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.returned_language_id));
10296 118 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_returned_language_id_0, LIBNDR_FLAG_REF_ALLOC);
10297 118 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
10298 : }
10299 218 : return NDR_ERR_SUCCESS;
10300 : }
10301 :
10302 50 : _PUBLIC_ void ndr_print_lsa_LookupPrivDisplayName(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LookupPrivDisplayName *r)
10303 : {
10304 50 : ndr_print_struct(ndr, name, "lsa_LookupPrivDisplayName");
10305 50 : if (r == NULL) { ndr_print_null(ndr); return; }
10306 50 : ndr->depth++;
10307 50 : if (flags & NDR_SET_VALUES) {
10308 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10309 : }
10310 50 : if (flags & NDR_IN) {
10311 0 : ndr_print_struct(ndr, "in", "lsa_LookupPrivDisplayName");
10312 0 : ndr->depth++;
10313 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
10314 0 : ndr->depth++;
10315 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
10316 0 : ndr->depth--;
10317 0 : ndr_print_ptr(ndr, "name", r->in.name);
10318 0 : ndr->depth++;
10319 0 : ndr_print_lsa_String(ndr, "name", r->in.name);
10320 0 : ndr->depth--;
10321 0 : ndr_print_uint16(ndr, "language_id", r->in.language_id);
10322 0 : ndr_print_uint16(ndr, "language_id_sys", r->in.language_id_sys);
10323 0 : ndr->depth--;
10324 : }
10325 50 : if (flags & NDR_OUT) {
10326 50 : ndr_print_struct(ndr, "out", "lsa_LookupPrivDisplayName");
10327 50 : ndr->depth++;
10328 50 : ndr_print_ptr(ndr, "disp_name", r->out.disp_name);
10329 50 : ndr->depth++;
10330 50 : ndr_print_ptr(ndr, "disp_name", *r->out.disp_name);
10331 50 : ndr->depth++;
10332 50 : if (*r->out.disp_name) {
10333 50 : ndr_print_lsa_StringLarge(ndr, "disp_name", *r->out.disp_name);
10334 : }
10335 50 : ndr->depth--;
10336 50 : ndr->depth--;
10337 50 : ndr_print_ptr(ndr, "returned_language_id", r->out.returned_language_id);
10338 50 : ndr->depth++;
10339 50 : ndr_print_uint16(ndr, "returned_language_id", *r->out.returned_language_id);
10340 50 : ndr->depth--;
10341 50 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
10342 50 : ndr->depth--;
10343 : }
10344 50 : ndr->depth--;
10345 : }
10346 :
10347 4039 : static enum ndr_err_code ndr_push_lsa_DeleteObject(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_DeleteObject *r)
10348 : {
10349 4039 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10350 4039 : if (flags & NDR_IN) {
10351 2329 : if (r->in.handle == NULL) {
10352 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10353 : }
10354 2329 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10355 : }
10356 4039 : if (flags & NDR_OUT) {
10357 1710 : if (r->out.handle == NULL) {
10358 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10359 : }
10360 1710 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.handle));
10361 1710 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
10362 : }
10363 4039 : return NDR_ERR_SUCCESS;
10364 : }
10365 :
10366 4022 : static enum ndr_err_code ndr_pull_lsa_DeleteObject(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_DeleteObject *r)
10367 : {
10368 4022 : TALLOC_CTX *_mem_save_handle_0 = NULL;
10369 4022 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10370 4022 : if (flags & NDR_IN) {
10371 1693 : NDR_ZERO_STRUCT(r->out);
10372 :
10373 1693 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10374 1693 : NDR_PULL_ALLOC(ndr, r->in.handle);
10375 : }
10376 1693 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
10377 1693 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
10378 1693 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10379 1693 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
10380 1693 : NDR_PULL_ALLOC(ndr, r->out.handle);
10381 1693 : *r->out.handle = *r->in.handle;
10382 : }
10383 4022 : if (flags & NDR_OUT) {
10384 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10385 : if (r->in.handle == NULL) {
10386 : NDR_PULL_ALLOC(ndr, r->in.handle);
10387 : NDR_ZERO_STRUCTP(r->in.handle);
10388 : }
10389 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10390 2329 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10391 18 : NDR_PULL_ALLOC(ndr, r->out.handle);
10392 : }
10393 2329 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
10394 2329 : NDR_PULL_SET_MEM_CTX(ndr, r->out.handle, LIBNDR_FLAG_REF_ALLOC);
10395 2329 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.handle));
10396 2329 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
10397 2329 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
10398 : }
10399 4022 : return NDR_ERR_SUCCESS;
10400 : }
10401 :
10402 34 : _PUBLIC_ void ndr_print_lsa_DeleteObject(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_DeleteObject *r)
10403 : {
10404 34 : ndr_print_struct(ndr, name, "lsa_DeleteObject");
10405 34 : if (r == NULL) { ndr_print_null(ndr); return; }
10406 34 : ndr->depth++;
10407 34 : if (flags & NDR_SET_VALUES) {
10408 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10409 : }
10410 34 : if (flags & NDR_IN) {
10411 0 : ndr_print_struct(ndr, "in", "lsa_DeleteObject");
10412 0 : ndr->depth++;
10413 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
10414 0 : ndr->depth++;
10415 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
10416 0 : ndr->depth--;
10417 0 : ndr->depth--;
10418 : }
10419 34 : if (flags & NDR_OUT) {
10420 34 : ndr_print_struct(ndr, "out", "lsa_DeleteObject");
10421 34 : ndr->depth++;
10422 34 : ndr_print_ptr(ndr, "handle", r->out.handle);
10423 34 : ndr->depth++;
10424 34 : ndr_print_policy_handle(ndr, "handle", r->out.handle);
10425 34 : ndr->depth--;
10426 34 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
10427 34 : ndr->depth--;
10428 : }
10429 34 : ndr->depth--;
10430 : }
10431 :
10432 243 : static enum ndr_err_code ndr_push_lsa_EnumAccountsWithUserRight(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_EnumAccountsWithUserRight *r)
10433 : {
10434 243 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10435 243 : if (flags & NDR_IN) {
10436 118 : if (r->in.handle == NULL) {
10437 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10438 : }
10439 118 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10440 118 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.name));
10441 118 : if (r->in.name) {
10442 118 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.name));
10443 : }
10444 : }
10445 243 : if (flags & NDR_OUT) {
10446 125 : if (r->out.sids == NULL) {
10447 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10448 : }
10449 125 : NDR_CHECK(ndr_push_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
10450 125 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
10451 : }
10452 243 : return NDR_ERR_SUCCESS;
10453 : }
10454 :
10455 218 : static enum ndr_err_code ndr_pull_lsa_EnumAccountsWithUserRight(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_EnumAccountsWithUserRight *r)
10456 : {
10457 0 : uint32_t _ptr_name;
10458 218 : TALLOC_CTX *_mem_save_handle_0 = NULL;
10459 218 : TALLOC_CTX *_mem_save_name_0 = NULL;
10460 218 : TALLOC_CTX *_mem_save_sids_0 = NULL;
10461 218 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10462 218 : if (flags & NDR_IN) {
10463 100 : NDR_ZERO_STRUCT(r->out);
10464 :
10465 100 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10466 100 : NDR_PULL_ALLOC(ndr, r->in.handle);
10467 : }
10468 100 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
10469 100 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
10470 100 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10471 100 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
10472 100 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_name));
10473 100 : if (_ptr_name) {
10474 100 : NDR_PULL_ALLOC(ndr, r->in.name);
10475 : } else {
10476 0 : r->in.name = NULL;
10477 : }
10478 100 : if (r->in.name) {
10479 100 : _mem_save_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
10480 100 : NDR_PULL_SET_MEM_CTX(ndr, r->in.name, 0);
10481 100 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.name));
10482 100 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_name_0, 0);
10483 : }
10484 100 : NDR_PULL_ALLOC(ndr, r->out.sids);
10485 100 : NDR_ZERO_STRUCTP(r->out.sids);
10486 : }
10487 218 : if (flags & NDR_OUT) {
10488 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10489 : if (r->in.handle == NULL) {
10490 : NDR_PULL_ALLOC(ndr, r->in.handle);
10491 : NDR_ZERO_STRUCTP(r->in.handle);
10492 : }
10493 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10494 118 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10495 25 : NDR_PULL_ALLOC(ndr, r->out.sids);
10496 : }
10497 118 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
10498 118 : NDR_PULL_SET_MEM_CTX(ndr, r->out.sids, LIBNDR_FLAG_REF_ALLOC);
10499 118 : NDR_CHECK(ndr_pull_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
10500 118 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
10501 118 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
10502 : }
10503 218 : return NDR_ERR_SUCCESS;
10504 : }
10505 :
10506 50 : _PUBLIC_ void ndr_print_lsa_EnumAccountsWithUserRight(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_EnumAccountsWithUserRight *r)
10507 : {
10508 50 : ndr_print_struct(ndr, name, "lsa_EnumAccountsWithUserRight");
10509 50 : if (r == NULL) { ndr_print_null(ndr); return; }
10510 50 : ndr->depth++;
10511 50 : if (flags & NDR_SET_VALUES) {
10512 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10513 : }
10514 50 : if (flags & NDR_IN) {
10515 0 : ndr_print_struct(ndr, "in", "lsa_EnumAccountsWithUserRight");
10516 0 : ndr->depth++;
10517 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
10518 0 : ndr->depth++;
10519 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
10520 0 : ndr->depth--;
10521 0 : ndr_print_ptr(ndr, "name", r->in.name);
10522 0 : ndr->depth++;
10523 0 : if (r->in.name) {
10524 0 : ndr_print_lsa_String(ndr, "name", r->in.name);
10525 : }
10526 0 : ndr->depth--;
10527 0 : ndr->depth--;
10528 : }
10529 50 : if (flags & NDR_OUT) {
10530 50 : ndr_print_struct(ndr, "out", "lsa_EnumAccountsWithUserRight");
10531 50 : ndr->depth++;
10532 50 : ndr_print_ptr(ndr, "sids", r->out.sids);
10533 50 : ndr->depth++;
10534 50 : ndr_print_lsa_SidArray(ndr, "sids", r->out.sids);
10535 50 : ndr->depth--;
10536 50 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
10537 50 : ndr->depth--;
10538 : }
10539 50 : ndr->depth--;
10540 : }
10541 :
10542 322 : static enum ndr_err_code ndr_push_lsa_EnumAccountRights(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_EnumAccountRights *r)
10543 : {
10544 322 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10545 322 : if (flags & NDR_IN) {
10546 168 : if (r->in.handle == NULL) {
10547 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10548 : }
10549 168 : if (r->in.sid == NULL) {
10550 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10551 : }
10552 168 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10553 168 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sid));
10554 : }
10555 322 : if (flags & NDR_OUT) {
10556 154 : if (r->out.rights == NULL) {
10557 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10558 : }
10559 154 : NDR_CHECK(ndr_push_lsa_RightSet(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.rights));
10560 154 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
10561 : }
10562 322 : return NDR_ERR_SUCCESS;
10563 : }
10564 :
10565 316 : static enum ndr_err_code ndr_pull_lsa_EnumAccountRights(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_EnumAccountRights *r)
10566 : {
10567 316 : TALLOC_CTX *_mem_save_handle_0 = NULL;
10568 316 : TALLOC_CTX *_mem_save_sid_0 = NULL;
10569 316 : TALLOC_CTX *_mem_save_rights_0 = NULL;
10570 316 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10571 316 : if (flags & NDR_IN) {
10572 148 : NDR_ZERO_STRUCT(r->out);
10573 :
10574 148 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10575 148 : NDR_PULL_ALLOC(ndr, r->in.handle);
10576 : }
10577 148 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
10578 148 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
10579 148 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10580 148 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
10581 148 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10582 148 : NDR_PULL_ALLOC(ndr, r->in.sid);
10583 : }
10584 148 : _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
10585 148 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sid, LIBNDR_FLAG_REF_ALLOC);
10586 148 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sid));
10587 148 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, LIBNDR_FLAG_REF_ALLOC);
10588 148 : NDR_PULL_ALLOC(ndr, r->out.rights);
10589 148 : NDR_ZERO_STRUCTP(r->out.rights);
10590 : }
10591 316 : if (flags & NDR_OUT) {
10592 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10593 : if (r->in.handle == NULL) {
10594 : NDR_PULL_ALLOC(ndr, r->in.handle);
10595 : NDR_ZERO_STRUCTP(r->in.handle);
10596 : }
10597 : if (r->in.sid == NULL) {
10598 : NDR_PULL_ALLOC(ndr, r->in.sid);
10599 : NDR_ZERO_STRUCTP(r->in.sid);
10600 : }
10601 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10602 168 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10603 6 : NDR_PULL_ALLOC(ndr, r->out.rights);
10604 : }
10605 168 : _mem_save_rights_0 = NDR_PULL_GET_MEM_CTX(ndr);
10606 168 : NDR_PULL_SET_MEM_CTX(ndr, r->out.rights, LIBNDR_FLAG_REF_ALLOC);
10607 168 : NDR_CHECK(ndr_pull_lsa_RightSet(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.rights));
10608 168 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rights_0, LIBNDR_FLAG_REF_ALLOC);
10609 168 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
10610 : }
10611 316 : return NDR_ERR_SUCCESS;
10612 : }
10613 :
10614 12 : _PUBLIC_ void ndr_print_lsa_EnumAccountRights(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_EnumAccountRights *r)
10615 : {
10616 12 : ndr_print_struct(ndr, name, "lsa_EnumAccountRights");
10617 12 : if (r == NULL) { ndr_print_null(ndr); return; }
10618 12 : ndr->depth++;
10619 12 : if (flags & NDR_SET_VALUES) {
10620 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10621 : }
10622 12 : if (flags & NDR_IN) {
10623 0 : ndr_print_struct(ndr, "in", "lsa_EnumAccountRights");
10624 0 : ndr->depth++;
10625 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
10626 0 : ndr->depth++;
10627 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
10628 0 : ndr->depth--;
10629 0 : ndr_print_ptr(ndr, "sid", r->in.sid);
10630 0 : ndr->depth++;
10631 0 : ndr_print_dom_sid2(ndr, "sid", r->in.sid);
10632 0 : ndr->depth--;
10633 0 : ndr->depth--;
10634 : }
10635 12 : if (flags & NDR_OUT) {
10636 12 : ndr_print_struct(ndr, "out", "lsa_EnumAccountRights");
10637 12 : ndr->depth++;
10638 12 : ndr_print_ptr(ndr, "rights", r->out.rights);
10639 12 : ndr->depth++;
10640 12 : ndr_print_lsa_RightSet(ndr, "rights", r->out.rights);
10641 12 : ndr->depth--;
10642 12 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
10643 12 : ndr->depth--;
10644 : }
10645 12 : ndr->depth--;
10646 : }
10647 :
10648 68 : static enum ndr_err_code ndr_push_lsa_AddAccountRights(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_AddAccountRights *r)
10649 : {
10650 68 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10651 68 : if (flags & NDR_IN) {
10652 36 : if (r->in.handle == NULL) {
10653 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10654 : }
10655 36 : if (r->in.sid == NULL) {
10656 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10657 : }
10658 36 : if (r->in.rights == NULL) {
10659 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10660 : }
10661 36 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10662 36 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sid));
10663 36 : NDR_CHECK(ndr_push_lsa_RightSet(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.rights));
10664 : }
10665 68 : if (flags & NDR_OUT) {
10666 32 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
10667 : }
10668 68 : return NDR_ERR_SUCCESS;
10669 : }
10670 :
10671 68 : static enum ndr_err_code ndr_pull_lsa_AddAccountRights(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_AddAccountRights *r)
10672 : {
10673 68 : TALLOC_CTX *_mem_save_handle_0 = NULL;
10674 68 : TALLOC_CTX *_mem_save_sid_0 = NULL;
10675 68 : TALLOC_CTX *_mem_save_rights_0 = NULL;
10676 68 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10677 68 : if (flags & NDR_IN) {
10678 32 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10679 32 : NDR_PULL_ALLOC(ndr, r->in.handle);
10680 : }
10681 32 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
10682 32 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
10683 32 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10684 32 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
10685 32 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10686 32 : NDR_PULL_ALLOC(ndr, r->in.sid);
10687 : }
10688 32 : _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
10689 32 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sid, LIBNDR_FLAG_REF_ALLOC);
10690 32 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sid));
10691 32 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, LIBNDR_FLAG_REF_ALLOC);
10692 32 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10693 32 : NDR_PULL_ALLOC(ndr, r->in.rights);
10694 : }
10695 32 : _mem_save_rights_0 = NDR_PULL_GET_MEM_CTX(ndr);
10696 32 : NDR_PULL_SET_MEM_CTX(ndr, r->in.rights, LIBNDR_FLAG_REF_ALLOC);
10697 32 : NDR_CHECK(ndr_pull_lsa_RightSet(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.rights));
10698 32 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rights_0, LIBNDR_FLAG_REF_ALLOC);
10699 : }
10700 68 : if (flags & NDR_OUT) {
10701 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10702 : if (r->in.handle == NULL) {
10703 : NDR_PULL_ALLOC(ndr, r->in.handle);
10704 : NDR_ZERO_STRUCTP(r->in.handle);
10705 : }
10706 : if (r->in.sid == NULL) {
10707 : NDR_PULL_ALLOC(ndr, r->in.sid);
10708 : NDR_ZERO_STRUCTP(r->in.sid);
10709 : }
10710 : if (r->in.rights == NULL) {
10711 : NDR_PULL_ALLOC(ndr, r->in.rights);
10712 : NDR_ZERO_STRUCTP(r->in.rights);
10713 : }
10714 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10715 36 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
10716 : }
10717 68 : return NDR_ERR_SUCCESS;
10718 : }
10719 :
10720 0 : _PUBLIC_ void ndr_print_lsa_AddAccountRights(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_AddAccountRights *r)
10721 : {
10722 0 : ndr_print_struct(ndr, name, "lsa_AddAccountRights");
10723 0 : if (r == NULL) { ndr_print_null(ndr); return; }
10724 0 : ndr->depth++;
10725 0 : if (flags & NDR_SET_VALUES) {
10726 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10727 : }
10728 0 : if (flags & NDR_IN) {
10729 0 : ndr_print_struct(ndr, "in", "lsa_AddAccountRights");
10730 0 : ndr->depth++;
10731 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
10732 0 : ndr->depth++;
10733 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
10734 0 : ndr->depth--;
10735 0 : ndr_print_ptr(ndr, "sid", r->in.sid);
10736 0 : ndr->depth++;
10737 0 : ndr_print_dom_sid2(ndr, "sid", r->in.sid);
10738 0 : ndr->depth--;
10739 0 : ndr_print_ptr(ndr, "rights", r->in.rights);
10740 0 : ndr->depth++;
10741 0 : ndr_print_lsa_RightSet(ndr, "rights", r->in.rights);
10742 0 : ndr->depth--;
10743 0 : ndr->depth--;
10744 : }
10745 0 : if (flags & NDR_OUT) {
10746 0 : ndr_print_struct(ndr, "out", "lsa_AddAccountRights");
10747 0 : ndr->depth++;
10748 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
10749 0 : ndr->depth--;
10750 : }
10751 0 : ndr->depth--;
10752 : }
10753 :
10754 40 : static enum ndr_err_code ndr_push_lsa_RemoveAccountRights(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_RemoveAccountRights *r)
10755 : {
10756 40 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10757 40 : if (flags & NDR_IN) {
10758 20 : if (r->in.handle == NULL) {
10759 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10760 : }
10761 20 : if (r->in.sid == NULL) {
10762 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10763 : }
10764 20 : if (r->in.rights == NULL) {
10765 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10766 : }
10767 20 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10768 20 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sid));
10769 20 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.remove_all));
10770 20 : NDR_CHECK(ndr_push_lsa_RightSet(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.rights));
10771 : }
10772 40 : if (flags & NDR_OUT) {
10773 20 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
10774 : }
10775 40 : return NDR_ERR_SUCCESS;
10776 : }
10777 :
10778 40 : static enum ndr_err_code ndr_pull_lsa_RemoveAccountRights(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_RemoveAccountRights *r)
10779 : {
10780 40 : TALLOC_CTX *_mem_save_handle_0 = NULL;
10781 40 : TALLOC_CTX *_mem_save_sid_0 = NULL;
10782 40 : TALLOC_CTX *_mem_save_rights_0 = NULL;
10783 40 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10784 40 : if (flags & NDR_IN) {
10785 20 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10786 20 : NDR_PULL_ALLOC(ndr, r->in.handle);
10787 : }
10788 20 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
10789 20 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
10790 20 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10791 20 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
10792 20 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10793 20 : NDR_PULL_ALLOC(ndr, r->in.sid);
10794 : }
10795 20 : _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
10796 20 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sid, LIBNDR_FLAG_REF_ALLOC);
10797 20 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sid));
10798 20 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, LIBNDR_FLAG_REF_ALLOC);
10799 20 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.remove_all));
10800 20 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10801 20 : NDR_PULL_ALLOC(ndr, r->in.rights);
10802 : }
10803 20 : _mem_save_rights_0 = NDR_PULL_GET_MEM_CTX(ndr);
10804 20 : NDR_PULL_SET_MEM_CTX(ndr, r->in.rights, LIBNDR_FLAG_REF_ALLOC);
10805 20 : NDR_CHECK(ndr_pull_lsa_RightSet(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.rights));
10806 20 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rights_0, LIBNDR_FLAG_REF_ALLOC);
10807 : }
10808 40 : if (flags & NDR_OUT) {
10809 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10810 : if (r->in.handle == NULL) {
10811 : NDR_PULL_ALLOC(ndr, r->in.handle);
10812 : NDR_ZERO_STRUCTP(r->in.handle);
10813 : }
10814 : if (r->in.sid == NULL) {
10815 : NDR_PULL_ALLOC(ndr, r->in.sid);
10816 : NDR_ZERO_STRUCTP(r->in.sid);
10817 : }
10818 : if (r->in.rights == NULL) {
10819 : NDR_PULL_ALLOC(ndr, r->in.rights);
10820 : NDR_ZERO_STRUCTP(r->in.rights);
10821 : }
10822 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10823 20 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
10824 : }
10825 40 : return NDR_ERR_SUCCESS;
10826 : }
10827 :
10828 0 : _PUBLIC_ void ndr_print_lsa_RemoveAccountRights(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_RemoveAccountRights *r)
10829 : {
10830 0 : ndr_print_struct(ndr, name, "lsa_RemoveAccountRights");
10831 0 : if (r == NULL) { ndr_print_null(ndr); return; }
10832 0 : ndr->depth++;
10833 0 : if (flags & NDR_SET_VALUES) {
10834 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10835 : }
10836 0 : if (flags & NDR_IN) {
10837 0 : ndr_print_struct(ndr, "in", "lsa_RemoveAccountRights");
10838 0 : ndr->depth++;
10839 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
10840 0 : ndr->depth++;
10841 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
10842 0 : ndr->depth--;
10843 0 : ndr_print_ptr(ndr, "sid", r->in.sid);
10844 0 : ndr->depth++;
10845 0 : ndr_print_dom_sid2(ndr, "sid", r->in.sid);
10846 0 : ndr->depth--;
10847 0 : ndr_print_uint8(ndr, "remove_all", r->in.remove_all);
10848 0 : ndr_print_ptr(ndr, "rights", r->in.rights);
10849 0 : ndr->depth++;
10850 0 : ndr_print_lsa_RightSet(ndr, "rights", r->in.rights);
10851 0 : ndr->depth--;
10852 0 : ndr->depth--;
10853 : }
10854 0 : if (flags & NDR_OUT) {
10855 0 : ndr_print_struct(ndr, "out", "lsa_RemoveAccountRights");
10856 0 : ndr->depth++;
10857 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
10858 0 : ndr->depth--;
10859 : }
10860 0 : ndr->depth--;
10861 : }
10862 :
10863 5618 : static enum ndr_err_code ndr_push_lsa_QueryTrustedDomainInfoBySid(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_QueryTrustedDomainInfoBySid *r)
10864 : {
10865 5618 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10866 5618 : if (flags & NDR_IN) {
10867 2497 : if (r->in.handle == NULL) {
10868 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10869 : }
10870 2497 : if (r->in.dom_sid == NULL) {
10871 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10872 : }
10873 2497 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10874 2497 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.dom_sid));
10875 2497 : NDR_CHECK(ndr_push_lsa_TrustDomInfoEnum(ndr, NDR_SCALARS, r->in.level));
10876 : }
10877 5618 : if (flags & NDR_OUT) {
10878 3121 : if (r->out.info == NULL) {
10879 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
10880 : }
10881 3121 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.info));
10882 3121 : if (*r->out.info) {
10883 1440 : NDR_CHECK(ndr_push_set_switch_value(ndr, *r->out.info, r->in.level));
10884 1440 : NDR_CHECK(ndr_push_lsa_TrustedDomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
10885 : }
10886 3121 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
10887 : }
10888 5618 : return NDR_ERR_SUCCESS;
10889 : }
10890 :
10891 4994 : static enum ndr_err_code ndr_pull_lsa_QueryTrustedDomainInfoBySid(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_QueryTrustedDomainInfoBySid *r)
10892 : {
10893 0 : uint32_t _ptr_info;
10894 4994 : TALLOC_CTX *_mem_save_handle_0 = NULL;
10895 4994 : TALLOC_CTX *_mem_save_dom_sid_0 = NULL;
10896 4994 : TALLOC_CTX *_mem_save_info_0 = NULL;
10897 4994 : TALLOC_CTX *_mem_save_info_1 = NULL;
10898 4994 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
10899 4994 : if (flags & NDR_IN) {
10900 2497 : NDR_ZERO_STRUCT(r->out);
10901 :
10902 2497 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10903 2497 : NDR_PULL_ALLOC(ndr, r->in.handle);
10904 : }
10905 2497 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
10906 2497 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
10907 2497 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
10908 2497 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
10909 2497 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10910 2497 : NDR_PULL_ALLOC(ndr, r->in.dom_sid);
10911 : }
10912 2497 : _mem_save_dom_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
10913 2497 : NDR_PULL_SET_MEM_CTX(ndr, r->in.dom_sid, LIBNDR_FLAG_REF_ALLOC);
10914 2497 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.dom_sid));
10915 2497 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dom_sid_0, LIBNDR_FLAG_REF_ALLOC);
10916 2497 : NDR_CHECK(ndr_pull_lsa_TrustDomInfoEnum(ndr, NDR_SCALARS, &r->in.level));
10917 2497 : NDR_PULL_ALLOC(ndr, r->out.info);
10918 2497 : NDR_ZERO_STRUCTP(r->out.info);
10919 : }
10920 4994 : if (flags & NDR_OUT) {
10921 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
10922 : if (r->in.handle == NULL) {
10923 : NDR_PULL_ALLOC(ndr, r->in.handle);
10924 : NDR_ZERO_STRUCTP(r->in.handle);
10925 : }
10926 : if (r->in.dom_sid == NULL) {
10927 : NDR_PULL_ALLOC(ndr, r->in.dom_sid);
10928 : NDR_ZERO_STRUCTP(r->in.dom_sid);
10929 : }
10930 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
10931 2497 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
10932 625 : NDR_PULL_ALLOC(ndr, r->out.info);
10933 : }
10934 2497 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
10935 2497 : NDR_PULL_SET_MEM_CTX(ndr, r->out.info, LIBNDR_FLAG_REF_ALLOC);
10936 2497 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
10937 2497 : if (_ptr_info) {
10938 1152 : NDR_PULL_ALLOC(ndr, *r->out.info);
10939 : } else {
10940 1345 : *r->out.info = NULL;
10941 : }
10942 2497 : if (*r->out.info) {
10943 1152 : _mem_save_info_1 = NDR_PULL_GET_MEM_CTX(ndr);
10944 1152 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.info, 0);
10945 1152 : NDR_CHECK(ndr_pull_set_switch_value(ndr, *r->out.info, r->in.level));
10946 1152 : NDR_CHECK(ndr_pull_lsa_TrustedDomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
10947 1152 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_1, 0);
10948 : }
10949 2497 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
10950 2497 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
10951 : }
10952 4994 : return NDR_ERR_SUCCESS;
10953 : }
10954 :
10955 1248 : _PUBLIC_ void ndr_print_lsa_QueryTrustedDomainInfoBySid(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_QueryTrustedDomainInfoBySid *r)
10956 : {
10957 1248 : ndr_print_struct(ndr, name, "lsa_QueryTrustedDomainInfoBySid");
10958 1248 : if (r == NULL) { ndr_print_null(ndr); return; }
10959 1248 : ndr->depth++;
10960 1248 : if (flags & NDR_SET_VALUES) {
10961 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
10962 : }
10963 1248 : if (flags & NDR_IN) {
10964 0 : ndr_print_struct(ndr, "in", "lsa_QueryTrustedDomainInfoBySid");
10965 0 : ndr->depth++;
10966 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
10967 0 : ndr->depth++;
10968 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
10969 0 : ndr->depth--;
10970 0 : ndr_print_ptr(ndr, "dom_sid", r->in.dom_sid);
10971 0 : ndr->depth++;
10972 0 : ndr_print_dom_sid2(ndr, "dom_sid", r->in.dom_sid);
10973 0 : ndr->depth--;
10974 0 : ndr_print_lsa_TrustDomInfoEnum(ndr, "level", r->in.level);
10975 0 : ndr->depth--;
10976 : }
10977 1248 : if (flags & NDR_OUT) {
10978 1248 : ndr_print_struct(ndr, "out", "lsa_QueryTrustedDomainInfoBySid");
10979 1248 : ndr->depth++;
10980 1248 : ndr_print_ptr(ndr, "info", r->out.info);
10981 1248 : ndr->depth++;
10982 1248 : ndr_print_ptr(ndr, "info", *r->out.info);
10983 1248 : ndr->depth++;
10984 1248 : if (*r->out.info) {
10985 576 : ndr_print_set_switch_value(ndr, *r->out.info, r->in.level);
10986 576 : ndr_print_lsa_TrustedDomainInfo(ndr, "info", *r->out.info);
10987 : }
10988 1248 : ndr->depth--;
10989 1248 : ndr->depth--;
10990 1248 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
10991 1248 : ndr->depth--;
10992 : }
10993 1248 : ndr->depth--;
10994 : }
10995 :
10996 0 : static enum ndr_err_code ndr_push_lsa_SetTrustedDomainInfo(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_SetTrustedDomainInfo *r)
10997 : {
10998 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
10999 0 : if (flags & NDR_IN) {
11000 0 : if (r->in.handle == NULL) {
11001 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11002 : }
11003 0 : if (r->in.dom_sid == NULL) {
11004 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11005 : }
11006 0 : if (r->in.info == NULL) {
11007 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11008 : }
11009 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
11010 0 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.dom_sid));
11011 0 : NDR_CHECK(ndr_push_lsa_TrustDomInfoEnum(ndr, NDR_SCALARS, r->in.level));
11012 0 : NDR_CHECK(ndr_push_set_switch_value(ndr, r->in.info, r->in.level));
11013 0 : NDR_CHECK(ndr_push_lsa_TrustedDomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
11014 : }
11015 0 : if (flags & NDR_OUT) {
11016 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
11017 : }
11018 0 : return NDR_ERR_SUCCESS;
11019 : }
11020 :
11021 0 : static enum ndr_err_code ndr_pull_lsa_SetTrustedDomainInfo(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_SetTrustedDomainInfo *r)
11022 : {
11023 0 : TALLOC_CTX *_mem_save_handle_0 = NULL;
11024 0 : TALLOC_CTX *_mem_save_dom_sid_0 = NULL;
11025 0 : TALLOC_CTX *_mem_save_info_0 = NULL;
11026 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11027 0 : if (flags & NDR_IN) {
11028 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11029 0 : NDR_PULL_ALLOC(ndr, r->in.handle);
11030 : }
11031 0 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
11032 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
11033 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
11034 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
11035 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11036 0 : NDR_PULL_ALLOC(ndr, r->in.dom_sid);
11037 : }
11038 0 : _mem_save_dom_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
11039 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.dom_sid, LIBNDR_FLAG_REF_ALLOC);
11040 0 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.dom_sid));
11041 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dom_sid_0, LIBNDR_FLAG_REF_ALLOC);
11042 0 : NDR_CHECK(ndr_pull_lsa_TrustDomInfoEnum(ndr, NDR_SCALARS, &r->in.level));
11043 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11044 0 : NDR_PULL_ALLOC(ndr, r->in.info);
11045 : }
11046 0 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
11047 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.info, LIBNDR_FLAG_REF_ALLOC);
11048 0 : NDR_CHECK(ndr_pull_set_switch_value(ndr, r->in.info, r->in.level));
11049 0 : NDR_CHECK(ndr_pull_lsa_TrustedDomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
11050 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
11051 : }
11052 0 : if (flags & NDR_OUT) {
11053 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11054 : if (r->in.handle == NULL) {
11055 : NDR_PULL_ALLOC(ndr, r->in.handle);
11056 : NDR_ZERO_STRUCTP(r->in.handle);
11057 : }
11058 : if (r->in.dom_sid == NULL) {
11059 : NDR_PULL_ALLOC(ndr, r->in.dom_sid);
11060 : NDR_ZERO_STRUCTP(r->in.dom_sid);
11061 : }
11062 : if (r->in.info == NULL) {
11063 : NDR_PULL_ALLOC(ndr, r->in.info);
11064 : NDR_ZERO_STRUCTP(r->in.info);
11065 : }
11066 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11067 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
11068 : }
11069 0 : return NDR_ERR_SUCCESS;
11070 : }
11071 :
11072 0 : _PUBLIC_ void ndr_print_lsa_SetTrustedDomainInfo(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_SetTrustedDomainInfo *r)
11073 : {
11074 0 : ndr_print_struct(ndr, name, "lsa_SetTrustedDomainInfo");
11075 0 : if (r == NULL) { ndr_print_null(ndr); return; }
11076 0 : ndr->depth++;
11077 0 : if (flags & NDR_SET_VALUES) {
11078 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11079 : }
11080 0 : if (flags & NDR_IN) {
11081 0 : ndr_print_struct(ndr, "in", "lsa_SetTrustedDomainInfo");
11082 0 : ndr->depth++;
11083 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
11084 0 : ndr->depth++;
11085 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
11086 0 : ndr->depth--;
11087 0 : ndr_print_ptr(ndr, "dom_sid", r->in.dom_sid);
11088 0 : ndr->depth++;
11089 0 : ndr_print_dom_sid2(ndr, "dom_sid", r->in.dom_sid);
11090 0 : ndr->depth--;
11091 0 : ndr_print_lsa_TrustDomInfoEnum(ndr, "level", r->in.level);
11092 0 : ndr_print_ptr(ndr, "info", r->in.info);
11093 0 : ndr->depth++;
11094 0 : ndr_print_set_switch_value(ndr, r->in.info, r->in.level);
11095 0 : ndr_print_lsa_TrustedDomainInfo(ndr, "info", r->in.info);
11096 0 : ndr->depth--;
11097 0 : ndr->depth--;
11098 : }
11099 0 : if (flags & NDR_OUT) {
11100 0 : ndr_print_struct(ndr, "out", "lsa_SetTrustedDomainInfo");
11101 0 : ndr->depth++;
11102 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
11103 0 : ndr->depth--;
11104 : }
11105 0 : ndr->depth--;
11106 : }
11107 :
11108 445 : static enum ndr_err_code ndr_push_lsa_DeleteTrustedDomain(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_DeleteTrustedDomain *r)
11109 : {
11110 445 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11111 445 : if (flags & NDR_IN) {
11112 198 : if (r->in.handle == NULL) {
11113 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11114 : }
11115 198 : if (r->in.dom_sid == NULL) {
11116 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11117 : }
11118 198 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
11119 198 : NDR_CHECK(ndr_push_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.dom_sid));
11120 : }
11121 445 : if (flags & NDR_OUT) {
11122 247 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
11123 : }
11124 445 : return NDR_ERR_SUCCESS;
11125 : }
11126 :
11127 396 : static enum ndr_err_code ndr_pull_lsa_DeleteTrustedDomain(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_DeleteTrustedDomain *r)
11128 : {
11129 396 : TALLOC_CTX *_mem_save_handle_0 = NULL;
11130 396 : TALLOC_CTX *_mem_save_dom_sid_0 = NULL;
11131 396 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11132 396 : if (flags & NDR_IN) {
11133 198 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11134 198 : NDR_PULL_ALLOC(ndr, r->in.handle);
11135 : }
11136 198 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
11137 198 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
11138 198 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
11139 198 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
11140 198 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11141 198 : NDR_PULL_ALLOC(ndr, r->in.dom_sid);
11142 : }
11143 198 : _mem_save_dom_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
11144 198 : NDR_PULL_SET_MEM_CTX(ndr, r->in.dom_sid, LIBNDR_FLAG_REF_ALLOC);
11145 198 : NDR_CHECK(ndr_pull_dom_sid2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.dom_sid));
11146 198 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dom_sid_0, LIBNDR_FLAG_REF_ALLOC);
11147 : }
11148 396 : if (flags & NDR_OUT) {
11149 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11150 : if (r->in.handle == NULL) {
11151 : NDR_PULL_ALLOC(ndr, r->in.handle);
11152 : NDR_ZERO_STRUCTP(r->in.handle);
11153 : }
11154 : if (r->in.dom_sid == NULL) {
11155 : NDR_PULL_ALLOC(ndr, r->in.dom_sid);
11156 : NDR_ZERO_STRUCTP(r->in.dom_sid);
11157 : }
11158 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11159 198 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
11160 : }
11161 396 : return NDR_ERR_SUCCESS;
11162 : }
11163 :
11164 98 : _PUBLIC_ void ndr_print_lsa_DeleteTrustedDomain(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_DeleteTrustedDomain *r)
11165 : {
11166 98 : ndr_print_struct(ndr, name, "lsa_DeleteTrustedDomain");
11167 98 : if (r == NULL) { ndr_print_null(ndr); return; }
11168 98 : ndr->depth++;
11169 98 : if (flags & NDR_SET_VALUES) {
11170 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11171 : }
11172 98 : if (flags & NDR_IN) {
11173 0 : ndr_print_struct(ndr, "in", "lsa_DeleteTrustedDomain");
11174 0 : ndr->depth++;
11175 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
11176 0 : ndr->depth++;
11177 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
11178 0 : ndr->depth--;
11179 0 : ndr_print_ptr(ndr, "dom_sid", r->in.dom_sid);
11180 0 : ndr->depth++;
11181 0 : ndr_print_dom_sid2(ndr, "dom_sid", r->in.dom_sid);
11182 0 : ndr->depth--;
11183 0 : ndr->depth--;
11184 : }
11185 98 : if (flags & NDR_OUT) {
11186 98 : ndr_print_struct(ndr, "out", "lsa_DeleteTrustedDomain");
11187 98 : ndr->depth++;
11188 98 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
11189 98 : ndr->depth--;
11190 : }
11191 98 : ndr->depth--;
11192 : }
11193 :
11194 0 : static enum ndr_err_code ndr_push_lsa_StorePrivateData(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_StorePrivateData *r)
11195 : {
11196 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11197 0 : if (flags & NDR_IN) {
11198 0 : if (r->in.handle == NULL) {
11199 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11200 : }
11201 0 : if (r->in.name == NULL) {
11202 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11203 : }
11204 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
11205 0 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.name));
11206 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.val));
11207 0 : if (r->in.val) {
11208 0 : NDR_CHECK(ndr_push_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.val));
11209 : }
11210 : }
11211 0 : if (flags & NDR_OUT) {
11212 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
11213 : }
11214 0 : return NDR_ERR_SUCCESS;
11215 : }
11216 :
11217 0 : static enum ndr_err_code ndr_pull_lsa_StorePrivateData(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_StorePrivateData *r)
11218 : {
11219 0 : uint32_t _ptr_val;
11220 0 : TALLOC_CTX *_mem_save_handle_0 = NULL;
11221 0 : TALLOC_CTX *_mem_save_name_0 = NULL;
11222 0 : TALLOC_CTX *_mem_save_val_0 = NULL;
11223 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11224 0 : if (flags & NDR_IN) {
11225 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11226 0 : NDR_PULL_ALLOC(ndr, r->in.handle);
11227 : }
11228 0 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
11229 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
11230 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
11231 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
11232 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11233 0 : NDR_PULL_ALLOC(ndr, r->in.name);
11234 : }
11235 0 : _mem_save_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
11236 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.name, LIBNDR_FLAG_REF_ALLOC);
11237 0 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.name));
11238 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_name_0, LIBNDR_FLAG_REF_ALLOC);
11239 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_val));
11240 0 : if (_ptr_val) {
11241 0 : NDR_PULL_ALLOC(ndr, r->in.val);
11242 : } else {
11243 0 : r->in.val = NULL;
11244 : }
11245 0 : if (r->in.val) {
11246 0 : _mem_save_val_0 = NDR_PULL_GET_MEM_CTX(ndr);
11247 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.val, 0);
11248 0 : NDR_CHECK(ndr_pull_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.val));
11249 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_val_0, 0);
11250 : }
11251 : }
11252 0 : if (flags & NDR_OUT) {
11253 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11254 : if (r->in.handle == NULL) {
11255 : NDR_PULL_ALLOC(ndr, r->in.handle);
11256 : NDR_ZERO_STRUCTP(r->in.handle);
11257 : }
11258 : if (r->in.name == NULL) {
11259 : NDR_PULL_ALLOC(ndr, r->in.name);
11260 : NDR_ZERO_STRUCTP(r->in.name);
11261 : }
11262 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11263 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
11264 : }
11265 0 : return NDR_ERR_SUCCESS;
11266 : }
11267 :
11268 0 : _PUBLIC_ void ndr_print_lsa_StorePrivateData(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_StorePrivateData *r)
11269 : {
11270 0 : ndr_print_struct(ndr, name, "lsa_StorePrivateData");
11271 0 : if (r == NULL) { ndr_print_null(ndr); return; }
11272 0 : ndr->depth++;
11273 0 : if (flags & NDR_SET_VALUES) {
11274 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11275 : }
11276 0 : if (flags & NDR_IN) {
11277 0 : ndr_print_struct(ndr, "in", "lsa_StorePrivateData");
11278 0 : ndr->depth++;
11279 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
11280 0 : ndr->depth++;
11281 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
11282 0 : ndr->depth--;
11283 0 : ndr_print_ptr(ndr, "name", r->in.name);
11284 0 : ndr->depth++;
11285 0 : ndr_print_lsa_String(ndr, "name", r->in.name);
11286 0 : ndr->depth--;
11287 0 : ndr_print_ptr(ndr, "val", r->in.val);
11288 0 : ndr->depth++;
11289 0 : if (r->in.val) {
11290 0 : ndr_print_lsa_DATA_BUF(ndr, "val", r->in.val);
11291 : }
11292 0 : ndr->depth--;
11293 0 : ndr->depth--;
11294 : }
11295 0 : if (flags & NDR_OUT) {
11296 0 : ndr_print_struct(ndr, "out", "lsa_StorePrivateData");
11297 0 : ndr->depth++;
11298 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
11299 0 : ndr->depth--;
11300 : }
11301 0 : ndr->depth--;
11302 : }
11303 :
11304 0 : static enum ndr_err_code ndr_push_lsa_RetrievePrivateData(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_RetrievePrivateData *r)
11305 : {
11306 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11307 0 : if (flags & NDR_IN) {
11308 0 : if (r->in.handle == NULL) {
11309 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11310 : }
11311 0 : if (r->in.name == NULL) {
11312 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11313 : }
11314 0 : if (r->in.val == NULL) {
11315 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11316 : }
11317 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
11318 0 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.name));
11319 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.val));
11320 0 : if (*r->in.val) {
11321 0 : NDR_CHECK(ndr_push_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.val));
11322 : }
11323 : }
11324 0 : if (flags & NDR_OUT) {
11325 0 : if (r->out.val == NULL) {
11326 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11327 : }
11328 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.val));
11329 0 : if (*r->out.val) {
11330 0 : NDR_CHECK(ndr_push_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.val));
11331 : }
11332 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
11333 : }
11334 0 : return NDR_ERR_SUCCESS;
11335 : }
11336 :
11337 0 : static enum ndr_err_code ndr_pull_lsa_RetrievePrivateData(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_RetrievePrivateData *r)
11338 : {
11339 0 : uint32_t _ptr_val;
11340 0 : TALLOC_CTX *_mem_save_handle_0 = NULL;
11341 0 : TALLOC_CTX *_mem_save_name_0 = NULL;
11342 0 : TALLOC_CTX *_mem_save_val_0 = NULL;
11343 0 : TALLOC_CTX *_mem_save_val_1 = NULL;
11344 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11345 0 : if (flags & NDR_IN) {
11346 0 : NDR_ZERO_STRUCT(r->out);
11347 :
11348 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11349 0 : NDR_PULL_ALLOC(ndr, r->in.handle);
11350 : }
11351 0 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
11352 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
11353 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
11354 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
11355 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11356 0 : NDR_PULL_ALLOC(ndr, r->in.name);
11357 : }
11358 0 : _mem_save_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
11359 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.name, LIBNDR_FLAG_REF_ALLOC);
11360 0 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.name));
11361 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_name_0, LIBNDR_FLAG_REF_ALLOC);
11362 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11363 0 : NDR_PULL_ALLOC(ndr, r->in.val);
11364 : }
11365 0 : _mem_save_val_0 = NDR_PULL_GET_MEM_CTX(ndr);
11366 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.val, LIBNDR_FLAG_REF_ALLOC);
11367 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_val));
11368 0 : if (_ptr_val) {
11369 0 : NDR_PULL_ALLOC(ndr, *r->in.val);
11370 : } else {
11371 0 : *r->in.val = NULL;
11372 : }
11373 0 : if (*r->in.val) {
11374 0 : _mem_save_val_1 = NDR_PULL_GET_MEM_CTX(ndr);
11375 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->in.val, 0);
11376 0 : NDR_CHECK(ndr_pull_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.val));
11377 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_val_1, 0);
11378 : }
11379 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_val_0, LIBNDR_FLAG_REF_ALLOC);
11380 0 : NDR_PULL_ALLOC(ndr, r->out.val);
11381 0 : *r->out.val = *r->in.val;
11382 : }
11383 0 : if (flags & NDR_OUT) {
11384 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11385 : if (r->in.handle == NULL) {
11386 : NDR_PULL_ALLOC(ndr, r->in.handle);
11387 : NDR_ZERO_STRUCTP(r->in.handle);
11388 : }
11389 : if (r->in.name == NULL) {
11390 : NDR_PULL_ALLOC(ndr, r->in.name);
11391 : NDR_ZERO_STRUCTP(r->in.name);
11392 : }
11393 : if (r->in.val == NULL) {
11394 : NDR_PULL_ALLOC(ndr, r->in.val);
11395 : NDR_ZERO_STRUCTP(r->in.val);
11396 : }
11397 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11398 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11399 0 : NDR_PULL_ALLOC(ndr, r->out.val);
11400 : }
11401 0 : _mem_save_val_0 = NDR_PULL_GET_MEM_CTX(ndr);
11402 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.val, LIBNDR_FLAG_REF_ALLOC);
11403 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_val));
11404 0 : if (_ptr_val) {
11405 0 : NDR_PULL_ALLOC(ndr, *r->out.val);
11406 : } else {
11407 0 : *r->out.val = NULL;
11408 : }
11409 0 : if (*r->out.val) {
11410 0 : _mem_save_val_1 = NDR_PULL_GET_MEM_CTX(ndr);
11411 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.val, 0);
11412 0 : NDR_CHECK(ndr_pull_lsa_DATA_BUF(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.val));
11413 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_val_1, 0);
11414 : }
11415 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_val_0, LIBNDR_FLAG_REF_ALLOC);
11416 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
11417 : }
11418 0 : return NDR_ERR_SUCCESS;
11419 : }
11420 :
11421 0 : _PUBLIC_ void ndr_print_lsa_RetrievePrivateData(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_RetrievePrivateData *r)
11422 : {
11423 0 : ndr_print_struct(ndr, name, "lsa_RetrievePrivateData");
11424 0 : if (r == NULL) { ndr_print_null(ndr); return; }
11425 0 : ndr->depth++;
11426 0 : if (flags & NDR_SET_VALUES) {
11427 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11428 : }
11429 0 : if (flags & NDR_IN) {
11430 0 : ndr_print_struct(ndr, "in", "lsa_RetrievePrivateData");
11431 0 : ndr->depth++;
11432 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
11433 0 : ndr->depth++;
11434 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
11435 0 : ndr->depth--;
11436 0 : ndr_print_ptr(ndr, "name", r->in.name);
11437 0 : ndr->depth++;
11438 0 : ndr_print_lsa_String(ndr, "name", r->in.name);
11439 0 : ndr->depth--;
11440 0 : ndr_print_ptr(ndr, "val", r->in.val);
11441 0 : ndr->depth++;
11442 0 : ndr_print_ptr(ndr, "val", *r->in.val);
11443 0 : ndr->depth++;
11444 0 : if (*r->in.val) {
11445 0 : ndr_print_lsa_DATA_BUF(ndr, "val", *r->in.val);
11446 : }
11447 0 : ndr->depth--;
11448 0 : ndr->depth--;
11449 0 : ndr->depth--;
11450 : }
11451 0 : if (flags & NDR_OUT) {
11452 0 : ndr_print_struct(ndr, "out", "lsa_RetrievePrivateData");
11453 0 : ndr->depth++;
11454 0 : ndr_print_ptr(ndr, "val", r->out.val);
11455 0 : ndr->depth++;
11456 0 : ndr_print_ptr(ndr, "val", *r->out.val);
11457 0 : ndr->depth++;
11458 0 : if (*r->out.val) {
11459 0 : ndr_print_lsa_DATA_BUF(ndr, "val", *r->out.val);
11460 : }
11461 0 : ndr->depth--;
11462 0 : ndr->depth--;
11463 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
11464 0 : ndr->depth--;
11465 : }
11466 0 : ndr->depth--;
11467 : }
11468 :
11469 6268 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_OpenPolicy2(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_OpenPolicy2 *r)
11470 : {
11471 6268 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11472 6268 : if (flags & NDR_IN) {
11473 3418 : if (r->in.attr == NULL) {
11474 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11475 : }
11476 3418 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.system_name));
11477 3418 : if (r->in.system_name) {
11478 3418 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.system_name, CH_UTF16)));
11479 3418 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
11480 3418 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.system_name, CH_UTF16)));
11481 3418 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.system_name, ndr_charset_length(r->in.system_name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
11482 : }
11483 3418 : NDR_CHECK(ndr_push_lsa_ObjectAttribute(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.attr));
11484 3418 : NDR_CHECK(ndr_push_lsa_PolicyAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
11485 : }
11486 6268 : if (flags & NDR_OUT) {
11487 2850 : if (r->out.handle == NULL) {
11488 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11489 : }
11490 2850 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.handle));
11491 2850 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
11492 : }
11493 6039 : return NDR_ERR_SUCCESS;
11494 : }
11495 :
11496 6075 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_OpenPolicy2(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_OpenPolicy2 *r)
11497 : {
11498 209 : uint32_t _ptr_system_name;
11499 6075 : uint32_t size_system_name_1 = 0;
11500 6075 : uint32_t length_system_name_1 = 0;
11501 6075 : TALLOC_CTX *_mem_save_system_name_0 = NULL;
11502 6075 : TALLOC_CTX *_mem_save_attr_0 = NULL;
11503 6075 : TALLOC_CTX *_mem_save_handle_0 = NULL;
11504 6075 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11505 6075 : if (flags & NDR_IN) {
11506 2700 : NDR_ZERO_STRUCT(r->out);
11507 :
11508 2700 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_system_name));
11509 2700 : if (_ptr_system_name) {
11510 2700 : NDR_PULL_ALLOC(ndr, r->in.system_name);
11511 : } else {
11512 0 : r->in.system_name = NULL;
11513 : }
11514 2700 : if (r->in.system_name) {
11515 2700 : _mem_save_system_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
11516 2700 : NDR_PULL_SET_MEM_CTX(ndr, r->in.system_name, 0);
11517 2700 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.system_name));
11518 2700 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.system_name));
11519 2700 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.system_name, &size_system_name_1));
11520 2700 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.system_name, &length_system_name_1));
11521 2700 : if (length_system_name_1 > size_system_name_1) {
11522 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_system_name_1, length_system_name_1);
11523 : }
11524 2700 : NDR_CHECK(ndr_check_string_terminator(ndr, length_system_name_1, sizeof(uint16_t)));
11525 2700 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.system_name, length_system_name_1, sizeof(uint16_t), CH_UTF16));
11526 2700 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_system_name_0, 0);
11527 : }
11528 2700 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11529 2700 : NDR_PULL_ALLOC(ndr, r->in.attr);
11530 : }
11531 2700 : _mem_save_attr_0 = NDR_PULL_GET_MEM_CTX(ndr);
11532 2700 : NDR_PULL_SET_MEM_CTX(ndr, r->in.attr, LIBNDR_FLAG_REF_ALLOC);
11533 2700 : NDR_CHECK(ndr_pull_lsa_ObjectAttribute(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.attr));
11534 2700 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_attr_0, LIBNDR_FLAG_REF_ALLOC);
11535 2700 : NDR_CHECK(ndr_pull_lsa_PolicyAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
11536 2700 : NDR_PULL_ALLOC(ndr, r->out.handle);
11537 2700 : NDR_ZERO_STRUCTP(r->out.handle);
11538 : }
11539 6075 : if (flags & NDR_OUT) {
11540 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11541 : if (r->in.attr == NULL) {
11542 : NDR_PULL_ALLOC(ndr, r->in.attr);
11543 : NDR_ZERO_STRUCTP(r->in.attr);
11544 : }
11545 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11546 3375 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11547 172 : NDR_PULL_ALLOC(ndr, r->out.handle);
11548 : }
11549 3375 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
11550 3375 : NDR_PULL_SET_MEM_CTX(ndr, r->out.handle, LIBNDR_FLAG_REF_ALLOC);
11551 3375 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.handle));
11552 3375 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
11553 3375 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
11554 : }
11555 5866 : return NDR_ERR_SUCCESS;
11556 : }
11557 :
11558 326 : _PUBLIC_ void ndr_print_lsa_OpenPolicy2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_OpenPolicy2 *r)
11559 : {
11560 326 : ndr_print_struct(ndr, name, "lsa_OpenPolicy2");
11561 326 : if (r == NULL) { ndr_print_null(ndr); return; }
11562 326 : ndr->depth++;
11563 326 : if (flags & NDR_SET_VALUES) {
11564 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11565 : }
11566 326 : if (flags & NDR_IN) {
11567 2 : ndr_print_struct(ndr, "in", "lsa_OpenPolicy2");
11568 2 : ndr->depth++;
11569 2 : ndr_print_ptr(ndr, "system_name", r->in.system_name);
11570 2 : ndr->depth++;
11571 2 : if (r->in.system_name) {
11572 2 : ndr_print_string(ndr, "system_name", r->in.system_name);
11573 : }
11574 2 : ndr->depth--;
11575 2 : ndr_print_ptr(ndr, "attr", r->in.attr);
11576 2 : ndr->depth++;
11577 2 : ndr_print_lsa_ObjectAttribute(ndr, "attr", r->in.attr);
11578 2 : ndr->depth--;
11579 2 : ndr_print_lsa_PolicyAccessMask(ndr, "access_mask", r->in.access_mask);
11580 2 : ndr->depth--;
11581 : }
11582 326 : if (flags & NDR_OUT) {
11583 324 : ndr_print_struct(ndr, "out", "lsa_OpenPolicy2");
11584 324 : ndr->depth++;
11585 324 : ndr_print_ptr(ndr, "handle", r->out.handle);
11586 324 : ndr->depth++;
11587 324 : ndr_print_policy_handle(ndr, "handle", r->out.handle);
11588 324 : ndr->depth--;
11589 324 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
11590 324 : ndr->depth--;
11591 : }
11592 326 : ndr->depth--;
11593 : }
11594 :
11595 1885 : static enum ndr_err_code ndr_push_lsa_GetUserName(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_GetUserName *r)
11596 : {
11597 1885 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11598 1885 : if (flags & NDR_IN) {
11599 1033 : if (r->in.account_name == NULL) {
11600 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11601 : }
11602 1033 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.system_name));
11603 1033 : if (r->in.system_name) {
11604 1021 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.system_name, CH_UTF16)));
11605 1021 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
11606 1021 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.system_name, CH_UTF16)));
11607 1021 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.system_name, ndr_charset_length(r->in.system_name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
11608 : }
11609 1033 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.account_name));
11610 1033 : if (*r->in.account_name) {
11611 0 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.account_name));
11612 : }
11613 1033 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.authority_name));
11614 1033 : if (r->in.authority_name) {
11615 963 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.authority_name));
11616 963 : if (*r->in.authority_name) {
11617 0 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.authority_name));
11618 : }
11619 : }
11620 : }
11621 1885 : if (flags & NDR_OUT) {
11622 852 : if (r->out.account_name == NULL) {
11623 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11624 : }
11625 852 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.account_name));
11626 852 : if (*r->out.account_name) {
11627 852 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.account_name));
11628 : }
11629 852 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.authority_name));
11630 852 : if (r->out.authority_name) {
11631 788 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.authority_name));
11632 788 : if (*r->out.authority_name) {
11633 788 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.authority_name));
11634 : }
11635 : }
11636 852 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
11637 : }
11638 1753 : return NDR_ERR_SUCCESS;
11639 : }
11640 :
11641 1766 : static enum ndr_err_code ndr_pull_lsa_GetUserName(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_GetUserName *r)
11642 : {
11643 120 : uint32_t _ptr_system_name;
11644 1766 : uint32_t size_system_name_1 = 0;
11645 1766 : uint32_t length_system_name_1 = 0;
11646 120 : uint32_t _ptr_account_name;
11647 120 : uint32_t _ptr_authority_name;
11648 1766 : TALLOC_CTX *_mem_save_system_name_0 = NULL;
11649 1766 : TALLOC_CTX *_mem_save_account_name_0 = NULL;
11650 1766 : TALLOC_CTX *_mem_save_account_name_1 = NULL;
11651 1766 : TALLOC_CTX *_mem_save_authority_name_0 = NULL;
11652 1766 : TALLOC_CTX *_mem_save_authority_name_1 = NULL;
11653 1766 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11654 1766 : if (flags & NDR_IN) {
11655 767 : NDR_ZERO_STRUCT(r->out);
11656 :
11657 767 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_system_name));
11658 767 : if (_ptr_system_name) {
11659 761 : NDR_PULL_ALLOC(ndr, r->in.system_name);
11660 : } else {
11661 6 : r->in.system_name = NULL;
11662 : }
11663 767 : if (r->in.system_name) {
11664 761 : _mem_save_system_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
11665 761 : NDR_PULL_SET_MEM_CTX(ndr, r->in.system_name, 0);
11666 761 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.system_name));
11667 761 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.system_name));
11668 761 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.system_name, &size_system_name_1));
11669 761 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.system_name, &length_system_name_1));
11670 761 : if (length_system_name_1 > size_system_name_1) {
11671 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_system_name_1, length_system_name_1);
11672 : }
11673 761 : NDR_CHECK(ndr_check_string_terminator(ndr, length_system_name_1, sizeof(uint16_t)));
11674 761 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.system_name, length_system_name_1, sizeof(uint16_t), CH_UTF16));
11675 761 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_system_name_0, 0);
11676 : }
11677 767 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11678 767 : NDR_PULL_ALLOC(ndr, r->in.account_name);
11679 : }
11680 767 : _mem_save_account_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
11681 767 : NDR_PULL_SET_MEM_CTX(ndr, r->in.account_name, LIBNDR_FLAG_REF_ALLOC);
11682 767 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_account_name));
11683 767 : if (_ptr_account_name) {
11684 0 : NDR_PULL_ALLOC(ndr, *r->in.account_name);
11685 : } else {
11686 767 : *r->in.account_name = NULL;
11687 : }
11688 767 : if (*r->in.account_name) {
11689 0 : _mem_save_account_name_1 = NDR_PULL_GET_MEM_CTX(ndr);
11690 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->in.account_name, 0);
11691 0 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.account_name));
11692 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_account_name_1, 0);
11693 : }
11694 767 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_account_name_0, LIBNDR_FLAG_REF_ALLOC);
11695 767 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_authority_name));
11696 767 : if (_ptr_authority_name) {
11697 707 : NDR_PULL_ALLOC(ndr, r->in.authority_name);
11698 : } else {
11699 60 : r->in.authority_name = NULL;
11700 : }
11701 767 : if (r->in.authority_name) {
11702 707 : _mem_save_authority_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
11703 707 : NDR_PULL_SET_MEM_CTX(ndr, r->in.authority_name, 0);
11704 707 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_authority_name));
11705 707 : if (_ptr_authority_name) {
11706 0 : NDR_PULL_ALLOC(ndr, *r->in.authority_name);
11707 : } else {
11708 707 : *r->in.authority_name = NULL;
11709 : }
11710 707 : if (*r->in.authority_name) {
11711 0 : _mem_save_authority_name_1 = NDR_PULL_GET_MEM_CTX(ndr);
11712 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->in.authority_name, 0);
11713 0 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.authority_name));
11714 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_authority_name_1, 0);
11715 : }
11716 707 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_authority_name_0, 0);
11717 : }
11718 767 : NDR_PULL_ALLOC(ndr, r->out.account_name);
11719 767 : *r->out.account_name = *r->in.account_name;
11720 : }
11721 1766 : if (flags & NDR_OUT) {
11722 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11723 : if (r->in.account_name == NULL) {
11724 : NDR_PULL_ALLOC(ndr, r->in.account_name);
11725 : NDR_ZERO_STRUCTP(r->in.account_name);
11726 : }
11727 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11728 999 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11729 588 : NDR_PULL_ALLOC(ndr, r->out.account_name);
11730 : }
11731 999 : _mem_save_account_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
11732 999 : NDR_PULL_SET_MEM_CTX(ndr, r->out.account_name, LIBNDR_FLAG_REF_ALLOC);
11733 999 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_account_name));
11734 999 : if (_ptr_account_name) {
11735 999 : NDR_PULL_ALLOC(ndr, *r->out.account_name);
11736 : } else {
11737 0 : *r->out.account_name = NULL;
11738 : }
11739 999 : if (*r->out.account_name) {
11740 999 : _mem_save_account_name_1 = NDR_PULL_GET_MEM_CTX(ndr);
11741 999 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.account_name, 0);
11742 999 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.account_name));
11743 999 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_account_name_1, 0);
11744 : }
11745 999 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_account_name_0, LIBNDR_FLAG_REF_ALLOC);
11746 999 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_authority_name));
11747 999 : if (_ptr_authority_name) {
11748 933 : NDR_PULL_ALLOC(ndr, r->out.authority_name);
11749 : } else {
11750 66 : r->out.authority_name = NULL;
11751 : }
11752 999 : if (r->out.authority_name) {
11753 933 : _mem_save_authority_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
11754 933 : NDR_PULL_SET_MEM_CTX(ndr, r->out.authority_name, 0);
11755 933 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_authority_name));
11756 933 : if (_ptr_authority_name) {
11757 933 : NDR_PULL_ALLOC(ndr, *r->out.authority_name);
11758 : } else {
11759 0 : *r->out.authority_name = NULL;
11760 : }
11761 933 : if (*r->out.authority_name) {
11762 933 : _mem_save_authority_name_1 = NDR_PULL_GET_MEM_CTX(ndr);
11763 933 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.authority_name, 0);
11764 933 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.authority_name));
11765 933 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_authority_name_1, 0);
11766 : }
11767 933 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_authority_name_0, 0);
11768 : }
11769 999 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
11770 : }
11771 1646 : return NDR_ERR_SUCCESS;
11772 : }
11773 :
11774 178 : _PUBLIC_ void ndr_print_lsa_GetUserName(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_GetUserName *r)
11775 : {
11776 178 : ndr_print_struct(ndr, name, "lsa_GetUserName");
11777 178 : if (r == NULL) { ndr_print_null(ndr); return; }
11778 178 : ndr->depth++;
11779 178 : if (flags & NDR_SET_VALUES) {
11780 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11781 : }
11782 178 : if (flags & NDR_IN) {
11783 0 : ndr_print_struct(ndr, "in", "lsa_GetUserName");
11784 0 : ndr->depth++;
11785 0 : ndr_print_ptr(ndr, "system_name", r->in.system_name);
11786 0 : ndr->depth++;
11787 0 : if (r->in.system_name) {
11788 0 : ndr_print_string(ndr, "system_name", r->in.system_name);
11789 : }
11790 0 : ndr->depth--;
11791 0 : ndr_print_ptr(ndr, "account_name", r->in.account_name);
11792 0 : ndr->depth++;
11793 0 : ndr_print_ptr(ndr, "account_name", *r->in.account_name);
11794 0 : ndr->depth++;
11795 0 : if (*r->in.account_name) {
11796 0 : ndr_print_lsa_String(ndr, "account_name", *r->in.account_name);
11797 : }
11798 0 : ndr->depth--;
11799 0 : ndr->depth--;
11800 0 : ndr_print_ptr(ndr, "authority_name", r->in.authority_name);
11801 0 : ndr->depth++;
11802 0 : if (r->in.authority_name) {
11803 0 : ndr_print_ptr(ndr, "authority_name", *r->in.authority_name);
11804 0 : ndr->depth++;
11805 0 : if (*r->in.authority_name) {
11806 0 : ndr_print_lsa_String(ndr, "authority_name", *r->in.authority_name);
11807 : }
11808 0 : ndr->depth--;
11809 : }
11810 0 : ndr->depth--;
11811 0 : ndr->depth--;
11812 : }
11813 178 : if (flags & NDR_OUT) {
11814 178 : ndr_print_struct(ndr, "out", "lsa_GetUserName");
11815 178 : ndr->depth++;
11816 178 : ndr_print_ptr(ndr, "account_name", r->out.account_name);
11817 178 : ndr->depth++;
11818 178 : ndr_print_ptr(ndr, "account_name", *r->out.account_name);
11819 178 : ndr->depth++;
11820 178 : if (*r->out.account_name) {
11821 178 : ndr_print_lsa_String(ndr, "account_name", *r->out.account_name);
11822 : }
11823 178 : ndr->depth--;
11824 178 : ndr->depth--;
11825 178 : ndr_print_ptr(ndr, "authority_name", r->out.authority_name);
11826 178 : ndr->depth++;
11827 178 : if (r->out.authority_name) {
11828 162 : ndr_print_ptr(ndr, "authority_name", *r->out.authority_name);
11829 162 : ndr->depth++;
11830 162 : if (*r->out.authority_name) {
11831 162 : ndr_print_lsa_String(ndr, "authority_name", *r->out.authority_name);
11832 : }
11833 162 : ndr->depth--;
11834 : }
11835 178 : ndr->depth--;
11836 178 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
11837 178 : ndr->depth--;
11838 : }
11839 178 : ndr->depth--;
11840 : }
11841 :
11842 2726 : static enum ndr_err_code ndr_push_lsa_QueryInfoPolicy2(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_QueryInfoPolicy2 *r)
11843 : {
11844 2726 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11845 2726 : if (flags & NDR_IN) {
11846 1353 : if (r->in.handle == NULL) {
11847 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11848 : }
11849 1353 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
11850 1445 : NDR_CHECK(ndr_push_lsa_PolicyInfo(ndr, NDR_SCALARS, r->in.level));
11851 : }
11852 2726 : if (flags & NDR_OUT) {
11853 1373 : if (r->out.info == NULL) {
11854 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11855 : }
11856 1373 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.info));
11857 1373 : if (*r->out.info) {
11858 1313 : NDR_CHECK(ndr_push_set_switch_value(ndr, *r->out.info, r->in.level));
11859 1313 : NDR_CHECK(ndr_push_lsa_PolicyInformation(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
11860 : }
11861 1373 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
11862 : }
11863 2524 : return NDR_ERR_SUCCESS;
11864 : }
11865 :
11866 2451 : static enum ndr_err_code ndr_pull_lsa_QueryInfoPolicy2(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_QueryInfoPolicy2 *r)
11867 : {
11868 184 : uint32_t _ptr_info;
11869 2451 : TALLOC_CTX *_mem_save_handle_0 = NULL;
11870 2451 : TALLOC_CTX *_mem_save_info_0 = NULL;
11871 2451 : TALLOC_CTX *_mem_save_info_1 = NULL;
11872 2451 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11873 2451 : if (flags & NDR_IN) {
11874 1292 : NDR_ZERO_STRUCT(r->out);
11875 :
11876 1292 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11877 1292 : NDR_PULL_ALLOC(ndr, r->in.handle);
11878 : }
11879 1292 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
11880 1292 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
11881 1292 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
11882 1292 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
11883 1384 : NDR_CHECK(ndr_pull_lsa_PolicyInfo(ndr, NDR_SCALARS, &r->in.level));
11884 1292 : NDR_PULL_ALLOC(ndr, r->out.info);
11885 1292 : NDR_ZERO_STRUCTP(r->out.info);
11886 : }
11887 2451 : if (flags & NDR_OUT) {
11888 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
11889 : if (r->in.handle == NULL) {
11890 : NDR_PULL_ALLOC(ndr, r->in.handle);
11891 : NDR_ZERO_STRUCTP(r->in.handle);
11892 : }
11893 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
11894 1159 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11895 469 : NDR_PULL_ALLOC(ndr, r->out.info);
11896 : }
11897 1159 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
11898 1159 : NDR_PULL_SET_MEM_CTX(ndr, r->out.info, LIBNDR_FLAG_REF_ALLOC);
11899 1159 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
11900 1159 : if (_ptr_info) {
11901 1111 : NDR_PULL_ALLOC(ndr, *r->out.info);
11902 : } else {
11903 48 : *r->out.info = NULL;
11904 : }
11905 1159 : if (*r->out.info) {
11906 1111 : _mem_save_info_1 = NDR_PULL_GET_MEM_CTX(ndr);
11907 1111 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.info, 0);
11908 1111 : NDR_CHECK(ndr_pull_set_switch_value(ndr, *r->out.info, r->in.level));
11909 1111 : NDR_CHECK(ndr_pull_lsa_PolicyInformation(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
11910 1111 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_1, 0);
11911 : }
11912 1159 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
11913 1159 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
11914 : }
11915 2267 : return NDR_ERR_SUCCESS;
11916 : }
11917 :
11918 364 : _PUBLIC_ void ndr_print_lsa_QueryInfoPolicy2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_QueryInfoPolicy2 *r)
11919 : {
11920 364 : ndr_print_struct(ndr, name, "lsa_QueryInfoPolicy2");
11921 364 : if (r == NULL) { ndr_print_null(ndr); return; }
11922 364 : ndr->depth++;
11923 364 : if (flags & NDR_SET_VALUES) {
11924 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
11925 : }
11926 364 : if (flags & NDR_IN) {
11927 0 : ndr_print_struct(ndr, "in", "lsa_QueryInfoPolicy2");
11928 0 : ndr->depth++;
11929 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
11930 0 : ndr->depth++;
11931 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
11932 0 : ndr->depth--;
11933 0 : ndr_print_lsa_PolicyInfo(ndr, "level", r->in.level);
11934 0 : ndr->depth--;
11935 : }
11936 364 : if (flags & NDR_OUT) {
11937 364 : ndr_print_struct(ndr, "out", "lsa_QueryInfoPolicy2");
11938 364 : ndr->depth++;
11939 364 : ndr_print_ptr(ndr, "info", r->out.info);
11940 364 : ndr->depth++;
11941 364 : ndr_print_ptr(ndr, "info", *r->out.info);
11942 364 : ndr->depth++;
11943 364 : if (*r->out.info) {
11944 340 : ndr_print_set_switch_value(ndr, *r->out.info, r->in.level);
11945 340 : ndr_print_lsa_PolicyInformation(ndr, "info", *r->out.info);
11946 : }
11947 364 : ndr->depth--;
11948 364 : ndr->depth--;
11949 364 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
11950 364 : ndr->depth--;
11951 : }
11952 364 : ndr->depth--;
11953 : }
11954 :
11955 0 : static enum ndr_err_code ndr_push_lsa_SetInfoPolicy2(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_SetInfoPolicy2 *r)
11956 : {
11957 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
11958 0 : if (flags & NDR_IN) {
11959 0 : if (r->in.handle == NULL) {
11960 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11961 : }
11962 0 : if (r->in.info == NULL) {
11963 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
11964 : }
11965 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
11966 0 : NDR_CHECK(ndr_push_lsa_PolicyInfo(ndr, NDR_SCALARS, r->in.level));
11967 0 : NDR_CHECK(ndr_push_set_switch_value(ndr, r->in.info, r->in.level));
11968 0 : NDR_CHECK(ndr_push_lsa_PolicyInformation(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
11969 : }
11970 0 : if (flags & NDR_OUT) {
11971 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
11972 : }
11973 0 : return NDR_ERR_SUCCESS;
11974 : }
11975 :
11976 0 : static enum ndr_err_code ndr_pull_lsa_SetInfoPolicy2(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_SetInfoPolicy2 *r)
11977 : {
11978 0 : TALLOC_CTX *_mem_save_handle_0 = NULL;
11979 0 : TALLOC_CTX *_mem_save_info_0 = NULL;
11980 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
11981 0 : if (flags & NDR_IN) {
11982 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11983 0 : NDR_PULL_ALLOC(ndr, r->in.handle);
11984 : }
11985 0 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
11986 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
11987 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
11988 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
11989 0 : NDR_CHECK(ndr_pull_lsa_PolicyInfo(ndr, NDR_SCALARS, &r->in.level));
11990 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
11991 0 : NDR_PULL_ALLOC(ndr, r->in.info);
11992 : }
11993 0 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
11994 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.info, LIBNDR_FLAG_REF_ALLOC);
11995 0 : NDR_CHECK(ndr_pull_set_switch_value(ndr, r->in.info, r->in.level));
11996 0 : NDR_CHECK(ndr_pull_lsa_PolicyInformation(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
11997 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
11998 : }
11999 0 : if (flags & NDR_OUT) {
12000 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12001 : if (r->in.handle == NULL) {
12002 : NDR_PULL_ALLOC(ndr, r->in.handle);
12003 : NDR_ZERO_STRUCTP(r->in.handle);
12004 : }
12005 : if (r->in.info == NULL) {
12006 : NDR_PULL_ALLOC(ndr, r->in.info);
12007 : NDR_ZERO_STRUCTP(r->in.info);
12008 : }
12009 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12010 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
12011 : }
12012 0 : return NDR_ERR_SUCCESS;
12013 : }
12014 :
12015 0 : _PUBLIC_ void ndr_print_lsa_SetInfoPolicy2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_SetInfoPolicy2 *r)
12016 : {
12017 0 : ndr_print_struct(ndr, name, "lsa_SetInfoPolicy2");
12018 0 : if (r == NULL) { ndr_print_null(ndr); return; }
12019 0 : ndr->depth++;
12020 0 : if (flags & NDR_SET_VALUES) {
12021 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12022 : }
12023 0 : if (flags & NDR_IN) {
12024 0 : ndr_print_struct(ndr, "in", "lsa_SetInfoPolicy2");
12025 0 : ndr->depth++;
12026 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
12027 0 : ndr->depth++;
12028 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
12029 0 : ndr->depth--;
12030 0 : ndr_print_lsa_PolicyInfo(ndr, "level", r->in.level);
12031 0 : ndr_print_ptr(ndr, "info", r->in.info);
12032 0 : ndr->depth++;
12033 0 : ndr_print_set_switch_value(ndr, r->in.info, r->in.level);
12034 0 : ndr_print_lsa_PolicyInformation(ndr, "info", r->in.info);
12035 0 : ndr->depth--;
12036 0 : ndr->depth--;
12037 : }
12038 0 : if (flags & NDR_OUT) {
12039 0 : ndr_print_struct(ndr, "out", "lsa_SetInfoPolicy2");
12040 0 : ndr->depth++;
12041 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
12042 0 : ndr->depth--;
12043 : }
12044 0 : ndr->depth--;
12045 : }
12046 :
12047 6143 : static enum ndr_err_code ndr_push_lsa_QueryTrustedDomainInfoByName(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_QueryTrustedDomainInfoByName *r)
12048 : {
12049 6143 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12050 6143 : if (flags & NDR_IN) {
12051 2719 : if (r->in.handle == NULL) {
12052 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12053 : }
12054 2719 : if (r->in.trusted_domain == NULL) {
12055 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12056 : }
12057 2719 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12058 2719 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.trusted_domain));
12059 2719 : NDR_CHECK(ndr_push_lsa_TrustDomInfoEnum(ndr, NDR_SCALARS, r->in.level));
12060 : }
12061 6143 : if (flags & NDR_OUT) {
12062 3424 : if (r->out.info == NULL) {
12063 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12064 : }
12065 3424 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.info));
12066 3424 : if (*r->out.info) {
12067 1687 : NDR_CHECK(ndr_push_set_switch_value(ndr, *r->out.info, r->in.level));
12068 1687 : NDR_CHECK(ndr_push_lsa_TrustedDomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
12069 : }
12070 3424 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
12071 : }
12072 6143 : return NDR_ERR_SUCCESS;
12073 : }
12074 :
12075 5511 : static enum ndr_err_code ndr_pull_lsa_QueryTrustedDomainInfoByName(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_QueryTrustedDomainInfoByName *r)
12076 : {
12077 0 : uint32_t _ptr_info;
12078 5511 : TALLOC_CTX *_mem_save_handle_0 = NULL;
12079 5511 : TALLOC_CTX *_mem_save_trusted_domain_0 = NULL;
12080 5511 : TALLOC_CTX *_mem_save_info_0 = NULL;
12081 5511 : TALLOC_CTX *_mem_save_info_1 = NULL;
12082 5511 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12083 5511 : if (flags & NDR_IN) {
12084 2792 : NDR_ZERO_STRUCT(r->out);
12085 :
12086 2792 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12087 2792 : NDR_PULL_ALLOC(ndr, r->in.handle);
12088 : }
12089 2792 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
12090 2792 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
12091 2792 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12092 2792 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
12093 2792 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12094 2792 : NDR_PULL_ALLOC(ndr, r->in.trusted_domain);
12095 : }
12096 2792 : _mem_save_trusted_domain_0 = NDR_PULL_GET_MEM_CTX(ndr);
12097 2792 : NDR_PULL_SET_MEM_CTX(ndr, r->in.trusted_domain, LIBNDR_FLAG_REF_ALLOC);
12098 2792 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.trusted_domain));
12099 2792 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trusted_domain_0, LIBNDR_FLAG_REF_ALLOC);
12100 2792 : NDR_CHECK(ndr_pull_lsa_TrustDomInfoEnum(ndr, NDR_SCALARS, &r->in.level));
12101 2792 : NDR_PULL_ALLOC(ndr, r->out.info);
12102 2792 : NDR_ZERO_STRUCTP(r->out.info);
12103 : }
12104 5511 : if (flags & NDR_OUT) {
12105 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12106 : if (r->in.handle == NULL) {
12107 : NDR_PULL_ALLOC(ndr, r->in.handle);
12108 : NDR_ZERO_STRUCTP(r->in.handle);
12109 : }
12110 : if (r->in.trusted_domain == NULL) {
12111 : NDR_PULL_ALLOC(ndr, r->in.trusted_domain);
12112 : NDR_ZERO_STRUCTP(r->in.trusted_domain);
12113 : }
12114 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12115 2719 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12116 823 : NDR_PULL_ALLOC(ndr, r->out.info);
12117 : }
12118 2719 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
12119 2719 : NDR_PULL_SET_MEM_CTX(ndr, r->out.info, LIBNDR_FLAG_REF_ALLOC);
12120 2719 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
12121 2719 : if (_ptr_info) {
12122 1320 : NDR_PULL_ALLOC(ndr, *r->out.info);
12123 : } else {
12124 1399 : *r->out.info = NULL;
12125 : }
12126 2719 : if (*r->out.info) {
12127 1320 : _mem_save_info_1 = NDR_PULL_GET_MEM_CTX(ndr);
12128 1320 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.info, 0);
12129 1320 : NDR_CHECK(ndr_pull_set_switch_value(ndr, *r->out.info, r->in.level));
12130 1320 : NDR_CHECK(ndr_pull_lsa_TrustedDomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
12131 1320 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_1, 0);
12132 : }
12133 2719 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
12134 2719 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
12135 : }
12136 5511 : return NDR_ERR_SUCCESS;
12137 : }
12138 :
12139 1264 : _PUBLIC_ void ndr_print_lsa_QueryTrustedDomainInfoByName(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_QueryTrustedDomainInfoByName *r)
12140 : {
12141 1264 : ndr_print_struct(ndr, name, "lsa_QueryTrustedDomainInfoByName");
12142 1264 : if (r == NULL) { ndr_print_null(ndr); return; }
12143 1264 : ndr->depth++;
12144 1264 : if (flags & NDR_SET_VALUES) {
12145 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12146 : }
12147 1264 : if (flags & NDR_IN) {
12148 0 : ndr_print_struct(ndr, "in", "lsa_QueryTrustedDomainInfoByName");
12149 0 : ndr->depth++;
12150 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
12151 0 : ndr->depth++;
12152 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
12153 0 : ndr->depth--;
12154 0 : ndr_print_ptr(ndr, "trusted_domain", r->in.trusted_domain);
12155 0 : ndr->depth++;
12156 0 : ndr_print_lsa_String(ndr, "trusted_domain", r->in.trusted_domain);
12157 0 : ndr->depth--;
12158 0 : ndr_print_lsa_TrustDomInfoEnum(ndr, "level", r->in.level);
12159 0 : ndr->depth--;
12160 : }
12161 1264 : if (flags & NDR_OUT) {
12162 1264 : ndr_print_struct(ndr, "out", "lsa_QueryTrustedDomainInfoByName");
12163 1264 : ndr->depth++;
12164 1264 : ndr_print_ptr(ndr, "info", r->out.info);
12165 1264 : ndr->depth++;
12166 1264 : ndr_print_ptr(ndr, "info", *r->out.info);
12167 1264 : ndr->depth++;
12168 1264 : if (*r->out.info) {
12169 588 : ndr_print_set_switch_value(ndr, *r->out.info, r->in.level);
12170 588 : ndr_print_lsa_TrustedDomainInfo(ndr, "info", *r->out.info);
12171 : }
12172 1264 : ndr->depth--;
12173 1264 : ndr->depth--;
12174 1264 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
12175 1264 : ndr->depth--;
12176 : }
12177 1264 : ndr->depth--;
12178 : }
12179 :
12180 54 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_SetTrustedDomainInfoByName(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_SetTrustedDomainInfoByName *r)
12181 : {
12182 54 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12183 54 : if (flags & NDR_IN) {
12184 24 : if (r->in.handle == NULL) {
12185 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12186 : }
12187 24 : if (r->in.trusted_domain == NULL) {
12188 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12189 : }
12190 24 : if (r->in.info == NULL) {
12191 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12192 : }
12193 24 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12194 24 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.trusted_domain));
12195 24 : NDR_CHECK(ndr_push_lsa_TrustDomInfoEnum(ndr, NDR_SCALARS, r->in.level));
12196 24 : NDR_CHECK(ndr_push_set_switch_value(ndr, r->in.info, r->in.level));
12197 24 : NDR_CHECK(ndr_push_lsa_TrustedDomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
12198 : }
12199 54 : if (flags & NDR_OUT) {
12200 30 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
12201 : }
12202 54 : return NDR_ERR_SUCCESS;
12203 : }
12204 :
12205 50 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_SetTrustedDomainInfoByName(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_SetTrustedDomainInfoByName *r)
12206 : {
12207 50 : TALLOC_CTX *_mem_save_handle_0 = NULL;
12208 50 : TALLOC_CTX *_mem_save_trusted_domain_0 = NULL;
12209 50 : TALLOC_CTX *_mem_save_info_0 = NULL;
12210 50 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12211 50 : if (flags & NDR_IN) {
12212 26 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12213 26 : NDR_PULL_ALLOC(ndr, r->in.handle);
12214 : }
12215 26 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
12216 26 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
12217 26 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12218 26 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
12219 26 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12220 26 : NDR_PULL_ALLOC(ndr, r->in.trusted_domain);
12221 : }
12222 26 : _mem_save_trusted_domain_0 = NDR_PULL_GET_MEM_CTX(ndr);
12223 26 : NDR_PULL_SET_MEM_CTX(ndr, r->in.trusted_domain, LIBNDR_FLAG_REF_ALLOC);
12224 26 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.trusted_domain));
12225 26 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trusted_domain_0, LIBNDR_FLAG_REF_ALLOC);
12226 28 : NDR_CHECK(ndr_pull_lsa_TrustDomInfoEnum(ndr, NDR_SCALARS, &r->in.level));
12227 26 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12228 26 : NDR_PULL_ALLOC(ndr, r->in.info);
12229 : }
12230 26 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
12231 26 : NDR_PULL_SET_MEM_CTX(ndr, r->in.info, LIBNDR_FLAG_REF_ALLOC);
12232 26 : NDR_CHECK(ndr_pull_set_switch_value(ndr, r->in.info, r->in.level));
12233 26 : NDR_CHECK(ndr_pull_lsa_TrustedDomainInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
12234 26 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
12235 : }
12236 50 : if (flags & NDR_OUT) {
12237 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12238 : if (r->in.handle == NULL) {
12239 : NDR_PULL_ALLOC(ndr, r->in.handle);
12240 : NDR_ZERO_STRUCTP(r->in.handle);
12241 : }
12242 : if (r->in.trusted_domain == NULL) {
12243 : NDR_PULL_ALLOC(ndr, r->in.trusted_domain);
12244 : NDR_ZERO_STRUCTP(r->in.trusted_domain);
12245 : }
12246 : if (r->in.info == NULL) {
12247 : NDR_PULL_ALLOC(ndr, r->in.info);
12248 : NDR_ZERO_STRUCTP(r->in.info);
12249 : }
12250 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12251 24 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
12252 : }
12253 48 : return NDR_ERR_SUCCESS;
12254 : }
12255 :
12256 14 : _PUBLIC_ void ndr_print_lsa_SetTrustedDomainInfoByName(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_SetTrustedDomainInfoByName *r)
12257 : {
12258 14 : ndr_print_struct(ndr, name, "lsa_SetTrustedDomainInfoByName");
12259 14 : if (r == NULL) { ndr_print_null(ndr); return; }
12260 14 : ndr->depth++;
12261 14 : if (flags & NDR_SET_VALUES) {
12262 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12263 : }
12264 14 : if (flags & NDR_IN) {
12265 2 : ndr_print_struct(ndr, "in", "lsa_SetTrustedDomainInfoByName");
12266 2 : ndr->depth++;
12267 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
12268 2 : ndr->depth++;
12269 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
12270 2 : ndr->depth--;
12271 2 : ndr_print_ptr(ndr, "trusted_domain", r->in.trusted_domain);
12272 2 : ndr->depth++;
12273 2 : ndr_print_lsa_String(ndr, "trusted_domain", r->in.trusted_domain);
12274 2 : ndr->depth--;
12275 2 : ndr_print_lsa_TrustDomInfoEnum(ndr, "level", r->in.level);
12276 2 : ndr_print_ptr(ndr, "info", r->in.info);
12277 2 : ndr->depth++;
12278 2 : ndr_print_set_switch_value(ndr, r->in.info, r->in.level);
12279 2 : ndr_print_lsa_TrustedDomainInfo(ndr, "info", r->in.info);
12280 2 : ndr->depth--;
12281 2 : ndr->depth--;
12282 : }
12283 14 : if (flags & NDR_OUT) {
12284 12 : ndr_print_struct(ndr, "out", "lsa_SetTrustedDomainInfoByName");
12285 12 : ndr->depth++;
12286 12 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
12287 12 : ndr->depth--;
12288 : }
12289 14 : ndr->depth--;
12290 : }
12291 :
12292 162 : static enum ndr_err_code ndr_push_lsa_EnumTrustedDomainsEx(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_EnumTrustedDomainsEx *r)
12293 : {
12294 162 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12295 162 : if (flags & NDR_IN) {
12296 72 : if (r->in.handle == NULL) {
12297 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12298 : }
12299 72 : if (r->in.resume_handle == NULL) {
12300 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12301 : }
12302 72 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12303 72 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.resume_handle));
12304 72 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.max_size));
12305 : }
12306 162 : if (flags & NDR_OUT) {
12307 90 : if (r->out.resume_handle == NULL) {
12308 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12309 : }
12310 90 : if (r->out.domains == NULL) {
12311 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12312 : }
12313 90 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.resume_handle));
12314 90 : NDR_CHECK(ndr_push_lsa_DomainListEx(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.domains));
12315 90 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
12316 : }
12317 162 : return NDR_ERR_SUCCESS;
12318 : }
12319 :
12320 144 : static enum ndr_err_code ndr_pull_lsa_EnumTrustedDomainsEx(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_EnumTrustedDomainsEx *r)
12321 : {
12322 144 : TALLOC_CTX *_mem_save_handle_0 = NULL;
12323 144 : TALLOC_CTX *_mem_save_resume_handle_0 = NULL;
12324 144 : TALLOC_CTX *_mem_save_domains_0 = NULL;
12325 144 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12326 144 : if (flags & NDR_IN) {
12327 72 : NDR_ZERO_STRUCT(r->out);
12328 :
12329 72 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12330 72 : NDR_PULL_ALLOC(ndr, r->in.handle);
12331 : }
12332 72 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
12333 72 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
12334 72 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12335 72 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
12336 72 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12337 72 : NDR_PULL_ALLOC(ndr, r->in.resume_handle);
12338 : }
12339 72 : _mem_save_resume_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
12340 72 : NDR_PULL_SET_MEM_CTX(ndr, r->in.resume_handle, LIBNDR_FLAG_REF_ALLOC);
12341 72 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.resume_handle));
12342 72 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_resume_handle_0, LIBNDR_FLAG_REF_ALLOC);
12343 72 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.max_size));
12344 72 : NDR_PULL_ALLOC(ndr, r->out.resume_handle);
12345 72 : *r->out.resume_handle = *r->in.resume_handle;
12346 72 : NDR_PULL_ALLOC(ndr, r->out.domains);
12347 72 : NDR_ZERO_STRUCTP(r->out.domains);
12348 : }
12349 144 : if (flags & NDR_OUT) {
12350 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12351 : if (r->in.handle == NULL) {
12352 : NDR_PULL_ALLOC(ndr, r->in.handle);
12353 : NDR_ZERO_STRUCTP(r->in.handle);
12354 : }
12355 : if (r->in.resume_handle == NULL) {
12356 : NDR_PULL_ALLOC(ndr, r->in.resume_handle);
12357 : NDR_ZERO_STRUCTP(r->in.resume_handle);
12358 : }
12359 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12360 72 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12361 18 : NDR_PULL_ALLOC(ndr, r->out.resume_handle);
12362 : }
12363 72 : _mem_save_resume_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
12364 72 : NDR_PULL_SET_MEM_CTX(ndr, r->out.resume_handle, LIBNDR_FLAG_REF_ALLOC);
12365 72 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.resume_handle));
12366 72 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_resume_handle_0, LIBNDR_FLAG_REF_ALLOC);
12367 72 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12368 18 : NDR_PULL_ALLOC(ndr, r->out.domains);
12369 : }
12370 72 : _mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
12371 72 : NDR_PULL_SET_MEM_CTX(ndr, r->out.domains, LIBNDR_FLAG_REF_ALLOC);
12372 72 : NDR_CHECK(ndr_pull_lsa_DomainListEx(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.domains));
12373 72 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, LIBNDR_FLAG_REF_ALLOC);
12374 72 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
12375 : }
12376 144 : return NDR_ERR_SUCCESS;
12377 : }
12378 :
12379 36 : _PUBLIC_ void ndr_print_lsa_EnumTrustedDomainsEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_EnumTrustedDomainsEx *r)
12380 : {
12381 36 : ndr_print_struct(ndr, name, "lsa_EnumTrustedDomainsEx");
12382 36 : if (r == NULL) { ndr_print_null(ndr); return; }
12383 36 : ndr->depth++;
12384 36 : if (flags & NDR_SET_VALUES) {
12385 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12386 : }
12387 36 : if (flags & NDR_IN) {
12388 0 : ndr_print_struct(ndr, "in", "lsa_EnumTrustedDomainsEx");
12389 0 : ndr->depth++;
12390 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
12391 0 : ndr->depth++;
12392 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
12393 0 : ndr->depth--;
12394 0 : ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
12395 0 : ndr->depth++;
12396 0 : ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
12397 0 : ndr->depth--;
12398 0 : ndr_print_uint32(ndr, "max_size", r->in.max_size);
12399 0 : ndr->depth--;
12400 : }
12401 36 : if (flags & NDR_OUT) {
12402 36 : ndr_print_struct(ndr, "out", "lsa_EnumTrustedDomainsEx");
12403 36 : ndr->depth++;
12404 36 : ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
12405 36 : ndr->depth++;
12406 36 : ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
12407 36 : ndr->depth--;
12408 36 : ndr_print_ptr(ndr, "domains", r->out.domains);
12409 36 : ndr->depth++;
12410 36 : ndr_print_lsa_DomainListEx(ndr, "domains", r->out.domains);
12411 36 : ndr->depth--;
12412 36 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
12413 36 : ndr->depth--;
12414 : }
12415 36 : ndr->depth--;
12416 : }
12417 :
12418 108 : static enum ndr_err_code ndr_push_lsa_CreateTrustedDomainEx(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CreateTrustedDomainEx *r)
12419 : {
12420 108 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12421 108 : if (flags & NDR_IN) {
12422 48 : if (r->in.policy_handle == NULL) {
12423 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12424 : }
12425 48 : if (r->in.info == NULL) {
12426 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12427 : }
12428 48 : if (r->in.auth_info == NULL) {
12429 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12430 : }
12431 48 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.policy_handle));
12432 48 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
12433 48 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.auth_info));
12434 48 : NDR_CHECK(ndr_push_lsa_TrustedAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
12435 : }
12436 108 : if (flags & NDR_OUT) {
12437 60 : if (r->out.trustdom_handle == NULL) {
12438 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12439 : }
12440 60 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.trustdom_handle));
12441 60 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
12442 : }
12443 108 : return NDR_ERR_SUCCESS;
12444 : }
12445 :
12446 96 : static enum ndr_err_code ndr_pull_lsa_CreateTrustedDomainEx(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CreateTrustedDomainEx *r)
12447 : {
12448 96 : TALLOC_CTX *_mem_save_policy_handle_0 = NULL;
12449 96 : TALLOC_CTX *_mem_save_info_0 = NULL;
12450 96 : TALLOC_CTX *_mem_save_auth_info_0 = NULL;
12451 96 : TALLOC_CTX *_mem_save_trustdom_handle_0 = NULL;
12452 96 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12453 96 : if (flags & NDR_IN) {
12454 48 : NDR_ZERO_STRUCT(r->out);
12455 :
12456 48 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12457 48 : NDR_PULL_ALLOC(ndr, r->in.policy_handle);
12458 : }
12459 48 : _mem_save_policy_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
12460 48 : NDR_PULL_SET_MEM_CTX(ndr, r->in.policy_handle, LIBNDR_FLAG_REF_ALLOC);
12461 48 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.policy_handle));
12462 48 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_policy_handle_0, LIBNDR_FLAG_REF_ALLOC);
12463 48 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12464 48 : NDR_PULL_ALLOC(ndr, r->in.info);
12465 : }
12466 48 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
12467 48 : NDR_PULL_SET_MEM_CTX(ndr, r->in.info, LIBNDR_FLAG_REF_ALLOC);
12468 48 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
12469 48 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
12470 48 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12471 48 : NDR_PULL_ALLOC(ndr, r->in.auth_info);
12472 : }
12473 48 : _mem_save_auth_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
12474 48 : NDR_PULL_SET_MEM_CTX(ndr, r->in.auth_info, LIBNDR_FLAG_REF_ALLOC);
12475 48 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.auth_info));
12476 48 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_auth_info_0, LIBNDR_FLAG_REF_ALLOC);
12477 48 : NDR_CHECK(ndr_pull_lsa_TrustedAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
12478 48 : NDR_PULL_ALLOC(ndr, r->out.trustdom_handle);
12479 48 : NDR_ZERO_STRUCTP(r->out.trustdom_handle);
12480 : }
12481 96 : if (flags & NDR_OUT) {
12482 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12483 : if (r->in.policy_handle == NULL) {
12484 : NDR_PULL_ALLOC(ndr, r->in.policy_handle);
12485 : NDR_ZERO_STRUCTP(r->in.policy_handle);
12486 : }
12487 : if (r->in.info == NULL) {
12488 : NDR_PULL_ALLOC(ndr, r->in.info);
12489 : NDR_ZERO_STRUCTP(r->in.info);
12490 : }
12491 : if (r->in.auth_info == NULL) {
12492 : NDR_PULL_ALLOC(ndr, r->in.auth_info);
12493 : NDR_ZERO_STRUCTP(r->in.auth_info);
12494 : }
12495 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12496 48 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12497 12 : NDR_PULL_ALLOC(ndr, r->out.trustdom_handle);
12498 : }
12499 48 : _mem_save_trustdom_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
12500 48 : NDR_PULL_SET_MEM_CTX(ndr, r->out.trustdom_handle, LIBNDR_FLAG_REF_ALLOC);
12501 48 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.trustdom_handle));
12502 48 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trustdom_handle_0, LIBNDR_FLAG_REF_ALLOC);
12503 48 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
12504 : }
12505 96 : return NDR_ERR_SUCCESS;
12506 : }
12507 :
12508 24 : _PUBLIC_ void ndr_print_lsa_CreateTrustedDomainEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CreateTrustedDomainEx *r)
12509 : {
12510 24 : ndr_print_struct(ndr, name, "lsa_CreateTrustedDomainEx");
12511 24 : if (r == NULL) { ndr_print_null(ndr); return; }
12512 24 : ndr->depth++;
12513 24 : if (flags & NDR_SET_VALUES) {
12514 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12515 : }
12516 24 : if (flags & NDR_IN) {
12517 0 : ndr_print_struct(ndr, "in", "lsa_CreateTrustedDomainEx");
12518 0 : ndr->depth++;
12519 0 : ndr_print_ptr(ndr, "policy_handle", r->in.policy_handle);
12520 0 : ndr->depth++;
12521 0 : ndr_print_policy_handle(ndr, "policy_handle", r->in.policy_handle);
12522 0 : ndr->depth--;
12523 0 : ndr_print_ptr(ndr, "info", r->in.info);
12524 0 : ndr->depth++;
12525 0 : ndr_print_lsa_TrustDomainInfoInfoEx(ndr, "info", r->in.info);
12526 0 : ndr->depth--;
12527 0 : ndr_print_ptr(ndr, "auth_info", r->in.auth_info);
12528 0 : ndr->depth++;
12529 0 : ndr_print_lsa_TrustDomainInfoAuthInfo(ndr, "auth_info", r->in.auth_info);
12530 0 : ndr->depth--;
12531 0 : ndr_print_lsa_TrustedAccessMask(ndr, "access_mask", r->in.access_mask);
12532 0 : ndr->depth--;
12533 : }
12534 24 : if (flags & NDR_OUT) {
12535 24 : ndr_print_struct(ndr, "out", "lsa_CreateTrustedDomainEx");
12536 24 : ndr->depth++;
12537 24 : ndr_print_ptr(ndr, "trustdom_handle", r->out.trustdom_handle);
12538 24 : ndr->depth++;
12539 24 : ndr_print_policy_handle(ndr, "trustdom_handle", r->out.trustdom_handle);
12540 24 : ndr->depth--;
12541 24 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
12542 24 : ndr->depth--;
12543 : }
12544 24 : ndr->depth--;
12545 : }
12546 :
12547 432 : static enum ndr_err_code ndr_push_lsa_CloseTrustedDomainEx(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CloseTrustedDomainEx *r)
12548 : {
12549 432 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12550 432 : if (flags & NDR_IN) {
12551 192 : if (r->in.handle == NULL) {
12552 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12553 : }
12554 192 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12555 : }
12556 432 : if (flags & NDR_OUT) {
12557 240 : if (r->out.handle == NULL) {
12558 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12559 : }
12560 240 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.handle));
12561 240 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
12562 : }
12563 432 : return NDR_ERR_SUCCESS;
12564 : }
12565 :
12566 384 : static enum ndr_err_code ndr_pull_lsa_CloseTrustedDomainEx(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CloseTrustedDomainEx *r)
12567 : {
12568 384 : TALLOC_CTX *_mem_save_handle_0 = NULL;
12569 384 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12570 384 : if (flags & NDR_IN) {
12571 192 : NDR_ZERO_STRUCT(r->out);
12572 :
12573 192 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12574 192 : NDR_PULL_ALLOC(ndr, r->in.handle);
12575 : }
12576 192 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
12577 192 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
12578 192 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12579 192 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
12580 192 : NDR_PULL_ALLOC(ndr, r->out.handle);
12581 192 : *r->out.handle = *r->in.handle;
12582 : }
12583 384 : if (flags & NDR_OUT) {
12584 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12585 : if (r->in.handle == NULL) {
12586 : NDR_PULL_ALLOC(ndr, r->in.handle);
12587 : NDR_ZERO_STRUCTP(r->in.handle);
12588 : }
12589 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12590 192 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12591 48 : NDR_PULL_ALLOC(ndr, r->out.handle);
12592 : }
12593 192 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
12594 192 : NDR_PULL_SET_MEM_CTX(ndr, r->out.handle, LIBNDR_FLAG_REF_ALLOC);
12595 192 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.handle));
12596 192 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
12597 192 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
12598 : }
12599 384 : return NDR_ERR_SUCCESS;
12600 : }
12601 :
12602 96 : _PUBLIC_ void ndr_print_lsa_CloseTrustedDomainEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CloseTrustedDomainEx *r)
12603 : {
12604 96 : ndr_print_struct(ndr, name, "lsa_CloseTrustedDomainEx");
12605 96 : if (r == NULL) { ndr_print_null(ndr); return; }
12606 96 : ndr->depth++;
12607 96 : if (flags & NDR_SET_VALUES) {
12608 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12609 : }
12610 96 : if (flags & NDR_IN) {
12611 0 : ndr_print_struct(ndr, "in", "lsa_CloseTrustedDomainEx");
12612 0 : ndr->depth++;
12613 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
12614 0 : ndr->depth++;
12615 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
12616 0 : ndr->depth--;
12617 0 : ndr->depth--;
12618 : }
12619 96 : if (flags & NDR_OUT) {
12620 96 : ndr_print_struct(ndr, "out", "lsa_CloseTrustedDomainEx");
12621 96 : ndr->depth++;
12622 96 : ndr_print_ptr(ndr, "handle", r->out.handle);
12623 96 : ndr->depth++;
12624 96 : ndr_print_policy_handle(ndr, "handle", r->out.handle);
12625 96 : ndr->depth--;
12626 96 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
12627 96 : ndr->depth--;
12628 : }
12629 96 : ndr->depth--;
12630 : }
12631 :
12632 72 : static enum ndr_err_code ndr_push_lsa_QueryDomainInformationPolicy(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_QueryDomainInformationPolicy *r)
12633 : {
12634 72 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12635 72 : if (flags & NDR_IN) {
12636 32 : if (r->in.handle == NULL) {
12637 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12638 : }
12639 32 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12640 32 : NDR_CHECK(ndr_push_lsa_DomainInfoEnum(ndr, NDR_SCALARS, r->in.level));
12641 : }
12642 72 : if (flags & NDR_OUT) {
12643 40 : if (r->out.info == NULL) {
12644 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12645 : }
12646 40 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.info));
12647 40 : if (*r->out.info) {
12648 20 : NDR_CHECK(ndr_push_set_switch_value(ndr, *r->out.info, r->in.level));
12649 20 : NDR_CHECK(ndr_push_lsa_DomainInformationPolicy(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
12650 : }
12651 40 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
12652 : }
12653 72 : return NDR_ERR_SUCCESS;
12654 : }
12655 :
12656 64 : static enum ndr_err_code ndr_pull_lsa_QueryDomainInformationPolicy(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_QueryDomainInformationPolicy *r)
12657 : {
12658 0 : uint32_t _ptr_info;
12659 64 : TALLOC_CTX *_mem_save_handle_0 = NULL;
12660 64 : TALLOC_CTX *_mem_save_info_0 = NULL;
12661 64 : TALLOC_CTX *_mem_save_info_1 = NULL;
12662 64 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12663 64 : if (flags & NDR_IN) {
12664 32 : NDR_ZERO_STRUCT(r->out);
12665 :
12666 32 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12667 32 : NDR_PULL_ALLOC(ndr, r->in.handle);
12668 : }
12669 32 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
12670 32 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
12671 32 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12672 32 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
12673 32 : NDR_CHECK(ndr_pull_lsa_DomainInfoEnum(ndr, NDR_SCALARS, &r->in.level));
12674 32 : NDR_PULL_ALLOC(ndr, r->out.info);
12675 32 : NDR_ZERO_STRUCTP(r->out.info);
12676 : }
12677 64 : if (flags & NDR_OUT) {
12678 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12679 : if (r->in.handle == NULL) {
12680 : NDR_PULL_ALLOC(ndr, r->in.handle);
12681 : NDR_ZERO_STRUCTP(r->in.handle);
12682 : }
12683 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12684 32 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12685 8 : NDR_PULL_ALLOC(ndr, r->out.info);
12686 : }
12687 32 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
12688 32 : NDR_PULL_SET_MEM_CTX(ndr, r->out.info, LIBNDR_FLAG_REF_ALLOC);
12689 32 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
12690 32 : if (_ptr_info) {
12691 16 : NDR_PULL_ALLOC(ndr, *r->out.info);
12692 : } else {
12693 16 : *r->out.info = NULL;
12694 : }
12695 32 : if (*r->out.info) {
12696 16 : _mem_save_info_1 = NDR_PULL_GET_MEM_CTX(ndr);
12697 16 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.info, 0);
12698 16 : NDR_CHECK(ndr_pull_set_switch_value(ndr, *r->out.info, r->in.level));
12699 16 : NDR_CHECK(ndr_pull_lsa_DomainInformationPolicy(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
12700 16 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_1, 0);
12701 : }
12702 32 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
12703 32 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
12704 : }
12705 64 : return NDR_ERR_SUCCESS;
12706 : }
12707 :
12708 16 : _PUBLIC_ void ndr_print_lsa_QueryDomainInformationPolicy(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_QueryDomainInformationPolicy *r)
12709 : {
12710 16 : ndr_print_struct(ndr, name, "lsa_QueryDomainInformationPolicy");
12711 16 : if (r == NULL) { ndr_print_null(ndr); return; }
12712 16 : ndr->depth++;
12713 16 : if (flags & NDR_SET_VALUES) {
12714 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12715 : }
12716 16 : if (flags & NDR_IN) {
12717 0 : ndr_print_struct(ndr, "in", "lsa_QueryDomainInformationPolicy");
12718 0 : ndr->depth++;
12719 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
12720 0 : ndr->depth++;
12721 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
12722 0 : ndr->depth--;
12723 0 : ndr_print_lsa_DomainInfoEnum(ndr, "level", r->in.level);
12724 0 : ndr->depth--;
12725 : }
12726 16 : if (flags & NDR_OUT) {
12727 16 : ndr_print_struct(ndr, "out", "lsa_QueryDomainInformationPolicy");
12728 16 : ndr->depth++;
12729 16 : ndr_print_ptr(ndr, "info", r->out.info);
12730 16 : ndr->depth++;
12731 16 : ndr_print_ptr(ndr, "info", *r->out.info);
12732 16 : ndr->depth++;
12733 16 : if (*r->out.info) {
12734 8 : ndr_print_set_switch_value(ndr, *r->out.info, r->in.level);
12735 8 : ndr_print_lsa_DomainInformationPolicy(ndr, "info", *r->out.info);
12736 : }
12737 16 : ndr->depth--;
12738 16 : ndr->depth--;
12739 16 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
12740 16 : ndr->depth--;
12741 : }
12742 16 : ndr->depth--;
12743 : }
12744 :
12745 0 : static enum ndr_err_code ndr_push_lsa_SetDomainInformationPolicy(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_SetDomainInformationPolicy *r)
12746 : {
12747 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12748 0 : if (flags & NDR_IN) {
12749 0 : if (r->in.handle == NULL) {
12750 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12751 : }
12752 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12753 0 : NDR_CHECK(ndr_push_lsa_DomainInfoEnum(ndr, NDR_SCALARS, r->in.level));
12754 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.info));
12755 0 : if (r->in.info) {
12756 0 : NDR_CHECK(ndr_push_set_switch_value(ndr, r->in.info, r->in.level));
12757 0 : NDR_CHECK(ndr_push_lsa_DomainInformationPolicy(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
12758 : }
12759 : }
12760 0 : if (flags & NDR_OUT) {
12761 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
12762 : }
12763 0 : return NDR_ERR_SUCCESS;
12764 : }
12765 :
12766 0 : static enum ndr_err_code ndr_pull_lsa_SetDomainInformationPolicy(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_SetDomainInformationPolicy *r)
12767 : {
12768 0 : uint32_t _ptr_info;
12769 0 : TALLOC_CTX *_mem_save_handle_0 = NULL;
12770 0 : TALLOC_CTX *_mem_save_info_0 = NULL;
12771 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12772 0 : if (flags & NDR_IN) {
12773 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12774 0 : NDR_PULL_ALLOC(ndr, r->in.handle);
12775 : }
12776 0 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
12777 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
12778 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12779 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
12780 0 : NDR_CHECK(ndr_pull_lsa_DomainInfoEnum(ndr, NDR_SCALARS, &r->in.level));
12781 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
12782 0 : if (_ptr_info) {
12783 0 : NDR_PULL_ALLOC(ndr, r->in.info);
12784 : } else {
12785 0 : r->in.info = NULL;
12786 : }
12787 0 : if (r->in.info) {
12788 0 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
12789 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.info, 0);
12790 0 : NDR_CHECK(ndr_pull_set_switch_value(ndr, r->in.info, r->in.level));
12791 0 : NDR_CHECK(ndr_pull_lsa_DomainInformationPolicy(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
12792 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
12793 : }
12794 : }
12795 0 : if (flags & NDR_OUT) {
12796 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12797 : if (r->in.handle == NULL) {
12798 : NDR_PULL_ALLOC(ndr, r->in.handle);
12799 : NDR_ZERO_STRUCTP(r->in.handle);
12800 : }
12801 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12802 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
12803 : }
12804 0 : return NDR_ERR_SUCCESS;
12805 : }
12806 :
12807 0 : _PUBLIC_ void ndr_print_lsa_SetDomainInformationPolicy(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_SetDomainInformationPolicy *r)
12808 : {
12809 0 : ndr_print_struct(ndr, name, "lsa_SetDomainInformationPolicy");
12810 0 : if (r == NULL) { ndr_print_null(ndr); return; }
12811 0 : ndr->depth++;
12812 0 : if (flags & NDR_SET_VALUES) {
12813 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12814 : }
12815 0 : if (flags & NDR_IN) {
12816 0 : ndr_print_struct(ndr, "in", "lsa_SetDomainInformationPolicy");
12817 0 : ndr->depth++;
12818 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
12819 0 : ndr->depth++;
12820 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
12821 0 : ndr->depth--;
12822 0 : ndr_print_lsa_DomainInfoEnum(ndr, "level", r->in.level);
12823 0 : ndr_print_ptr(ndr, "info", r->in.info);
12824 0 : ndr->depth++;
12825 0 : if (r->in.info) {
12826 0 : ndr_print_set_switch_value(ndr, r->in.info, r->in.level);
12827 0 : ndr_print_lsa_DomainInformationPolicy(ndr, "info", r->in.info);
12828 : }
12829 0 : ndr->depth--;
12830 0 : ndr->depth--;
12831 : }
12832 0 : if (flags & NDR_OUT) {
12833 0 : ndr_print_struct(ndr, "out", "lsa_SetDomainInformationPolicy");
12834 0 : ndr->depth++;
12835 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
12836 0 : ndr->depth--;
12837 : }
12838 0 : ndr->depth--;
12839 : }
12840 :
12841 432 : static enum ndr_err_code ndr_push_lsa_OpenTrustedDomainByName(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_OpenTrustedDomainByName *r)
12842 : {
12843 432 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12844 432 : if (flags & NDR_IN) {
12845 192 : if (r->in.handle == NULL) {
12846 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12847 : }
12848 192 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12849 192 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.name));
12850 192 : NDR_CHECK(ndr_push_lsa_TrustedAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
12851 : }
12852 432 : if (flags & NDR_OUT) {
12853 240 : if (r->out.trustdom_handle == NULL) {
12854 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12855 : }
12856 240 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.trustdom_handle));
12857 240 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
12858 : }
12859 432 : return NDR_ERR_SUCCESS;
12860 : }
12861 :
12862 384 : static enum ndr_err_code ndr_pull_lsa_OpenTrustedDomainByName(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_OpenTrustedDomainByName *r)
12863 : {
12864 384 : TALLOC_CTX *_mem_save_handle_0 = NULL;
12865 384 : TALLOC_CTX *_mem_save_trustdom_handle_0 = NULL;
12866 384 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12867 384 : if (flags & NDR_IN) {
12868 192 : NDR_ZERO_STRUCT(r->out);
12869 :
12870 192 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12871 192 : NDR_PULL_ALLOC(ndr, r->in.handle);
12872 : }
12873 192 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
12874 192 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
12875 192 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12876 192 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
12877 192 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.name));
12878 192 : NDR_CHECK(ndr_pull_lsa_TrustedAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
12879 192 : NDR_PULL_ALLOC(ndr, r->out.trustdom_handle);
12880 192 : NDR_ZERO_STRUCTP(r->out.trustdom_handle);
12881 : }
12882 384 : if (flags & NDR_OUT) {
12883 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12884 : if (r->in.handle == NULL) {
12885 : NDR_PULL_ALLOC(ndr, r->in.handle);
12886 : NDR_ZERO_STRUCTP(r->in.handle);
12887 : }
12888 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12889 192 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
12890 48 : NDR_PULL_ALLOC(ndr, r->out.trustdom_handle);
12891 : }
12892 192 : _mem_save_trustdom_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
12893 192 : NDR_PULL_SET_MEM_CTX(ndr, r->out.trustdom_handle, LIBNDR_FLAG_REF_ALLOC);
12894 192 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.trustdom_handle));
12895 192 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trustdom_handle_0, LIBNDR_FLAG_REF_ALLOC);
12896 192 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
12897 : }
12898 384 : return NDR_ERR_SUCCESS;
12899 : }
12900 :
12901 96 : _PUBLIC_ void ndr_print_lsa_OpenTrustedDomainByName(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_OpenTrustedDomainByName *r)
12902 : {
12903 96 : ndr_print_struct(ndr, name, "lsa_OpenTrustedDomainByName");
12904 96 : if (r == NULL) { ndr_print_null(ndr); return; }
12905 96 : ndr->depth++;
12906 96 : if (flags & NDR_SET_VALUES) {
12907 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12908 : }
12909 96 : if (flags & NDR_IN) {
12910 0 : ndr_print_struct(ndr, "in", "lsa_OpenTrustedDomainByName");
12911 0 : ndr->depth++;
12912 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
12913 0 : ndr->depth++;
12914 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
12915 0 : ndr->depth--;
12916 0 : ndr_print_lsa_String(ndr, "name", &r->in.name);
12917 0 : ndr_print_lsa_TrustedAccessMask(ndr, "access_mask", r->in.access_mask);
12918 0 : ndr->depth--;
12919 : }
12920 96 : if (flags & NDR_OUT) {
12921 96 : ndr_print_struct(ndr, "out", "lsa_OpenTrustedDomainByName");
12922 96 : ndr->depth++;
12923 96 : ndr_print_ptr(ndr, "trustdom_handle", r->out.trustdom_handle);
12924 96 : ndr->depth++;
12925 96 : ndr_print_policy_handle(ndr, "trustdom_handle", r->out.trustdom_handle);
12926 96 : ndr->depth--;
12927 96 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
12928 96 : ndr->depth--;
12929 : }
12930 96 : ndr->depth--;
12931 : }
12932 :
12933 0 : static enum ndr_err_code ndr_push_lsa_TestCall(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_TestCall *r)
12934 : {
12935 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12936 0 : if (flags & NDR_IN) {
12937 0 : }
12938 0 : if (flags & NDR_OUT) {
12939 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
12940 : }
12941 0 : return NDR_ERR_SUCCESS;
12942 : }
12943 :
12944 0 : static enum ndr_err_code ndr_pull_lsa_TestCall(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_TestCall *r)
12945 : {
12946 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
12947 0 : if (flags & NDR_IN) {
12948 0 : }
12949 0 : if (flags & NDR_OUT) {
12950 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
12951 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
12952 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
12953 : }
12954 0 : return NDR_ERR_SUCCESS;
12955 : }
12956 :
12957 0 : _PUBLIC_ void ndr_print_lsa_TestCall(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_TestCall *r)
12958 : {
12959 0 : ndr_print_struct(ndr, name, "lsa_TestCall");
12960 0 : if (r == NULL) { ndr_print_null(ndr); return; }
12961 0 : ndr->depth++;
12962 0 : if (flags & NDR_SET_VALUES) {
12963 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
12964 : }
12965 0 : if (flags & NDR_IN) {
12966 0 : ndr_print_struct(ndr, "in", "lsa_TestCall");
12967 0 : ndr->depth++;
12968 0 : ndr->depth--;
12969 : }
12970 0 : if (flags & NDR_OUT) {
12971 0 : ndr_print_struct(ndr, "out", "lsa_TestCall");
12972 0 : ndr->depth++;
12973 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
12974 0 : ndr->depth--;
12975 : }
12976 0 : ndr->depth--;
12977 : }
12978 :
12979 11 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_LookupSids2(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LookupSids2 *r)
12980 : {
12981 11 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
12982 11 : if (flags & NDR_IN) {
12983 6 : if (r->in.handle == NULL) {
12984 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12985 : }
12986 6 : if (r->in.sids == NULL) {
12987 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12988 : }
12989 6 : if (r->in.names == NULL) {
12990 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12991 : }
12992 6 : if (r->in.count == NULL) {
12993 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
12994 : }
12995 6 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
12996 6 : NDR_CHECK(ndr_push_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
12997 6 : NDR_CHECK(ndr_push_lsa_TransNameArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.names));
12998 6 : NDR_CHECK(ndr_push_lsa_LookupNamesLevel(ndr, NDR_SCALARS, r->in.level));
12999 6 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.count));
13000 6 : NDR_CHECK(ndr_push_lsa_LookupOptions(ndr, NDR_SCALARS, r->in.lookup_options));
13001 6 : NDR_CHECK(ndr_push_lsa_ClientRevision(ndr, NDR_SCALARS, r->in.client_revision));
13002 : }
13003 11 : if (flags & NDR_OUT) {
13004 5 : if (r->out.domains == NULL) {
13005 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13006 : }
13007 5 : if (r->out.names == NULL) {
13008 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13009 : }
13010 5 : if (r->out.count == NULL) {
13011 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13012 : }
13013 5 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.domains));
13014 5 : if (*r->out.domains) {
13015 5 : NDR_CHECK(ndr_push_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
13016 : }
13017 5 : NDR_CHECK(ndr_push_lsa_TransNameArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.names));
13018 5 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.count));
13019 5 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
13020 : }
13021 11 : return NDR_ERR_SUCCESS;
13022 : }
13023 :
13024 14 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_LookupSids2(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LookupSids2 *r)
13025 : {
13026 4 : uint32_t _ptr_domains;
13027 14 : TALLOC_CTX *_mem_save_handle_0 = NULL;
13028 14 : TALLOC_CTX *_mem_save_sids_0 = NULL;
13029 14 : TALLOC_CTX *_mem_save_domains_0 = NULL;
13030 14 : TALLOC_CTX *_mem_save_domains_1 = NULL;
13031 14 : TALLOC_CTX *_mem_save_names_0 = NULL;
13032 14 : TALLOC_CTX *_mem_save_count_0 = NULL;
13033 14 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13034 14 : if (flags & NDR_IN) {
13035 6 : NDR_ZERO_STRUCT(r->out);
13036 :
13037 6 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13038 6 : NDR_PULL_ALLOC(ndr, r->in.handle);
13039 : }
13040 6 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
13041 6 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
13042 6 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
13043 6 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
13044 6 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13045 6 : NDR_PULL_ALLOC(ndr, r->in.sids);
13046 : }
13047 6 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
13048 6 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sids, LIBNDR_FLAG_REF_ALLOC);
13049 6 : NDR_CHECK(ndr_pull_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
13050 6 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
13051 6 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13052 6 : NDR_PULL_ALLOC(ndr, r->in.names);
13053 : }
13054 6 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
13055 6 : NDR_PULL_SET_MEM_CTX(ndr, r->in.names, LIBNDR_FLAG_REF_ALLOC);
13056 6 : NDR_CHECK(ndr_pull_lsa_TransNameArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.names));
13057 6 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, LIBNDR_FLAG_REF_ALLOC);
13058 6 : NDR_CHECK(ndr_pull_lsa_LookupNamesLevel(ndr, NDR_SCALARS, &r->in.level));
13059 6 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13060 6 : NDR_PULL_ALLOC(ndr, r->in.count);
13061 : }
13062 6 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
13063 6 : NDR_PULL_SET_MEM_CTX(ndr, r->in.count, LIBNDR_FLAG_REF_ALLOC);
13064 6 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.count));
13065 6 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
13066 8 : NDR_CHECK(ndr_pull_lsa_LookupOptions(ndr, NDR_SCALARS, &r->in.lookup_options));
13067 8 : NDR_CHECK(ndr_pull_lsa_ClientRevision(ndr, NDR_SCALARS, &r->in.client_revision));
13068 6 : NDR_PULL_ALLOC(ndr, r->out.domains);
13069 6 : NDR_ZERO_STRUCTP(r->out.domains);
13070 6 : NDR_PULL_ALLOC(ndr, r->out.names);
13071 6 : *r->out.names = *r->in.names;
13072 6 : NDR_PULL_ALLOC(ndr, r->out.count);
13073 6 : *r->out.count = *r->in.count;
13074 : }
13075 14 : if (flags & NDR_OUT) {
13076 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13077 : if (r->in.handle == NULL) {
13078 : NDR_PULL_ALLOC(ndr, r->in.handle);
13079 : NDR_ZERO_STRUCTP(r->in.handle);
13080 : }
13081 : if (r->in.sids == NULL) {
13082 : NDR_PULL_ALLOC(ndr, r->in.sids);
13083 : NDR_ZERO_STRUCTP(r->in.sids);
13084 : }
13085 : if (r->in.names == NULL) {
13086 : NDR_PULL_ALLOC(ndr, r->in.names);
13087 : NDR_ZERO_STRUCTP(r->in.names);
13088 : }
13089 : if (r->in.count == NULL) {
13090 : NDR_PULL_ALLOC(ndr, r->in.count);
13091 : NDR_ZERO_STRUCTP(r->in.count);
13092 : }
13093 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13094 8 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13095 3 : NDR_PULL_ALLOC(ndr, r->out.domains);
13096 : }
13097 8 : _mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
13098 8 : NDR_PULL_SET_MEM_CTX(ndr, r->out.domains, LIBNDR_FLAG_REF_ALLOC);
13099 8 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_domains));
13100 8 : if (_ptr_domains) {
13101 8 : NDR_PULL_ALLOC(ndr, *r->out.domains);
13102 : } else {
13103 0 : *r->out.domains = NULL;
13104 : }
13105 8 : if (*r->out.domains) {
13106 8 : _mem_save_domains_1 = NDR_PULL_GET_MEM_CTX(ndr);
13107 8 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.domains, 0);
13108 8 : NDR_CHECK(ndr_pull_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
13109 8 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_1, 0);
13110 : }
13111 8 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, LIBNDR_FLAG_REF_ALLOC);
13112 8 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13113 3 : NDR_PULL_ALLOC(ndr, r->out.names);
13114 : }
13115 8 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
13116 8 : NDR_PULL_SET_MEM_CTX(ndr, r->out.names, LIBNDR_FLAG_REF_ALLOC);
13117 8 : NDR_CHECK(ndr_pull_lsa_TransNameArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.names));
13118 8 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, LIBNDR_FLAG_REF_ALLOC);
13119 8 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13120 3 : NDR_PULL_ALLOC(ndr, r->out.count);
13121 : }
13122 8 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
13123 8 : NDR_PULL_SET_MEM_CTX(ndr, r->out.count, LIBNDR_FLAG_REF_ALLOC);
13124 8 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.count));
13125 8 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
13126 8 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
13127 : }
13128 10 : return NDR_ERR_SUCCESS;
13129 : }
13130 :
13131 6 : _PUBLIC_ void ndr_print_lsa_LookupSids2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LookupSids2 *r)
13132 : {
13133 6 : ndr_print_struct(ndr, name, "lsa_LookupSids2");
13134 6 : if (r == NULL) { ndr_print_null(ndr); return; }
13135 6 : ndr->depth++;
13136 6 : if (flags & NDR_SET_VALUES) {
13137 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13138 : }
13139 6 : if (flags & NDR_IN) {
13140 2 : ndr_print_struct(ndr, "in", "lsa_LookupSids2");
13141 2 : ndr->depth++;
13142 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
13143 2 : ndr->depth++;
13144 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
13145 2 : ndr->depth--;
13146 2 : ndr_print_ptr(ndr, "sids", r->in.sids);
13147 2 : ndr->depth++;
13148 2 : ndr_print_lsa_SidArray(ndr, "sids", r->in.sids);
13149 2 : ndr->depth--;
13150 2 : ndr_print_ptr(ndr, "names", r->in.names);
13151 2 : ndr->depth++;
13152 2 : ndr_print_lsa_TransNameArray2(ndr, "names", r->in.names);
13153 2 : ndr->depth--;
13154 2 : ndr_print_lsa_LookupNamesLevel(ndr, "level", r->in.level);
13155 2 : ndr_print_ptr(ndr, "count", r->in.count);
13156 2 : ndr->depth++;
13157 2 : ndr_print_uint32(ndr, "count", *r->in.count);
13158 2 : ndr->depth--;
13159 2 : ndr_print_lsa_LookupOptions(ndr, "lookup_options", r->in.lookup_options);
13160 2 : ndr_print_lsa_ClientRevision(ndr, "client_revision", r->in.client_revision);
13161 2 : ndr->depth--;
13162 : }
13163 6 : if (flags & NDR_OUT) {
13164 4 : ndr_print_struct(ndr, "out", "lsa_LookupSids2");
13165 4 : ndr->depth++;
13166 4 : ndr_print_ptr(ndr, "domains", r->out.domains);
13167 4 : ndr->depth++;
13168 4 : ndr_print_ptr(ndr, "domains", *r->out.domains);
13169 4 : ndr->depth++;
13170 4 : if (*r->out.domains) {
13171 4 : ndr_print_lsa_RefDomainList(ndr, "domains", *r->out.domains);
13172 : }
13173 4 : ndr->depth--;
13174 4 : ndr->depth--;
13175 4 : ndr_print_ptr(ndr, "names", r->out.names);
13176 4 : ndr->depth++;
13177 4 : ndr_print_lsa_TransNameArray2(ndr, "names", r->out.names);
13178 4 : ndr->depth--;
13179 4 : ndr_print_ptr(ndr, "count", r->out.count);
13180 4 : ndr->depth++;
13181 4 : ndr_print_uint32(ndr, "count", *r->out.count);
13182 4 : ndr->depth--;
13183 4 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
13184 4 : ndr->depth--;
13185 : }
13186 6 : ndr->depth--;
13187 : }
13188 :
13189 22 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_LookupNames2(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LookupNames2 *r)
13190 : {
13191 0 : uint32_t cntr_names_0;
13192 22 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13193 22 : if (flags & NDR_IN) {
13194 12 : if (r->in.handle == NULL) {
13195 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13196 : }
13197 12 : if (r->in.sids == NULL) {
13198 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13199 : }
13200 12 : if (r->in.count == NULL) {
13201 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13202 : }
13203 12 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
13204 12 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.num_names));
13205 12 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.num_names));
13206 54 : for (cntr_names_0 = 0; cntr_names_0 < (r->in.num_names); cntr_names_0++) {
13207 42 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS, &r->in.names[cntr_names_0]));
13208 : }
13209 54 : for (cntr_names_0 = 0; cntr_names_0 < (r->in.num_names); cntr_names_0++) {
13210 42 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_BUFFERS, &r->in.names[cntr_names_0]));
13211 : }
13212 12 : NDR_CHECK(ndr_push_lsa_TransSidArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
13213 12 : NDR_CHECK(ndr_push_lsa_LookupNamesLevel(ndr, NDR_SCALARS, r->in.level));
13214 12 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.count));
13215 12 : NDR_CHECK(ndr_push_lsa_LookupOptions(ndr, NDR_SCALARS, r->in.lookup_options));
13216 12 : NDR_CHECK(ndr_push_lsa_ClientRevision(ndr, NDR_SCALARS, r->in.client_revision));
13217 : }
13218 22 : if (flags & NDR_OUT) {
13219 10 : if (r->out.domains == NULL) {
13220 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13221 : }
13222 10 : if (r->out.sids == NULL) {
13223 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13224 : }
13225 10 : if (r->out.count == NULL) {
13226 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13227 : }
13228 10 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.domains));
13229 10 : if (*r->out.domains) {
13230 10 : NDR_CHECK(ndr_push_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
13231 : }
13232 10 : NDR_CHECK(ndr_push_lsa_TransSidArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
13233 10 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.count));
13234 10 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
13235 : }
13236 22 : return NDR_ERR_SUCCESS;
13237 : }
13238 :
13239 24 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_LookupNames2(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LookupNames2 *r)
13240 : {
13241 24 : uint32_t size_names_0 = 0;
13242 4 : uint32_t cntr_names_0;
13243 4 : uint32_t _ptr_domains;
13244 24 : TALLOC_CTX *_mem_save_handle_0 = NULL;
13245 24 : TALLOC_CTX *_mem_save_names_0 = NULL;
13246 24 : TALLOC_CTX *_mem_save_domains_0 = NULL;
13247 24 : TALLOC_CTX *_mem_save_domains_1 = NULL;
13248 24 : TALLOC_CTX *_mem_save_sids_0 = NULL;
13249 24 : TALLOC_CTX *_mem_save_count_0 = NULL;
13250 24 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13251 24 : if (flags & NDR_IN) {
13252 10 : NDR_ZERO_STRUCT(r->out);
13253 :
13254 10 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13255 10 : NDR_PULL_ALLOC(ndr, r->in.handle);
13256 : }
13257 10 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
13258 10 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
13259 10 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
13260 10 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
13261 10 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.num_names));
13262 10 : if (r->in.num_names > 1000) {
13263 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.num_names), (uint32_t)(0), (uint32_t)(1000));
13264 : }
13265 10 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.names));
13266 10 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.names, &size_names_0));
13267 10 : NDR_PULL_ALLOC_N(ndr, r->in.names, size_names_0);
13268 10 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
13269 10 : NDR_PULL_SET_MEM_CTX(ndr, r->in.names, 0);
13270 52 : for (cntr_names_0 = 0; cntr_names_0 < (size_names_0); cntr_names_0++) {
13271 42 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS, &r->in.names[cntr_names_0]));
13272 : }
13273 52 : for (cntr_names_0 = 0; cntr_names_0 < (size_names_0); cntr_names_0++) {
13274 42 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_BUFFERS, &r->in.names[cntr_names_0]));
13275 : }
13276 10 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, 0);
13277 10 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13278 10 : NDR_PULL_ALLOC(ndr, r->in.sids);
13279 : }
13280 10 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
13281 10 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sids, LIBNDR_FLAG_REF_ALLOC);
13282 10 : NDR_CHECK(ndr_pull_lsa_TransSidArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
13283 10 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
13284 10 : NDR_CHECK(ndr_pull_lsa_LookupNamesLevel(ndr, NDR_SCALARS, &r->in.level));
13285 10 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13286 10 : NDR_PULL_ALLOC(ndr, r->in.count);
13287 : }
13288 10 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
13289 10 : NDR_PULL_SET_MEM_CTX(ndr, r->in.count, LIBNDR_FLAG_REF_ALLOC);
13290 10 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.count));
13291 10 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
13292 12 : NDR_CHECK(ndr_pull_lsa_LookupOptions(ndr, NDR_SCALARS, &r->in.lookup_options));
13293 12 : NDR_CHECK(ndr_pull_lsa_ClientRevision(ndr, NDR_SCALARS, &r->in.client_revision));
13294 10 : NDR_PULL_ALLOC(ndr, r->out.domains);
13295 10 : NDR_ZERO_STRUCTP(r->out.domains);
13296 10 : NDR_PULL_ALLOC(ndr, r->out.sids);
13297 10 : *r->out.sids = *r->in.sids;
13298 10 : NDR_PULL_ALLOC(ndr, r->out.count);
13299 10 : *r->out.count = *r->in.count;
13300 10 : if (r->in.names) {
13301 10 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.names, r->in.num_names));
13302 : }
13303 52 : for (cntr_names_0 = 0; cntr_names_0 < (size_names_0); cntr_names_0++) {
13304 14 : }
13305 : }
13306 24 : if (flags & NDR_OUT) {
13307 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13308 : if (r->in.handle == NULL) {
13309 : NDR_PULL_ALLOC(ndr, r->in.handle);
13310 : NDR_ZERO_STRUCTP(r->in.handle);
13311 : }
13312 : if (r->in.sids == NULL) {
13313 : NDR_PULL_ALLOC(ndr, r->in.sids);
13314 : NDR_ZERO_STRUCTP(r->in.sids);
13315 : }
13316 : if (r->in.count == NULL) {
13317 : NDR_PULL_ALLOC(ndr, r->in.count);
13318 : NDR_ZERO_STRUCTP(r->in.count);
13319 : }
13320 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13321 14 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13322 4 : NDR_PULL_ALLOC(ndr, r->out.domains);
13323 : }
13324 14 : _mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
13325 14 : NDR_PULL_SET_MEM_CTX(ndr, r->out.domains, LIBNDR_FLAG_REF_ALLOC);
13326 14 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_domains));
13327 14 : if (_ptr_domains) {
13328 14 : NDR_PULL_ALLOC(ndr, *r->out.domains);
13329 : } else {
13330 0 : *r->out.domains = NULL;
13331 : }
13332 14 : if (*r->out.domains) {
13333 14 : _mem_save_domains_1 = NDR_PULL_GET_MEM_CTX(ndr);
13334 14 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.domains, 0);
13335 14 : NDR_CHECK(ndr_pull_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
13336 14 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_1, 0);
13337 : }
13338 14 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, LIBNDR_FLAG_REF_ALLOC);
13339 14 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13340 4 : NDR_PULL_ALLOC(ndr, r->out.sids);
13341 : }
13342 14 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
13343 14 : NDR_PULL_SET_MEM_CTX(ndr, r->out.sids, LIBNDR_FLAG_REF_ALLOC);
13344 14 : NDR_CHECK(ndr_pull_lsa_TransSidArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
13345 14 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
13346 14 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13347 4 : NDR_PULL_ALLOC(ndr, r->out.count);
13348 : }
13349 14 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
13350 14 : NDR_PULL_SET_MEM_CTX(ndr, r->out.count, LIBNDR_FLAG_REF_ALLOC);
13351 14 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.count));
13352 14 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
13353 14 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
13354 : }
13355 20 : return NDR_ERR_SUCCESS;
13356 : }
13357 :
13358 8 : _PUBLIC_ void ndr_print_lsa_LookupNames2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LookupNames2 *r)
13359 : {
13360 4 : uint32_t cntr_names_0;
13361 8 : ndr_print_struct(ndr, name, "lsa_LookupNames2");
13362 8 : if (r == NULL) { ndr_print_null(ndr); return; }
13363 8 : ndr->depth++;
13364 8 : if (flags & NDR_SET_VALUES) {
13365 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13366 : }
13367 8 : if (flags & NDR_IN) {
13368 2 : ndr_print_struct(ndr, "in", "lsa_LookupNames2");
13369 2 : ndr->depth++;
13370 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
13371 2 : ndr->depth++;
13372 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
13373 2 : ndr->depth--;
13374 2 : ndr_print_uint32(ndr, "num_names", r->in.num_names);
13375 2 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "names", (uint32_t)(r->in.num_names));
13376 2 : ndr->depth++;
13377 16 : for (cntr_names_0 = 0; cntr_names_0 < (r->in.num_names); cntr_names_0++) {
13378 14 : ndr_print_lsa_String(ndr, "names", &r->in.names[cntr_names_0]);
13379 : }
13380 2 : ndr->depth--;
13381 2 : ndr_print_ptr(ndr, "sids", r->in.sids);
13382 2 : ndr->depth++;
13383 2 : ndr_print_lsa_TransSidArray2(ndr, "sids", r->in.sids);
13384 2 : ndr->depth--;
13385 2 : ndr_print_lsa_LookupNamesLevel(ndr, "level", r->in.level);
13386 2 : ndr_print_ptr(ndr, "count", r->in.count);
13387 2 : ndr->depth++;
13388 2 : ndr_print_uint32(ndr, "count", *r->in.count);
13389 2 : ndr->depth--;
13390 2 : ndr_print_lsa_LookupOptions(ndr, "lookup_options", r->in.lookup_options);
13391 2 : ndr_print_lsa_ClientRevision(ndr, "client_revision", r->in.client_revision);
13392 2 : ndr->depth--;
13393 : }
13394 8 : if (flags & NDR_OUT) {
13395 6 : ndr_print_struct(ndr, "out", "lsa_LookupNames2");
13396 6 : ndr->depth++;
13397 6 : ndr_print_ptr(ndr, "domains", r->out.domains);
13398 6 : ndr->depth++;
13399 6 : ndr_print_ptr(ndr, "domains", *r->out.domains);
13400 6 : ndr->depth++;
13401 6 : if (*r->out.domains) {
13402 6 : ndr_print_lsa_RefDomainList(ndr, "domains", *r->out.domains);
13403 : }
13404 6 : ndr->depth--;
13405 6 : ndr->depth--;
13406 6 : ndr_print_ptr(ndr, "sids", r->out.sids);
13407 6 : ndr->depth++;
13408 6 : ndr_print_lsa_TransSidArray2(ndr, "sids", r->out.sids);
13409 6 : ndr->depth--;
13410 6 : ndr_print_ptr(ndr, "count", r->out.count);
13411 6 : ndr->depth++;
13412 6 : ndr_print_uint32(ndr, "count", *r->out.count);
13413 6 : ndr->depth--;
13414 6 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
13415 6 : ndr->depth--;
13416 : }
13417 8 : ndr->depth--;
13418 : }
13419 :
13420 127 : static enum ndr_err_code ndr_push_lsa_CreateTrustedDomainEx2(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CreateTrustedDomainEx2 *r)
13421 : {
13422 127 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13423 127 : if (flags & NDR_IN) {
13424 57 : if (r->in.policy_handle == NULL) {
13425 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13426 : }
13427 57 : if (r->in.info == NULL) {
13428 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13429 : }
13430 57 : if (r->in.auth_info_internal == NULL) {
13431 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13432 : }
13433 57 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.policy_handle));
13434 57 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
13435 57 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfoInternal(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.auth_info_internal));
13436 57 : NDR_CHECK(ndr_push_lsa_TrustedAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
13437 : }
13438 127 : if (flags & NDR_OUT) {
13439 70 : if (r->out.trustdom_handle == NULL) {
13440 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13441 : }
13442 70 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.trustdom_handle));
13443 70 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
13444 : }
13445 127 : return NDR_ERR_SUCCESS;
13446 : }
13447 :
13448 114 : static enum ndr_err_code ndr_pull_lsa_CreateTrustedDomainEx2(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CreateTrustedDomainEx2 *r)
13449 : {
13450 114 : TALLOC_CTX *_mem_save_policy_handle_0 = NULL;
13451 114 : TALLOC_CTX *_mem_save_info_0 = NULL;
13452 114 : TALLOC_CTX *_mem_save_auth_info_internal_0 = NULL;
13453 114 : TALLOC_CTX *_mem_save_trustdom_handle_0 = NULL;
13454 114 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13455 114 : if (flags & NDR_IN) {
13456 57 : NDR_ZERO_STRUCT(r->out);
13457 :
13458 57 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13459 57 : NDR_PULL_ALLOC(ndr, r->in.policy_handle);
13460 : }
13461 57 : _mem_save_policy_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
13462 57 : NDR_PULL_SET_MEM_CTX(ndr, r->in.policy_handle, LIBNDR_FLAG_REF_ALLOC);
13463 57 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.policy_handle));
13464 57 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_policy_handle_0, LIBNDR_FLAG_REF_ALLOC);
13465 57 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13466 57 : NDR_PULL_ALLOC(ndr, r->in.info);
13467 : }
13468 57 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
13469 57 : NDR_PULL_SET_MEM_CTX(ndr, r->in.info, LIBNDR_FLAG_REF_ALLOC);
13470 57 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
13471 57 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
13472 57 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13473 57 : NDR_PULL_ALLOC(ndr, r->in.auth_info_internal);
13474 : }
13475 57 : _mem_save_auth_info_internal_0 = NDR_PULL_GET_MEM_CTX(ndr);
13476 57 : NDR_PULL_SET_MEM_CTX(ndr, r->in.auth_info_internal, LIBNDR_FLAG_REF_ALLOC);
13477 57 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfoInternal(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.auth_info_internal));
13478 57 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_auth_info_internal_0, LIBNDR_FLAG_REF_ALLOC);
13479 57 : NDR_CHECK(ndr_pull_lsa_TrustedAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
13480 57 : NDR_PULL_ALLOC(ndr, r->out.trustdom_handle);
13481 57 : NDR_ZERO_STRUCTP(r->out.trustdom_handle);
13482 : }
13483 114 : if (flags & NDR_OUT) {
13484 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13485 : if (r->in.policy_handle == NULL) {
13486 : NDR_PULL_ALLOC(ndr, r->in.policy_handle);
13487 : NDR_ZERO_STRUCTP(r->in.policy_handle);
13488 : }
13489 : if (r->in.info == NULL) {
13490 : NDR_PULL_ALLOC(ndr, r->in.info);
13491 : NDR_ZERO_STRUCTP(r->in.info);
13492 : }
13493 : if (r->in.auth_info_internal == NULL) {
13494 : NDR_PULL_ALLOC(ndr, r->in.auth_info_internal);
13495 : NDR_ZERO_STRUCTP(r->in.auth_info_internal);
13496 : }
13497 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13498 57 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13499 18 : NDR_PULL_ALLOC(ndr, r->out.trustdom_handle);
13500 : }
13501 57 : _mem_save_trustdom_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
13502 57 : NDR_PULL_SET_MEM_CTX(ndr, r->out.trustdom_handle, LIBNDR_FLAG_REF_ALLOC);
13503 57 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.trustdom_handle));
13504 57 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trustdom_handle_0, LIBNDR_FLAG_REF_ALLOC);
13505 57 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
13506 : }
13507 114 : return NDR_ERR_SUCCESS;
13508 : }
13509 :
13510 26 : _PUBLIC_ void ndr_print_lsa_CreateTrustedDomainEx2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CreateTrustedDomainEx2 *r)
13511 : {
13512 26 : ndr_print_struct(ndr, name, "lsa_CreateTrustedDomainEx2");
13513 26 : if (r == NULL) { ndr_print_null(ndr); return; }
13514 26 : ndr->depth++;
13515 26 : if (flags & NDR_SET_VALUES) {
13516 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13517 : }
13518 26 : if (flags & NDR_IN) {
13519 0 : ndr_print_struct(ndr, "in", "lsa_CreateTrustedDomainEx2");
13520 0 : ndr->depth++;
13521 0 : ndr_print_ptr(ndr, "policy_handle", r->in.policy_handle);
13522 0 : ndr->depth++;
13523 0 : ndr_print_policy_handle(ndr, "policy_handle", r->in.policy_handle);
13524 0 : ndr->depth--;
13525 0 : ndr_print_ptr(ndr, "info", r->in.info);
13526 0 : ndr->depth++;
13527 0 : ndr_print_lsa_TrustDomainInfoInfoEx(ndr, "info", r->in.info);
13528 0 : ndr->depth--;
13529 0 : ndr_print_ptr(ndr, "auth_info_internal", r->in.auth_info_internal);
13530 0 : ndr->depth++;
13531 0 : ndr_print_lsa_TrustDomainInfoAuthInfoInternal(ndr, "auth_info_internal", r->in.auth_info_internal);
13532 0 : ndr->depth--;
13533 0 : ndr_print_lsa_TrustedAccessMask(ndr, "access_mask", r->in.access_mask);
13534 0 : ndr->depth--;
13535 : }
13536 26 : if (flags & NDR_OUT) {
13537 26 : ndr_print_struct(ndr, "out", "lsa_CreateTrustedDomainEx2");
13538 26 : ndr->depth++;
13539 26 : ndr_print_ptr(ndr, "trustdom_handle", r->out.trustdom_handle);
13540 26 : ndr->depth++;
13541 26 : ndr_print_policy_handle(ndr, "trustdom_handle", r->out.trustdom_handle);
13542 26 : ndr->depth--;
13543 26 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
13544 26 : ndr->depth--;
13545 : }
13546 26 : ndr->depth--;
13547 : }
13548 :
13549 0 : static enum ndr_err_code ndr_push_lsa_CREDRWRITE(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CREDRWRITE *r)
13550 : {
13551 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13552 0 : if (flags & NDR_IN) {
13553 0 : }
13554 0 : if (flags & NDR_OUT) {
13555 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
13556 : }
13557 0 : return NDR_ERR_SUCCESS;
13558 : }
13559 :
13560 0 : static enum ndr_err_code ndr_pull_lsa_CREDRWRITE(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CREDRWRITE *r)
13561 : {
13562 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13563 0 : if (flags & NDR_IN) {
13564 0 : }
13565 0 : if (flags & NDR_OUT) {
13566 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13567 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13568 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
13569 : }
13570 0 : return NDR_ERR_SUCCESS;
13571 : }
13572 :
13573 0 : _PUBLIC_ void ndr_print_lsa_CREDRWRITE(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CREDRWRITE *r)
13574 : {
13575 0 : ndr_print_struct(ndr, name, "lsa_CREDRWRITE");
13576 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13577 0 : ndr->depth++;
13578 0 : if (flags & NDR_SET_VALUES) {
13579 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13580 : }
13581 0 : if (flags & NDR_IN) {
13582 0 : ndr_print_struct(ndr, "in", "lsa_CREDRWRITE");
13583 0 : ndr->depth++;
13584 0 : ndr->depth--;
13585 : }
13586 0 : if (flags & NDR_OUT) {
13587 0 : ndr_print_struct(ndr, "out", "lsa_CREDRWRITE");
13588 0 : ndr->depth++;
13589 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
13590 0 : ndr->depth--;
13591 : }
13592 0 : ndr->depth--;
13593 : }
13594 :
13595 0 : static enum ndr_err_code ndr_push_lsa_CREDRREAD(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CREDRREAD *r)
13596 : {
13597 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13598 0 : if (flags & NDR_IN) {
13599 0 : }
13600 0 : if (flags & NDR_OUT) {
13601 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
13602 : }
13603 0 : return NDR_ERR_SUCCESS;
13604 : }
13605 :
13606 0 : static enum ndr_err_code ndr_pull_lsa_CREDRREAD(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CREDRREAD *r)
13607 : {
13608 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13609 0 : if (flags & NDR_IN) {
13610 0 : }
13611 0 : if (flags & NDR_OUT) {
13612 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13613 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13614 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
13615 : }
13616 0 : return NDR_ERR_SUCCESS;
13617 : }
13618 :
13619 0 : _PUBLIC_ void ndr_print_lsa_CREDRREAD(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CREDRREAD *r)
13620 : {
13621 0 : ndr_print_struct(ndr, name, "lsa_CREDRREAD");
13622 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13623 0 : ndr->depth++;
13624 0 : if (flags & NDR_SET_VALUES) {
13625 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13626 : }
13627 0 : if (flags & NDR_IN) {
13628 0 : ndr_print_struct(ndr, "in", "lsa_CREDRREAD");
13629 0 : ndr->depth++;
13630 0 : ndr->depth--;
13631 : }
13632 0 : if (flags & NDR_OUT) {
13633 0 : ndr_print_struct(ndr, "out", "lsa_CREDRREAD");
13634 0 : ndr->depth++;
13635 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
13636 0 : ndr->depth--;
13637 : }
13638 0 : ndr->depth--;
13639 : }
13640 :
13641 0 : static enum ndr_err_code ndr_push_lsa_CREDRENUMERATE(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CREDRENUMERATE *r)
13642 : {
13643 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13644 0 : if (flags & NDR_IN) {
13645 0 : }
13646 0 : if (flags & NDR_OUT) {
13647 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
13648 : }
13649 0 : return NDR_ERR_SUCCESS;
13650 : }
13651 :
13652 0 : static enum ndr_err_code ndr_pull_lsa_CREDRENUMERATE(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CREDRENUMERATE *r)
13653 : {
13654 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13655 0 : if (flags & NDR_IN) {
13656 0 : }
13657 0 : if (flags & NDR_OUT) {
13658 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13659 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13660 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
13661 : }
13662 0 : return NDR_ERR_SUCCESS;
13663 : }
13664 :
13665 0 : _PUBLIC_ void ndr_print_lsa_CREDRENUMERATE(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CREDRENUMERATE *r)
13666 : {
13667 0 : ndr_print_struct(ndr, name, "lsa_CREDRENUMERATE");
13668 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13669 0 : ndr->depth++;
13670 0 : if (flags & NDR_SET_VALUES) {
13671 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13672 : }
13673 0 : if (flags & NDR_IN) {
13674 0 : ndr_print_struct(ndr, "in", "lsa_CREDRENUMERATE");
13675 0 : ndr->depth++;
13676 0 : ndr->depth--;
13677 : }
13678 0 : if (flags & NDR_OUT) {
13679 0 : ndr_print_struct(ndr, "out", "lsa_CREDRENUMERATE");
13680 0 : ndr->depth++;
13681 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
13682 0 : ndr->depth--;
13683 : }
13684 0 : ndr->depth--;
13685 : }
13686 :
13687 0 : static enum ndr_err_code ndr_push_lsa_CREDRWRITEDOMAINCREDENTIALS(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CREDRWRITEDOMAINCREDENTIALS *r)
13688 : {
13689 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13690 0 : if (flags & NDR_IN) {
13691 0 : }
13692 0 : if (flags & NDR_OUT) {
13693 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
13694 : }
13695 0 : return NDR_ERR_SUCCESS;
13696 : }
13697 :
13698 0 : static enum ndr_err_code ndr_pull_lsa_CREDRWRITEDOMAINCREDENTIALS(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CREDRWRITEDOMAINCREDENTIALS *r)
13699 : {
13700 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13701 0 : if (flags & NDR_IN) {
13702 0 : }
13703 0 : if (flags & NDR_OUT) {
13704 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13705 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13706 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
13707 : }
13708 0 : return NDR_ERR_SUCCESS;
13709 : }
13710 :
13711 0 : _PUBLIC_ void ndr_print_lsa_CREDRWRITEDOMAINCREDENTIALS(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CREDRWRITEDOMAINCREDENTIALS *r)
13712 : {
13713 0 : ndr_print_struct(ndr, name, "lsa_CREDRWRITEDOMAINCREDENTIALS");
13714 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13715 0 : ndr->depth++;
13716 0 : if (flags & NDR_SET_VALUES) {
13717 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13718 : }
13719 0 : if (flags & NDR_IN) {
13720 0 : ndr_print_struct(ndr, "in", "lsa_CREDRWRITEDOMAINCREDENTIALS");
13721 0 : ndr->depth++;
13722 0 : ndr->depth--;
13723 : }
13724 0 : if (flags & NDR_OUT) {
13725 0 : ndr_print_struct(ndr, "out", "lsa_CREDRWRITEDOMAINCREDENTIALS");
13726 0 : ndr->depth++;
13727 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
13728 0 : ndr->depth--;
13729 : }
13730 0 : ndr->depth--;
13731 : }
13732 :
13733 0 : static enum ndr_err_code ndr_push_lsa_CREDRREADDOMAINCREDENTIALS(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CREDRREADDOMAINCREDENTIALS *r)
13734 : {
13735 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13736 0 : if (flags & NDR_IN) {
13737 0 : }
13738 0 : if (flags & NDR_OUT) {
13739 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
13740 : }
13741 0 : return NDR_ERR_SUCCESS;
13742 : }
13743 :
13744 0 : static enum ndr_err_code ndr_pull_lsa_CREDRREADDOMAINCREDENTIALS(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CREDRREADDOMAINCREDENTIALS *r)
13745 : {
13746 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13747 0 : if (flags & NDR_IN) {
13748 0 : }
13749 0 : if (flags & NDR_OUT) {
13750 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13751 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13752 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
13753 : }
13754 0 : return NDR_ERR_SUCCESS;
13755 : }
13756 :
13757 0 : _PUBLIC_ void ndr_print_lsa_CREDRREADDOMAINCREDENTIALS(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CREDRREADDOMAINCREDENTIALS *r)
13758 : {
13759 0 : ndr_print_struct(ndr, name, "lsa_CREDRREADDOMAINCREDENTIALS");
13760 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13761 0 : ndr->depth++;
13762 0 : if (flags & NDR_SET_VALUES) {
13763 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13764 : }
13765 0 : if (flags & NDR_IN) {
13766 0 : ndr_print_struct(ndr, "in", "lsa_CREDRREADDOMAINCREDENTIALS");
13767 0 : ndr->depth++;
13768 0 : ndr->depth--;
13769 : }
13770 0 : if (flags & NDR_OUT) {
13771 0 : ndr_print_struct(ndr, "out", "lsa_CREDRREADDOMAINCREDENTIALS");
13772 0 : ndr->depth++;
13773 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
13774 0 : ndr->depth--;
13775 : }
13776 0 : ndr->depth--;
13777 : }
13778 :
13779 0 : static enum ndr_err_code ndr_push_lsa_CREDRDELETE(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CREDRDELETE *r)
13780 : {
13781 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13782 0 : if (flags & NDR_IN) {
13783 0 : }
13784 0 : if (flags & NDR_OUT) {
13785 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
13786 : }
13787 0 : return NDR_ERR_SUCCESS;
13788 : }
13789 :
13790 0 : static enum ndr_err_code ndr_pull_lsa_CREDRDELETE(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CREDRDELETE *r)
13791 : {
13792 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13793 0 : if (flags & NDR_IN) {
13794 0 : }
13795 0 : if (flags & NDR_OUT) {
13796 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13797 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13798 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
13799 : }
13800 0 : return NDR_ERR_SUCCESS;
13801 : }
13802 :
13803 0 : _PUBLIC_ void ndr_print_lsa_CREDRDELETE(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CREDRDELETE *r)
13804 : {
13805 0 : ndr_print_struct(ndr, name, "lsa_CREDRDELETE");
13806 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13807 0 : ndr->depth++;
13808 0 : if (flags & NDR_SET_VALUES) {
13809 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13810 : }
13811 0 : if (flags & NDR_IN) {
13812 0 : ndr_print_struct(ndr, "in", "lsa_CREDRDELETE");
13813 0 : ndr->depth++;
13814 0 : ndr->depth--;
13815 : }
13816 0 : if (flags & NDR_OUT) {
13817 0 : ndr_print_struct(ndr, "out", "lsa_CREDRDELETE");
13818 0 : ndr->depth++;
13819 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
13820 0 : ndr->depth--;
13821 : }
13822 0 : ndr->depth--;
13823 : }
13824 :
13825 0 : static enum ndr_err_code ndr_push_lsa_CREDRGETTARGETINFO(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CREDRGETTARGETINFO *r)
13826 : {
13827 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13828 0 : if (flags & NDR_IN) {
13829 0 : }
13830 0 : if (flags & NDR_OUT) {
13831 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
13832 : }
13833 0 : return NDR_ERR_SUCCESS;
13834 : }
13835 :
13836 0 : static enum ndr_err_code ndr_pull_lsa_CREDRGETTARGETINFO(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CREDRGETTARGETINFO *r)
13837 : {
13838 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13839 0 : if (flags & NDR_IN) {
13840 0 : }
13841 0 : if (flags & NDR_OUT) {
13842 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13843 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13844 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
13845 : }
13846 0 : return NDR_ERR_SUCCESS;
13847 : }
13848 :
13849 0 : _PUBLIC_ void ndr_print_lsa_CREDRGETTARGETINFO(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CREDRGETTARGETINFO *r)
13850 : {
13851 0 : ndr_print_struct(ndr, name, "lsa_CREDRGETTARGETINFO");
13852 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13853 0 : ndr->depth++;
13854 0 : if (flags & NDR_SET_VALUES) {
13855 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13856 : }
13857 0 : if (flags & NDR_IN) {
13858 0 : ndr_print_struct(ndr, "in", "lsa_CREDRGETTARGETINFO");
13859 0 : ndr->depth++;
13860 0 : ndr->depth--;
13861 : }
13862 0 : if (flags & NDR_OUT) {
13863 0 : ndr_print_struct(ndr, "out", "lsa_CREDRGETTARGETINFO");
13864 0 : ndr->depth++;
13865 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
13866 0 : ndr->depth--;
13867 : }
13868 0 : ndr->depth--;
13869 : }
13870 :
13871 0 : static enum ndr_err_code ndr_push_lsa_CREDRPROFILELOADED(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CREDRPROFILELOADED *r)
13872 : {
13873 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13874 0 : if (flags & NDR_IN) {
13875 0 : }
13876 0 : if (flags & NDR_OUT) {
13877 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
13878 : }
13879 0 : return NDR_ERR_SUCCESS;
13880 : }
13881 :
13882 0 : static enum ndr_err_code ndr_pull_lsa_CREDRPROFILELOADED(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CREDRPROFILELOADED *r)
13883 : {
13884 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13885 0 : if (flags & NDR_IN) {
13886 0 : }
13887 0 : if (flags & NDR_OUT) {
13888 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
13889 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
13890 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
13891 : }
13892 0 : return NDR_ERR_SUCCESS;
13893 : }
13894 :
13895 0 : _PUBLIC_ void ndr_print_lsa_CREDRPROFILELOADED(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CREDRPROFILELOADED *r)
13896 : {
13897 0 : ndr_print_struct(ndr, name, "lsa_CREDRPROFILELOADED");
13898 0 : if (r == NULL) { ndr_print_null(ndr); return; }
13899 0 : ndr->depth++;
13900 0 : if (flags & NDR_SET_VALUES) {
13901 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
13902 : }
13903 0 : if (flags & NDR_IN) {
13904 0 : ndr_print_struct(ndr, "in", "lsa_CREDRPROFILELOADED");
13905 0 : ndr->depth++;
13906 0 : ndr->depth--;
13907 : }
13908 0 : if (flags & NDR_OUT) {
13909 0 : ndr_print_struct(ndr, "out", "lsa_CREDRPROFILELOADED");
13910 0 : ndr->depth++;
13911 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
13912 0 : ndr->depth--;
13913 : }
13914 0 : ndr->depth--;
13915 : }
13916 :
13917 22 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_LookupNames3(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LookupNames3 *r)
13918 : {
13919 0 : uint32_t cntr_names_0;
13920 22 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
13921 22 : if (flags & NDR_IN) {
13922 12 : if (r->in.handle == NULL) {
13923 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13924 : }
13925 12 : if (r->in.sids == NULL) {
13926 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13927 : }
13928 12 : if (r->in.count == NULL) {
13929 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13930 : }
13931 12 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
13932 12 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.num_names));
13933 12 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.num_names));
13934 54 : for (cntr_names_0 = 0; cntr_names_0 < (r->in.num_names); cntr_names_0++) {
13935 42 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS, &r->in.names[cntr_names_0]));
13936 : }
13937 54 : for (cntr_names_0 = 0; cntr_names_0 < (r->in.num_names); cntr_names_0++) {
13938 42 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_BUFFERS, &r->in.names[cntr_names_0]));
13939 : }
13940 12 : NDR_CHECK(ndr_push_lsa_TransSidArray3(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
13941 12 : NDR_CHECK(ndr_push_lsa_LookupNamesLevel(ndr, NDR_SCALARS, r->in.level));
13942 12 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.count));
13943 12 : NDR_CHECK(ndr_push_lsa_LookupOptions(ndr, NDR_SCALARS, r->in.lookup_options));
13944 12 : NDR_CHECK(ndr_push_lsa_ClientRevision(ndr, NDR_SCALARS, r->in.client_revision));
13945 : }
13946 22 : if (flags & NDR_OUT) {
13947 10 : if (r->out.domains == NULL) {
13948 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13949 : }
13950 10 : if (r->out.sids == NULL) {
13951 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13952 : }
13953 10 : if (r->out.count == NULL) {
13954 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
13955 : }
13956 10 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.domains));
13957 10 : if (*r->out.domains) {
13958 10 : NDR_CHECK(ndr_push_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
13959 : }
13960 10 : NDR_CHECK(ndr_push_lsa_TransSidArray3(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
13961 10 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.count));
13962 10 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
13963 : }
13964 22 : return NDR_ERR_SUCCESS;
13965 : }
13966 :
13967 24 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_LookupNames3(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LookupNames3 *r)
13968 : {
13969 24 : uint32_t size_names_0 = 0;
13970 4 : uint32_t cntr_names_0;
13971 4 : uint32_t _ptr_domains;
13972 24 : TALLOC_CTX *_mem_save_handle_0 = NULL;
13973 24 : TALLOC_CTX *_mem_save_names_0 = NULL;
13974 24 : TALLOC_CTX *_mem_save_domains_0 = NULL;
13975 24 : TALLOC_CTX *_mem_save_domains_1 = NULL;
13976 24 : TALLOC_CTX *_mem_save_sids_0 = NULL;
13977 24 : TALLOC_CTX *_mem_save_count_0 = NULL;
13978 24 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
13979 24 : if (flags & NDR_IN) {
13980 10 : NDR_ZERO_STRUCT(r->out);
13981 :
13982 10 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
13983 10 : NDR_PULL_ALLOC(ndr, r->in.handle);
13984 : }
13985 10 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
13986 10 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
13987 10 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
13988 10 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
13989 10 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.num_names));
13990 10 : if (r->in.num_names > 1000) {
13991 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.num_names), (uint32_t)(0), (uint32_t)(1000));
13992 : }
13993 10 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.names));
13994 10 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.names, &size_names_0));
13995 10 : NDR_PULL_ALLOC_N(ndr, r->in.names, size_names_0);
13996 10 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
13997 10 : NDR_PULL_SET_MEM_CTX(ndr, r->in.names, 0);
13998 52 : for (cntr_names_0 = 0; cntr_names_0 < (size_names_0); cntr_names_0++) {
13999 42 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS, &r->in.names[cntr_names_0]));
14000 : }
14001 52 : for (cntr_names_0 = 0; cntr_names_0 < (size_names_0); cntr_names_0++) {
14002 42 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_BUFFERS, &r->in.names[cntr_names_0]));
14003 : }
14004 10 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, 0);
14005 10 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14006 10 : NDR_PULL_ALLOC(ndr, r->in.sids);
14007 : }
14008 10 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
14009 10 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sids, LIBNDR_FLAG_REF_ALLOC);
14010 10 : NDR_CHECK(ndr_pull_lsa_TransSidArray3(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
14011 10 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
14012 10 : NDR_CHECK(ndr_pull_lsa_LookupNamesLevel(ndr, NDR_SCALARS, &r->in.level));
14013 10 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14014 10 : NDR_PULL_ALLOC(ndr, r->in.count);
14015 : }
14016 10 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
14017 10 : NDR_PULL_SET_MEM_CTX(ndr, r->in.count, LIBNDR_FLAG_REF_ALLOC);
14018 10 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.count));
14019 10 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
14020 12 : NDR_CHECK(ndr_pull_lsa_LookupOptions(ndr, NDR_SCALARS, &r->in.lookup_options));
14021 12 : NDR_CHECK(ndr_pull_lsa_ClientRevision(ndr, NDR_SCALARS, &r->in.client_revision));
14022 10 : NDR_PULL_ALLOC(ndr, r->out.domains);
14023 10 : NDR_ZERO_STRUCTP(r->out.domains);
14024 10 : NDR_PULL_ALLOC(ndr, r->out.sids);
14025 10 : *r->out.sids = *r->in.sids;
14026 10 : NDR_PULL_ALLOC(ndr, r->out.count);
14027 10 : *r->out.count = *r->in.count;
14028 10 : if (r->in.names) {
14029 10 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.names, r->in.num_names));
14030 : }
14031 52 : for (cntr_names_0 = 0; cntr_names_0 < (size_names_0); cntr_names_0++) {
14032 14 : }
14033 : }
14034 24 : if (flags & NDR_OUT) {
14035 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14036 : if (r->in.handle == NULL) {
14037 : NDR_PULL_ALLOC(ndr, r->in.handle);
14038 : NDR_ZERO_STRUCTP(r->in.handle);
14039 : }
14040 : if (r->in.sids == NULL) {
14041 : NDR_PULL_ALLOC(ndr, r->in.sids);
14042 : NDR_ZERO_STRUCTP(r->in.sids);
14043 : }
14044 : if (r->in.count == NULL) {
14045 : NDR_PULL_ALLOC(ndr, r->in.count);
14046 : NDR_ZERO_STRUCTP(r->in.count);
14047 : }
14048 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14049 14 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14050 4 : NDR_PULL_ALLOC(ndr, r->out.domains);
14051 : }
14052 14 : _mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
14053 14 : NDR_PULL_SET_MEM_CTX(ndr, r->out.domains, LIBNDR_FLAG_REF_ALLOC);
14054 14 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_domains));
14055 14 : if (_ptr_domains) {
14056 14 : NDR_PULL_ALLOC(ndr, *r->out.domains);
14057 : } else {
14058 0 : *r->out.domains = NULL;
14059 : }
14060 14 : if (*r->out.domains) {
14061 14 : _mem_save_domains_1 = NDR_PULL_GET_MEM_CTX(ndr);
14062 14 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.domains, 0);
14063 14 : NDR_CHECK(ndr_pull_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
14064 14 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_1, 0);
14065 : }
14066 14 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, LIBNDR_FLAG_REF_ALLOC);
14067 14 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14068 4 : NDR_PULL_ALLOC(ndr, r->out.sids);
14069 : }
14070 14 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
14071 14 : NDR_PULL_SET_MEM_CTX(ndr, r->out.sids, LIBNDR_FLAG_REF_ALLOC);
14072 14 : NDR_CHECK(ndr_pull_lsa_TransSidArray3(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
14073 14 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
14074 14 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14075 4 : NDR_PULL_ALLOC(ndr, r->out.count);
14076 : }
14077 14 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
14078 14 : NDR_PULL_SET_MEM_CTX(ndr, r->out.count, LIBNDR_FLAG_REF_ALLOC);
14079 14 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.count));
14080 14 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
14081 14 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
14082 : }
14083 20 : return NDR_ERR_SUCCESS;
14084 : }
14085 :
14086 8 : _PUBLIC_ void ndr_print_lsa_LookupNames3(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LookupNames3 *r)
14087 : {
14088 4 : uint32_t cntr_names_0;
14089 8 : ndr_print_struct(ndr, name, "lsa_LookupNames3");
14090 8 : if (r == NULL) { ndr_print_null(ndr); return; }
14091 8 : ndr->depth++;
14092 8 : if (flags & NDR_SET_VALUES) {
14093 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14094 : }
14095 8 : if (flags & NDR_IN) {
14096 2 : ndr_print_struct(ndr, "in", "lsa_LookupNames3");
14097 2 : ndr->depth++;
14098 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
14099 2 : ndr->depth++;
14100 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
14101 2 : ndr->depth--;
14102 2 : ndr_print_uint32(ndr, "num_names", r->in.num_names);
14103 2 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "names", (uint32_t)(r->in.num_names));
14104 2 : ndr->depth++;
14105 16 : for (cntr_names_0 = 0; cntr_names_0 < (r->in.num_names); cntr_names_0++) {
14106 14 : ndr_print_lsa_String(ndr, "names", &r->in.names[cntr_names_0]);
14107 : }
14108 2 : ndr->depth--;
14109 2 : ndr_print_ptr(ndr, "sids", r->in.sids);
14110 2 : ndr->depth++;
14111 2 : ndr_print_lsa_TransSidArray3(ndr, "sids", r->in.sids);
14112 2 : ndr->depth--;
14113 2 : ndr_print_lsa_LookupNamesLevel(ndr, "level", r->in.level);
14114 2 : ndr_print_ptr(ndr, "count", r->in.count);
14115 2 : ndr->depth++;
14116 2 : ndr_print_uint32(ndr, "count", *r->in.count);
14117 2 : ndr->depth--;
14118 2 : ndr_print_lsa_LookupOptions(ndr, "lookup_options", r->in.lookup_options);
14119 2 : ndr_print_lsa_ClientRevision(ndr, "client_revision", r->in.client_revision);
14120 2 : ndr->depth--;
14121 : }
14122 8 : if (flags & NDR_OUT) {
14123 6 : ndr_print_struct(ndr, "out", "lsa_LookupNames3");
14124 6 : ndr->depth++;
14125 6 : ndr_print_ptr(ndr, "domains", r->out.domains);
14126 6 : ndr->depth++;
14127 6 : ndr_print_ptr(ndr, "domains", *r->out.domains);
14128 6 : ndr->depth++;
14129 6 : if (*r->out.domains) {
14130 6 : ndr_print_lsa_RefDomainList(ndr, "domains", *r->out.domains);
14131 : }
14132 6 : ndr->depth--;
14133 6 : ndr->depth--;
14134 6 : ndr_print_ptr(ndr, "sids", r->out.sids);
14135 6 : ndr->depth++;
14136 6 : ndr_print_lsa_TransSidArray3(ndr, "sids", r->out.sids);
14137 6 : ndr->depth--;
14138 6 : ndr_print_ptr(ndr, "count", r->out.count);
14139 6 : ndr->depth++;
14140 6 : ndr_print_uint32(ndr, "count", *r->out.count);
14141 6 : ndr->depth--;
14142 6 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
14143 6 : ndr->depth--;
14144 : }
14145 8 : ndr->depth--;
14146 : }
14147 :
14148 0 : static enum ndr_err_code ndr_push_lsa_CREDRGETSESSIONTYPES(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CREDRGETSESSIONTYPES *r)
14149 : {
14150 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14151 0 : if (flags & NDR_IN) {
14152 0 : }
14153 0 : if (flags & NDR_OUT) {
14154 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
14155 : }
14156 0 : return NDR_ERR_SUCCESS;
14157 : }
14158 :
14159 0 : static enum ndr_err_code ndr_pull_lsa_CREDRGETSESSIONTYPES(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CREDRGETSESSIONTYPES *r)
14160 : {
14161 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14162 0 : if (flags & NDR_IN) {
14163 0 : }
14164 0 : if (flags & NDR_OUT) {
14165 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14166 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14167 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
14168 : }
14169 0 : return NDR_ERR_SUCCESS;
14170 : }
14171 :
14172 0 : _PUBLIC_ void ndr_print_lsa_CREDRGETSESSIONTYPES(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CREDRGETSESSIONTYPES *r)
14173 : {
14174 0 : ndr_print_struct(ndr, name, "lsa_CREDRGETSESSIONTYPES");
14175 0 : if (r == NULL) { ndr_print_null(ndr); return; }
14176 0 : ndr->depth++;
14177 0 : if (flags & NDR_SET_VALUES) {
14178 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14179 : }
14180 0 : if (flags & NDR_IN) {
14181 0 : ndr_print_struct(ndr, "in", "lsa_CREDRGETSESSIONTYPES");
14182 0 : ndr->depth++;
14183 0 : ndr->depth--;
14184 : }
14185 0 : if (flags & NDR_OUT) {
14186 0 : ndr_print_struct(ndr, "out", "lsa_CREDRGETSESSIONTYPES");
14187 0 : ndr->depth++;
14188 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
14189 0 : ndr->depth--;
14190 : }
14191 0 : ndr->depth--;
14192 : }
14193 :
14194 0 : static enum ndr_err_code ndr_push_lsa_LSARREGISTERAUDITEVENT(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LSARREGISTERAUDITEVENT *r)
14195 : {
14196 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14197 0 : if (flags & NDR_IN) {
14198 0 : }
14199 0 : if (flags & NDR_OUT) {
14200 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
14201 : }
14202 0 : return NDR_ERR_SUCCESS;
14203 : }
14204 :
14205 0 : static enum ndr_err_code ndr_pull_lsa_LSARREGISTERAUDITEVENT(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LSARREGISTERAUDITEVENT *r)
14206 : {
14207 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14208 0 : if (flags & NDR_IN) {
14209 0 : }
14210 0 : if (flags & NDR_OUT) {
14211 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14212 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14213 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
14214 : }
14215 0 : return NDR_ERR_SUCCESS;
14216 : }
14217 :
14218 0 : _PUBLIC_ void ndr_print_lsa_LSARREGISTERAUDITEVENT(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LSARREGISTERAUDITEVENT *r)
14219 : {
14220 0 : ndr_print_struct(ndr, name, "lsa_LSARREGISTERAUDITEVENT");
14221 0 : if (r == NULL) { ndr_print_null(ndr); return; }
14222 0 : ndr->depth++;
14223 0 : if (flags & NDR_SET_VALUES) {
14224 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14225 : }
14226 0 : if (flags & NDR_IN) {
14227 0 : ndr_print_struct(ndr, "in", "lsa_LSARREGISTERAUDITEVENT");
14228 0 : ndr->depth++;
14229 0 : ndr->depth--;
14230 : }
14231 0 : if (flags & NDR_OUT) {
14232 0 : ndr_print_struct(ndr, "out", "lsa_LSARREGISTERAUDITEVENT");
14233 0 : ndr->depth++;
14234 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
14235 0 : ndr->depth--;
14236 : }
14237 0 : ndr->depth--;
14238 : }
14239 :
14240 0 : static enum ndr_err_code ndr_push_lsa_LSARGENAUDITEVENT(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LSARGENAUDITEVENT *r)
14241 : {
14242 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14243 0 : if (flags & NDR_IN) {
14244 0 : }
14245 0 : if (flags & NDR_OUT) {
14246 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
14247 : }
14248 0 : return NDR_ERR_SUCCESS;
14249 : }
14250 :
14251 0 : static enum ndr_err_code ndr_pull_lsa_LSARGENAUDITEVENT(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LSARGENAUDITEVENT *r)
14252 : {
14253 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14254 0 : if (flags & NDR_IN) {
14255 0 : }
14256 0 : if (flags & NDR_OUT) {
14257 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14258 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14259 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
14260 : }
14261 0 : return NDR_ERR_SUCCESS;
14262 : }
14263 :
14264 0 : _PUBLIC_ void ndr_print_lsa_LSARGENAUDITEVENT(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LSARGENAUDITEVENT *r)
14265 : {
14266 0 : ndr_print_struct(ndr, name, "lsa_LSARGENAUDITEVENT");
14267 0 : if (r == NULL) { ndr_print_null(ndr); return; }
14268 0 : ndr->depth++;
14269 0 : if (flags & NDR_SET_VALUES) {
14270 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14271 : }
14272 0 : if (flags & NDR_IN) {
14273 0 : ndr_print_struct(ndr, "in", "lsa_LSARGENAUDITEVENT");
14274 0 : ndr->depth++;
14275 0 : ndr->depth--;
14276 : }
14277 0 : if (flags & NDR_OUT) {
14278 0 : ndr_print_struct(ndr, "out", "lsa_LSARGENAUDITEVENT");
14279 0 : ndr->depth++;
14280 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
14281 0 : ndr->depth--;
14282 : }
14283 0 : ndr->depth--;
14284 : }
14285 :
14286 0 : static enum ndr_err_code ndr_push_lsa_LSARUNREGISTERAUDITEVENT(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LSARUNREGISTERAUDITEVENT *r)
14287 : {
14288 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14289 0 : if (flags & NDR_IN) {
14290 0 : }
14291 0 : if (flags & NDR_OUT) {
14292 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
14293 : }
14294 0 : return NDR_ERR_SUCCESS;
14295 : }
14296 :
14297 0 : static enum ndr_err_code ndr_pull_lsa_LSARUNREGISTERAUDITEVENT(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LSARUNREGISTERAUDITEVENT *r)
14298 : {
14299 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14300 0 : if (flags & NDR_IN) {
14301 0 : }
14302 0 : if (flags & NDR_OUT) {
14303 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14304 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14305 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
14306 : }
14307 0 : return NDR_ERR_SUCCESS;
14308 : }
14309 :
14310 0 : _PUBLIC_ void ndr_print_lsa_LSARUNREGISTERAUDITEVENT(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LSARUNREGISTERAUDITEVENT *r)
14311 : {
14312 0 : ndr_print_struct(ndr, name, "lsa_LSARUNREGISTERAUDITEVENT");
14313 0 : if (r == NULL) { ndr_print_null(ndr); return; }
14314 0 : ndr->depth++;
14315 0 : if (flags & NDR_SET_VALUES) {
14316 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14317 : }
14318 0 : if (flags & NDR_IN) {
14319 0 : ndr_print_struct(ndr, "in", "lsa_LSARUNREGISTERAUDITEVENT");
14320 0 : ndr->depth++;
14321 0 : ndr->depth--;
14322 : }
14323 0 : if (flags & NDR_OUT) {
14324 0 : ndr_print_struct(ndr, "out", "lsa_LSARUNREGISTERAUDITEVENT");
14325 0 : ndr->depth++;
14326 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
14327 0 : ndr->depth--;
14328 : }
14329 0 : ndr->depth--;
14330 : }
14331 :
14332 288 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_lsaRQueryForestTrustInformation(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_lsaRQueryForestTrustInformation *r)
14333 : {
14334 288 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14335 288 : if (flags & NDR_IN) {
14336 124 : if (r->in.handle == NULL) {
14337 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14338 : }
14339 124 : if (r->in.trusted_domain_name == NULL) {
14340 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14341 : }
14342 124 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
14343 124 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.trusted_domain_name));
14344 124 : NDR_CHECK(ndr_push_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, r->in.highest_record_type));
14345 : }
14346 288 : if (flags & NDR_OUT) {
14347 164 : if (r->out.forest_trust_info == NULL) {
14348 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14349 : }
14350 164 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.forest_trust_info));
14351 164 : if (*r->out.forest_trust_info) {
14352 156 : NDR_CHECK(ndr_push_lsa_ForestTrustInformation(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.forest_trust_info));
14353 : }
14354 164 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
14355 : }
14356 288 : return NDR_ERR_SUCCESS;
14357 : }
14358 :
14359 292 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_lsaRQueryForestTrustInformation(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_lsaRQueryForestTrustInformation *r)
14360 : {
14361 4 : uint32_t _ptr_forest_trust_info;
14362 292 : TALLOC_CTX *_mem_save_handle_0 = NULL;
14363 292 : TALLOC_CTX *_mem_save_trusted_domain_name_0 = NULL;
14364 292 : TALLOC_CTX *_mem_save_forest_trust_info_0 = NULL;
14365 292 : TALLOC_CTX *_mem_save_forest_trust_info_1 = NULL;
14366 292 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14367 292 : if (flags & NDR_IN) {
14368 166 : NDR_ZERO_STRUCT(r->out);
14369 :
14370 166 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14371 166 : NDR_PULL_ALLOC(ndr, r->in.handle);
14372 : }
14373 166 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
14374 166 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
14375 166 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
14376 166 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
14377 166 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14378 166 : NDR_PULL_ALLOC(ndr, r->in.trusted_domain_name);
14379 : }
14380 166 : _mem_save_trusted_domain_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
14381 166 : NDR_PULL_SET_MEM_CTX(ndr, r->in.trusted_domain_name, LIBNDR_FLAG_REF_ALLOC);
14382 166 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.trusted_domain_name));
14383 166 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trusted_domain_name_0, LIBNDR_FLAG_REF_ALLOC);
14384 168 : NDR_CHECK(ndr_pull_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, &r->in.highest_record_type));
14385 166 : NDR_PULL_ALLOC(ndr, r->out.forest_trust_info);
14386 166 : NDR_ZERO_STRUCTP(r->out.forest_trust_info);
14387 : }
14388 292 : if (flags & NDR_OUT) {
14389 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14390 : if (r->in.handle == NULL) {
14391 : NDR_PULL_ALLOC(ndr, r->in.handle);
14392 : NDR_ZERO_STRUCTP(r->in.handle);
14393 : }
14394 : if (r->in.trusted_domain_name == NULL) {
14395 : NDR_PULL_ALLOC(ndr, r->in.trusted_domain_name);
14396 : NDR_ZERO_STRUCTP(r->in.trusted_domain_name);
14397 : }
14398 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14399 126 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14400 126 : NDR_PULL_ALLOC(ndr, r->out.forest_trust_info);
14401 : }
14402 126 : _mem_save_forest_trust_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
14403 126 : NDR_PULL_SET_MEM_CTX(ndr, r->out.forest_trust_info, LIBNDR_FLAG_REF_ALLOC);
14404 126 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_forest_trust_info));
14405 126 : if (_ptr_forest_trust_info) {
14406 126 : NDR_PULL_ALLOC(ndr, *r->out.forest_trust_info);
14407 : } else {
14408 0 : *r->out.forest_trust_info = NULL;
14409 : }
14410 126 : if (*r->out.forest_trust_info) {
14411 126 : _mem_save_forest_trust_info_1 = NDR_PULL_GET_MEM_CTX(ndr);
14412 126 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.forest_trust_info, 0);
14413 126 : NDR_CHECK(ndr_pull_lsa_ForestTrustInformation(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.forest_trust_info));
14414 126 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_forest_trust_info_1, 0);
14415 : }
14416 126 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_forest_trust_info_0, LIBNDR_FLAG_REF_ALLOC);
14417 126 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
14418 : }
14419 288 : return NDR_ERR_SUCCESS;
14420 : }
14421 :
14422 4 : _PUBLIC_ void ndr_print_lsa_lsaRQueryForestTrustInformation(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_lsaRQueryForestTrustInformation *r)
14423 : {
14424 4 : ndr_print_struct(ndr, name, "lsa_lsaRQueryForestTrustInformation");
14425 4 : if (r == NULL) { ndr_print_null(ndr); return; }
14426 4 : ndr->depth++;
14427 4 : if (flags & NDR_SET_VALUES) {
14428 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14429 : }
14430 4 : if (flags & NDR_IN) {
14431 2 : ndr_print_struct(ndr, "in", "lsa_lsaRQueryForestTrustInformation");
14432 2 : ndr->depth++;
14433 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
14434 2 : ndr->depth++;
14435 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
14436 2 : ndr->depth--;
14437 2 : ndr_print_ptr(ndr, "trusted_domain_name", r->in.trusted_domain_name);
14438 2 : ndr->depth++;
14439 2 : ndr_print_lsa_String(ndr, "trusted_domain_name", r->in.trusted_domain_name);
14440 2 : ndr->depth--;
14441 2 : ndr_print_lsa_ForestTrustRecordType(ndr, "highest_record_type", r->in.highest_record_type);
14442 2 : ndr->depth--;
14443 : }
14444 4 : if (flags & NDR_OUT) {
14445 2 : ndr_print_struct(ndr, "out", "lsa_lsaRQueryForestTrustInformation");
14446 2 : ndr->depth++;
14447 2 : ndr_print_ptr(ndr, "forest_trust_info", r->out.forest_trust_info);
14448 2 : ndr->depth++;
14449 2 : ndr_print_ptr(ndr, "forest_trust_info", *r->out.forest_trust_info);
14450 2 : ndr->depth++;
14451 2 : if (*r->out.forest_trust_info) {
14452 2 : ndr_print_lsa_ForestTrustInformation(ndr, "forest_trust_info", *r->out.forest_trust_info);
14453 : }
14454 2 : ndr->depth--;
14455 2 : ndr->depth--;
14456 2 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
14457 2 : ndr->depth--;
14458 : }
14459 4 : ndr->depth--;
14460 : }
14461 :
14462 161 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_lsaRSetForestTrustInformation(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_lsaRSetForestTrustInformation *r)
14463 : {
14464 161 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14465 161 : if (flags & NDR_IN) {
14466 72 : if (r->in.handle == NULL) {
14467 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14468 : }
14469 72 : if (r->in.trusted_domain_name == NULL) {
14470 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14471 : }
14472 72 : if (r->in.forest_trust_info == NULL) {
14473 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14474 : }
14475 72 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
14476 72 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.trusted_domain_name));
14477 72 : NDR_CHECK(ndr_push_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, r->in.highest_record_type));
14478 72 : NDR_CHECK(ndr_push_lsa_ForestTrustInformation(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.forest_trust_info));
14479 72 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.check_only));
14480 : }
14481 161 : if (flags & NDR_OUT) {
14482 89 : if (r->out.collision_info == NULL) {
14483 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14484 : }
14485 89 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.collision_info));
14486 89 : if (*r->out.collision_info) {
14487 20 : NDR_CHECK(ndr_push_lsa_ForestTrustCollisionInfo(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.collision_info));
14488 : }
14489 89 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
14490 : }
14491 161 : return NDR_ERR_SUCCESS;
14492 : }
14493 :
14494 162 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_lsaRSetForestTrustInformation(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_lsaRSetForestTrustInformation *r)
14495 : {
14496 2 : uint32_t _ptr_collision_info;
14497 162 : TALLOC_CTX *_mem_save_handle_0 = NULL;
14498 162 : TALLOC_CTX *_mem_save_trusted_domain_name_0 = NULL;
14499 162 : TALLOC_CTX *_mem_save_forest_trust_info_0 = NULL;
14500 162 : TALLOC_CTX *_mem_save_collision_info_0 = NULL;
14501 162 : TALLOC_CTX *_mem_save_collision_info_1 = NULL;
14502 162 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14503 162 : if (flags & NDR_IN) {
14504 90 : NDR_ZERO_STRUCT(r->out);
14505 :
14506 90 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14507 90 : NDR_PULL_ALLOC(ndr, r->in.handle);
14508 : }
14509 90 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
14510 90 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
14511 90 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
14512 90 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
14513 90 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14514 90 : NDR_PULL_ALLOC(ndr, r->in.trusted_domain_name);
14515 : }
14516 90 : _mem_save_trusted_domain_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
14517 90 : NDR_PULL_SET_MEM_CTX(ndr, r->in.trusted_domain_name, LIBNDR_FLAG_REF_ALLOC);
14518 90 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.trusted_domain_name));
14519 90 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trusted_domain_name_0, LIBNDR_FLAG_REF_ALLOC);
14520 92 : NDR_CHECK(ndr_pull_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, &r->in.highest_record_type));
14521 90 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14522 90 : NDR_PULL_ALLOC(ndr, r->in.forest_trust_info);
14523 : }
14524 90 : _mem_save_forest_trust_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
14525 90 : NDR_PULL_SET_MEM_CTX(ndr, r->in.forest_trust_info, LIBNDR_FLAG_REF_ALLOC);
14526 90 : NDR_CHECK(ndr_pull_lsa_ForestTrustInformation(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.forest_trust_info));
14527 90 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_forest_trust_info_0, LIBNDR_FLAG_REF_ALLOC);
14528 90 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.check_only));
14529 90 : NDR_PULL_ALLOC(ndr, r->out.collision_info);
14530 90 : NDR_ZERO_STRUCTP(r->out.collision_info);
14531 : }
14532 162 : if (flags & NDR_OUT) {
14533 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14534 : if (r->in.handle == NULL) {
14535 : NDR_PULL_ALLOC(ndr, r->in.handle);
14536 : NDR_ZERO_STRUCTP(r->in.handle);
14537 : }
14538 : if (r->in.trusted_domain_name == NULL) {
14539 : NDR_PULL_ALLOC(ndr, r->in.trusted_domain_name);
14540 : NDR_ZERO_STRUCTP(r->in.trusted_domain_name);
14541 : }
14542 : if (r->in.forest_trust_info == NULL) {
14543 : NDR_PULL_ALLOC(ndr, r->in.forest_trust_info);
14544 : NDR_ZERO_STRUCTP(r->in.forest_trust_info);
14545 : }
14546 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14547 72 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14548 69 : NDR_PULL_ALLOC(ndr, r->out.collision_info);
14549 : }
14550 72 : _mem_save_collision_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
14551 72 : NDR_PULL_SET_MEM_CTX(ndr, r->out.collision_info, LIBNDR_FLAG_REF_ALLOC);
14552 72 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_collision_info));
14553 72 : if (_ptr_collision_info) {
14554 16 : NDR_PULL_ALLOC(ndr, *r->out.collision_info);
14555 : } else {
14556 56 : *r->out.collision_info = NULL;
14557 : }
14558 72 : if (*r->out.collision_info) {
14559 16 : _mem_save_collision_info_1 = NDR_PULL_GET_MEM_CTX(ndr);
14560 16 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.collision_info, 0);
14561 16 : NDR_CHECK(ndr_pull_lsa_ForestTrustCollisionInfo(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.collision_info));
14562 16 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_collision_info_1, 0);
14563 : }
14564 72 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_collision_info_0, LIBNDR_FLAG_REF_ALLOC);
14565 72 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
14566 : }
14567 160 : return NDR_ERR_SUCCESS;
14568 : }
14569 :
14570 4 : _PUBLIC_ void ndr_print_lsa_lsaRSetForestTrustInformation(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_lsaRSetForestTrustInformation *r)
14571 : {
14572 4 : ndr_print_struct(ndr, name, "lsa_lsaRSetForestTrustInformation");
14573 4 : if (r == NULL) { ndr_print_null(ndr); return; }
14574 4 : ndr->depth++;
14575 4 : if (flags & NDR_SET_VALUES) {
14576 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14577 : }
14578 4 : if (flags & NDR_IN) {
14579 2 : ndr_print_struct(ndr, "in", "lsa_lsaRSetForestTrustInformation");
14580 2 : ndr->depth++;
14581 2 : ndr_print_ptr(ndr, "handle", r->in.handle);
14582 2 : ndr->depth++;
14583 2 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
14584 2 : ndr->depth--;
14585 2 : ndr_print_ptr(ndr, "trusted_domain_name", r->in.trusted_domain_name);
14586 2 : ndr->depth++;
14587 2 : ndr_print_lsa_StringLarge(ndr, "trusted_domain_name", r->in.trusted_domain_name);
14588 2 : ndr->depth--;
14589 2 : ndr_print_lsa_ForestTrustRecordType(ndr, "highest_record_type", r->in.highest_record_type);
14590 2 : ndr_print_ptr(ndr, "forest_trust_info", r->in.forest_trust_info);
14591 2 : ndr->depth++;
14592 2 : ndr_print_lsa_ForestTrustInformation(ndr, "forest_trust_info", r->in.forest_trust_info);
14593 2 : ndr->depth--;
14594 2 : ndr_print_uint8(ndr, "check_only", r->in.check_only);
14595 2 : ndr->depth--;
14596 : }
14597 4 : if (flags & NDR_OUT) {
14598 2 : ndr_print_struct(ndr, "out", "lsa_lsaRSetForestTrustInformation");
14599 2 : ndr->depth++;
14600 2 : ndr_print_ptr(ndr, "collision_info", r->out.collision_info);
14601 2 : ndr->depth++;
14602 2 : ndr_print_ptr(ndr, "collision_info", *r->out.collision_info);
14603 2 : ndr->depth++;
14604 2 : if (*r->out.collision_info) {
14605 0 : ndr_print_lsa_ForestTrustCollisionInfo(ndr, "collision_info", *r->out.collision_info);
14606 : }
14607 2 : ndr->depth--;
14608 2 : ndr->depth--;
14609 2 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
14610 2 : ndr->depth--;
14611 : }
14612 4 : ndr->depth--;
14613 : }
14614 :
14615 0 : static enum ndr_err_code ndr_push_lsa_CREDRRENAME(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CREDRRENAME *r)
14616 : {
14617 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14618 0 : if (flags & NDR_IN) {
14619 0 : }
14620 0 : if (flags & NDR_OUT) {
14621 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
14622 : }
14623 0 : return NDR_ERR_SUCCESS;
14624 : }
14625 :
14626 0 : static enum ndr_err_code ndr_pull_lsa_CREDRRENAME(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CREDRRENAME *r)
14627 : {
14628 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14629 0 : if (flags & NDR_IN) {
14630 0 : }
14631 0 : if (flags & NDR_OUT) {
14632 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14633 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14634 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
14635 : }
14636 0 : return NDR_ERR_SUCCESS;
14637 : }
14638 :
14639 0 : _PUBLIC_ void ndr_print_lsa_CREDRRENAME(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CREDRRENAME *r)
14640 : {
14641 0 : ndr_print_struct(ndr, name, "lsa_CREDRRENAME");
14642 0 : if (r == NULL) { ndr_print_null(ndr); return; }
14643 0 : ndr->depth++;
14644 0 : if (flags & NDR_SET_VALUES) {
14645 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14646 : }
14647 0 : if (flags & NDR_IN) {
14648 0 : ndr_print_struct(ndr, "in", "lsa_CREDRRENAME");
14649 0 : ndr->depth++;
14650 0 : ndr->depth--;
14651 : }
14652 0 : if (flags & NDR_OUT) {
14653 0 : ndr_print_struct(ndr, "out", "lsa_CREDRRENAME");
14654 0 : ndr->depth++;
14655 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
14656 0 : ndr->depth--;
14657 : }
14658 0 : ndr->depth--;
14659 : }
14660 :
14661 1967 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_LookupSids3(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LookupSids3 *r)
14662 : {
14663 1967 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14664 1967 : if (flags & NDR_IN) {
14665 399 : if (r->in.sids == NULL) {
14666 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14667 : }
14668 399 : if (r->in.names == NULL) {
14669 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14670 : }
14671 399 : if (r->in.count == NULL) {
14672 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14673 : }
14674 399 : NDR_CHECK(ndr_push_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
14675 399 : NDR_CHECK(ndr_push_lsa_TransNameArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.names));
14676 399 : NDR_CHECK(ndr_push_lsa_LookupNamesLevel(ndr, NDR_SCALARS, r->in.level));
14677 399 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.count));
14678 459 : NDR_CHECK(ndr_push_lsa_LookupOptions(ndr, NDR_SCALARS, r->in.lookup_options));
14679 459 : NDR_CHECK(ndr_push_lsa_ClientRevision(ndr, NDR_SCALARS, r->in.client_revision));
14680 : }
14681 1967 : if (flags & NDR_OUT) {
14682 1568 : if (r->out.domains == NULL) {
14683 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14684 : }
14685 1568 : if (r->out.names == NULL) {
14686 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14687 : }
14688 1568 : if (r->out.count == NULL) {
14689 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14690 : }
14691 1568 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.domains));
14692 1568 : if (*r->out.domains) {
14693 1568 : NDR_CHECK(ndr_push_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
14694 : }
14695 1568 : NDR_CHECK(ndr_push_lsa_TransNameArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.names));
14696 1568 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.count));
14697 1568 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
14698 : }
14699 1835 : return NDR_ERR_SUCCESS;
14700 : }
14701 :
14702 1893 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_LookupSids3(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LookupSids3 *r)
14703 : {
14704 122 : uint32_t _ptr_domains;
14705 1893 : TALLOC_CTX *_mem_save_sids_0 = NULL;
14706 1893 : TALLOC_CTX *_mem_save_domains_0 = NULL;
14707 1893 : TALLOC_CTX *_mem_save_domains_1 = NULL;
14708 1893 : TALLOC_CTX *_mem_save_names_0 = NULL;
14709 1893 : TALLOC_CTX *_mem_save_count_0 = NULL;
14710 1893 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14711 1893 : if (flags & NDR_IN) {
14712 1515 : NDR_ZERO_STRUCT(r->out);
14713 :
14714 1515 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14715 1515 : NDR_PULL_ALLOC(ndr, r->in.sids);
14716 : }
14717 1515 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
14718 1515 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sids, LIBNDR_FLAG_REF_ALLOC);
14719 1515 : NDR_CHECK(ndr_pull_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
14720 1515 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
14721 1515 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14722 1515 : NDR_PULL_ALLOC(ndr, r->in.names);
14723 : }
14724 1515 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
14725 1515 : NDR_PULL_SET_MEM_CTX(ndr, r->in.names, LIBNDR_FLAG_REF_ALLOC);
14726 1515 : NDR_CHECK(ndr_pull_lsa_TransNameArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.names));
14727 1515 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, LIBNDR_FLAG_REF_ALLOC);
14728 1515 : NDR_CHECK(ndr_pull_lsa_LookupNamesLevel(ndr, NDR_SCALARS, &r->in.level));
14729 1515 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14730 1515 : NDR_PULL_ALLOC(ndr, r->in.count);
14731 : }
14732 1515 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
14733 1515 : NDR_PULL_SET_MEM_CTX(ndr, r->in.count, LIBNDR_FLAG_REF_ALLOC);
14734 1515 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.count));
14735 1515 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
14736 1577 : NDR_CHECK(ndr_pull_lsa_LookupOptions(ndr, NDR_SCALARS, &r->in.lookup_options));
14737 1577 : NDR_CHECK(ndr_pull_lsa_ClientRevision(ndr, NDR_SCALARS, &r->in.client_revision));
14738 1515 : NDR_PULL_ALLOC(ndr, r->out.domains);
14739 1515 : NDR_ZERO_STRUCTP(r->out.domains);
14740 1515 : NDR_PULL_ALLOC(ndr, r->out.names);
14741 1515 : *r->out.names = *r->in.names;
14742 1515 : NDR_PULL_ALLOC(ndr, r->out.count);
14743 1515 : *r->out.count = *r->in.count;
14744 : }
14745 1893 : if (flags & NDR_OUT) {
14746 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14747 : if (r->in.sids == NULL) {
14748 : NDR_PULL_ALLOC(ndr, r->in.sids);
14749 : NDR_ZERO_STRUCTP(r->in.sids);
14750 : }
14751 : if (r->in.names == NULL) {
14752 : NDR_PULL_ALLOC(ndr, r->in.names);
14753 : NDR_ZERO_STRUCTP(r->in.names);
14754 : }
14755 : if (r->in.count == NULL) {
14756 : NDR_PULL_ALLOC(ndr, r->in.count);
14757 : NDR_ZERO_STRUCTP(r->in.count);
14758 : }
14759 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14760 378 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14761 102 : NDR_PULL_ALLOC(ndr, r->out.domains);
14762 : }
14763 378 : _mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
14764 378 : NDR_PULL_SET_MEM_CTX(ndr, r->out.domains, LIBNDR_FLAG_REF_ALLOC);
14765 378 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_domains));
14766 378 : if (_ptr_domains) {
14767 378 : NDR_PULL_ALLOC(ndr, *r->out.domains);
14768 : } else {
14769 0 : *r->out.domains = NULL;
14770 : }
14771 378 : if (*r->out.domains) {
14772 378 : _mem_save_domains_1 = NDR_PULL_GET_MEM_CTX(ndr);
14773 378 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.domains, 0);
14774 378 : NDR_CHECK(ndr_pull_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
14775 378 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_1, 0);
14776 : }
14777 378 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, LIBNDR_FLAG_REF_ALLOC);
14778 378 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14779 102 : NDR_PULL_ALLOC(ndr, r->out.names);
14780 : }
14781 378 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
14782 378 : NDR_PULL_SET_MEM_CTX(ndr, r->out.names, LIBNDR_FLAG_REF_ALLOC);
14783 378 : NDR_CHECK(ndr_pull_lsa_TransNameArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.names));
14784 378 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, LIBNDR_FLAG_REF_ALLOC);
14785 378 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14786 102 : NDR_PULL_ALLOC(ndr, r->out.count);
14787 : }
14788 378 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
14789 378 : NDR_PULL_SET_MEM_CTX(ndr, r->out.count, LIBNDR_FLAG_REF_ALLOC);
14790 378 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.count));
14791 378 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
14792 378 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
14793 : }
14794 1771 : return NDR_ERR_SUCCESS;
14795 : }
14796 :
14797 146 : _PUBLIC_ void ndr_print_lsa_LookupSids3(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LookupSids3 *r)
14798 : {
14799 146 : ndr_print_struct(ndr, name, "lsa_LookupSids3");
14800 146 : if (r == NULL) { ndr_print_null(ndr); return; }
14801 146 : ndr->depth++;
14802 146 : if (flags & NDR_SET_VALUES) {
14803 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14804 : }
14805 146 : if (flags & NDR_IN) {
14806 2 : ndr_print_struct(ndr, "in", "lsa_LookupSids3");
14807 2 : ndr->depth++;
14808 2 : ndr_print_ptr(ndr, "sids", r->in.sids);
14809 2 : ndr->depth++;
14810 2 : ndr_print_lsa_SidArray(ndr, "sids", r->in.sids);
14811 2 : ndr->depth--;
14812 2 : ndr_print_ptr(ndr, "names", r->in.names);
14813 2 : ndr->depth++;
14814 2 : ndr_print_lsa_TransNameArray2(ndr, "names", r->in.names);
14815 2 : ndr->depth--;
14816 2 : ndr_print_lsa_LookupNamesLevel(ndr, "level", r->in.level);
14817 2 : ndr_print_ptr(ndr, "count", r->in.count);
14818 2 : ndr->depth++;
14819 2 : ndr_print_uint32(ndr, "count", *r->in.count);
14820 2 : ndr->depth--;
14821 2 : ndr_print_lsa_LookupOptions(ndr, "lookup_options", r->in.lookup_options);
14822 2 : ndr_print_lsa_ClientRevision(ndr, "client_revision", r->in.client_revision);
14823 2 : ndr->depth--;
14824 : }
14825 146 : if (flags & NDR_OUT) {
14826 144 : ndr_print_struct(ndr, "out", "lsa_LookupSids3");
14827 144 : ndr->depth++;
14828 144 : ndr_print_ptr(ndr, "domains", r->out.domains);
14829 144 : ndr->depth++;
14830 144 : ndr_print_ptr(ndr, "domains", *r->out.domains);
14831 144 : ndr->depth++;
14832 144 : if (*r->out.domains) {
14833 144 : ndr_print_lsa_RefDomainList(ndr, "domains", *r->out.domains);
14834 : }
14835 144 : ndr->depth--;
14836 144 : ndr->depth--;
14837 144 : ndr_print_ptr(ndr, "names", r->out.names);
14838 144 : ndr->depth++;
14839 144 : ndr_print_lsa_TransNameArray2(ndr, "names", r->out.names);
14840 144 : ndr->depth--;
14841 144 : ndr_print_ptr(ndr, "count", r->out.count);
14842 144 : ndr->depth++;
14843 144 : ndr_print_uint32(ndr, "count", *r->out.count);
14844 144 : ndr->depth--;
14845 144 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
14846 144 : ndr->depth--;
14847 : }
14848 146 : ndr->depth--;
14849 : }
14850 :
14851 1880 : static enum ndr_err_code ndr_push_lsa_LookupNames4(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LookupNames4 *r)
14852 : {
14853 264 : uint32_t cntr_names_0;
14854 1880 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
14855 1880 : if (flags & NDR_IN) {
14856 771 : if (r->in.sids == NULL) {
14857 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14858 : }
14859 771 : if (r->in.count == NULL) {
14860 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14861 : }
14862 771 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.num_names));
14863 771 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.num_names));
14864 35627 : for (cntr_names_0 = 0; cntr_names_0 < (r->in.num_names); cntr_names_0++) {
14865 34856 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS, &r->in.names[cntr_names_0]));
14866 : }
14867 35627 : for (cntr_names_0 = 0; cntr_names_0 < (r->in.num_names); cntr_names_0++) {
14868 34856 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_BUFFERS, &r->in.names[cntr_names_0]));
14869 : }
14870 771 : NDR_CHECK(ndr_push_lsa_TransSidArray3(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
14871 771 : NDR_CHECK(ndr_push_lsa_LookupNamesLevel(ndr, NDR_SCALARS, r->in.level));
14872 771 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.count));
14873 891 : NDR_CHECK(ndr_push_lsa_LookupOptions(ndr, NDR_SCALARS, r->in.lookup_options));
14874 891 : NDR_CHECK(ndr_push_lsa_ClientRevision(ndr, NDR_SCALARS, r->in.client_revision));
14875 : }
14876 1880 : if (flags & NDR_OUT) {
14877 1109 : if (r->out.domains == NULL) {
14878 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14879 : }
14880 1109 : if (r->out.sids == NULL) {
14881 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14882 : }
14883 1109 : if (r->out.count == NULL) {
14884 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
14885 : }
14886 1109 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.domains));
14887 1109 : if (*r->out.domains) {
14888 1109 : NDR_CHECK(ndr_push_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
14889 : }
14890 1109 : NDR_CHECK(ndr_push_lsa_TransSidArray3(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
14891 1109 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.count));
14892 1109 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
14893 : }
14894 1616 : return NDR_ERR_SUCCESS;
14895 : }
14896 :
14897 1732 : static enum ndr_err_code ndr_pull_lsa_LookupNames4(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LookupNames4 *r)
14898 : {
14899 1732 : uint32_t size_names_0 = 0;
14900 240 : uint32_t cntr_names_0;
14901 240 : uint32_t _ptr_domains;
14902 1732 : TALLOC_CTX *_mem_save_names_0 = NULL;
14903 1732 : TALLOC_CTX *_mem_save_domains_0 = NULL;
14904 1732 : TALLOC_CTX *_mem_save_domains_1 = NULL;
14905 1732 : TALLOC_CTX *_mem_save_sids_0 = NULL;
14906 1732 : TALLOC_CTX *_mem_save_count_0 = NULL;
14907 1732 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
14908 1732 : if (flags & NDR_IN) {
14909 998 : NDR_ZERO_STRUCT(r->out);
14910 :
14911 998 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.num_names));
14912 998 : if (r->in.num_names > 1000) {
14913 0 : return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.num_names), (uint32_t)(0), (uint32_t)(1000));
14914 : }
14915 998 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.names));
14916 998 : NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.names, &size_names_0));
14917 998 : NDR_PULL_ALLOC_N(ndr, r->in.names, size_names_0);
14918 998 : _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
14919 998 : NDR_PULL_SET_MEM_CTX(ndr, r->in.names, 0);
14920 34517 : for (cntr_names_0 = 0; cntr_names_0 < (size_names_0); cntr_names_0++) {
14921 33519 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS, &r->in.names[cntr_names_0]));
14922 : }
14923 34517 : for (cntr_names_0 = 0; cntr_names_0 < (size_names_0); cntr_names_0++) {
14924 33519 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_BUFFERS, &r->in.names[cntr_names_0]));
14925 : }
14926 998 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, 0);
14927 998 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14928 998 : NDR_PULL_ALLOC(ndr, r->in.sids);
14929 : }
14930 998 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
14931 998 : NDR_PULL_SET_MEM_CTX(ndr, r->in.sids, LIBNDR_FLAG_REF_ALLOC);
14932 998 : NDR_CHECK(ndr_pull_lsa_TransSidArray3(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
14933 998 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
14934 998 : NDR_CHECK(ndr_pull_lsa_LookupNamesLevel(ndr, NDR_SCALARS, &r->in.level));
14935 998 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14936 998 : NDR_PULL_ALLOC(ndr, r->in.count);
14937 : }
14938 998 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
14939 998 : NDR_PULL_SET_MEM_CTX(ndr, r->in.count, LIBNDR_FLAG_REF_ALLOC);
14940 998 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.count));
14941 998 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
14942 1118 : NDR_CHECK(ndr_pull_lsa_LookupOptions(ndr, NDR_SCALARS, &r->in.lookup_options));
14943 1118 : NDR_CHECK(ndr_pull_lsa_ClientRevision(ndr, NDR_SCALARS, &r->in.client_revision));
14944 998 : NDR_PULL_ALLOC(ndr, r->out.domains);
14945 998 : NDR_ZERO_STRUCTP(r->out.domains);
14946 998 : NDR_PULL_ALLOC(ndr, r->out.sids);
14947 998 : *r->out.sids = *r->in.sids;
14948 998 : NDR_PULL_ALLOC(ndr, r->out.count);
14949 998 : *r->out.count = *r->in.count;
14950 998 : if (r->in.names) {
14951 998 : NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.names, r->in.num_names));
14952 : }
14953 34517 : for (cntr_names_0 = 0; cntr_names_0 < (size_names_0); cntr_names_0++) {
14954 6000 : }
14955 : }
14956 1732 : if (flags & NDR_OUT) {
14957 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14958 : if (r->in.sids == NULL) {
14959 : NDR_PULL_ALLOC(ndr, r->in.sids);
14960 : NDR_ZERO_STRUCTP(r->in.sids);
14961 : }
14962 : if (r->in.count == NULL) {
14963 : NDR_PULL_ALLOC(ndr, r->in.count);
14964 : NDR_ZERO_STRUCTP(r->in.count);
14965 : }
14966 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
14967 734 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14968 182 : NDR_PULL_ALLOC(ndr, r->out.domains);
14969 : }
14970 734 : _mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
14971 734 : NDR_PULL_SET_MEM_CTX(ndr, r->out.domains, LIBNDR_FLAG_REF_ALLOC);
14972 734 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_domains));
14973 734 : if (_ptr_domains) {
14974 734 : NDR_PULL_ALLOC(ndr, *r->out.domains);
14975 : } else {
14976 0 : *r->out.domains = NULL;
14977 : }
14978 734 : if (*r->out.domains) {
14979 734 : _mem_save_domains_1 = NDR_PULL_GET_MEM_CTX(ndr);
14980 734 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.domains, 0);
14981 734 : NDR_CHECK(ndr_pull_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.domains));
14982 734 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_1, 0);
14983 : }
14984 734 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, LIBNDR_FLAG_REF_ALLOC);
14985 734 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14986 182 : NDR_PULL_ALLOC(ndr, r->out.sids);
14987 : }
14988 734 : _mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
14989 734 : NDR_PULL_SET_MEM_CTX(ndr, r->out.sids, LIBNDR_FLAG_REF_ALLOC);
14990 734 : NDR_CHECK(ndr_pull_lsa_TransSidArray3(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sids));
14991 734 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
14992 734 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
14993 182 : NDR_PULL_ALLOC(ndr, r->out.count);
14994 : }
14995 734 : _mem_save_count_0 = NDR_PULL_GET_MEM_CTX(ndr);
14996 734 : NDR_PULL_SET_MEM_CTX(ndr, r->out.count, LIBNDR_FLAG_REF_ALLOC);
14997 734 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.count));
14998 734 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_count_0, LIBNDR_FLAG_REF_ALLOC);
14999 734 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
15000 : }
15001 1492 : return NDR_ERR_SUCCESS;
15002 : }
15003 :
15004 288 : _PUBLIC_ void ndr_print_lsa_LookupNames4(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LookupNames4 *r)
15005 : {
15006 48 : uint32_t cntr_names_0;
15007 288 : ndr_print_struct(ndr, name, "lsa_LookupNames4");
15008 288 : if (r == NULL) { ndr_print_null(ndr); return; }
15009 288 : ndr->depth++;
15010 288 : if (flags & NDR_SET_VALUES) {
15011 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15012 : }
15013 288 : if (flags & NDR_IN) {
15014 0 : ndr_print_struct(ndr, "in", "lsa_LookupNames4");
15015 0 : ndr->depth++;
15016 0 : ndr_print_uint32(ndr, "num_names", r->in.num_names);
15017 0 : ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "names", (uint32_t)(r->in.num_names));
15018 0 : ndr->depth++;
15019 0 : for (cntr_names_0 = 0; cntr_names_0 < (r->in.num_names); cntr_names_0++) {
15020 0 : ndr_print_lsa_String(ndr, "names", &r->in.names[cntr_names_0]);
15021 : }
15022 0 : ndr->depth--;
15023 0 : ndr_print_ptr(ndr, "sids", r->in.sids);
15024 0 : ndr->depth++;
15025 0 : ndr_print_lsa_TransSidArray3(ndr, "sids", r->in.sids);
15026 0 : ndr->depth--;
15027 0 : ndr_print_lsa_LookupNamesLevel(ndr, "level", r->in.level);
15028 0 : ndr_print_ptr(ndr, "count", r->in.count);
15029 0 : ndr->depth++;
15030 0 : ndr_print_uint32(ndr, "count", *r->in.count);
15031 0 : ndr->depth--;
15032 0 : ndr_print_lsa_LookupOptions(ndr, "lookup_options", r->in.lookup_options);
15033 0 : ndr_print_lsa_ClientRevision(ndr, "client_revision", r->in.client_revision);
15034 0 : ndr->depth--;
15035 : }
15036 288 : if (flags & NDR_OUT) {
15037 288 : ndr_print_struct(ndr, "out", "lsa_LookupNames4");
15038 288 : ndr->depth++;
15039 288 : ndr_print_ptr(ndr, "domains", r->out.domains);
15040 288 : ndr->depth++;
15041 288 : ndr_print_ptr(ndr, "domains", *r->out.domains);
15042 288 : ndr->depth++;
15043 288 : if (*r->out.domains) {
15044 288 : ndr_print_lsa_RefDomainList(ndr, "domains", *r->out.domains);
15045 : }
15046 288 : ndr->depth--;
15047 288 : ndr->depth--;
15048 288 : ndr_print_ptr(ndr, "sids", r->out.sids);
15049 288 : ndr->depth++;
15050 288 : ndr_print_lsa_TransSidArray3(ndr, "sids", r->out.sids);
15051 288 : ndr->depth--;
15052 288 : ndr_print_ptr(ndr, "count", r->out.count);
15053 288 : ndr->depth++;
15054 288 : ndr_print_uint32(ndr, "count", *r->out.count);
15055 288 : ndr->depth--;
15056 288 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
15057 288 : ndr->depth--;
15058 : }
15059 288 : ndr->depth--;
15060 : }
15061 :
15062 0 : static enum ndr_err_code ndr_push_lsa_LSAROPENPOLICYSCE(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LSAROPENPOLICYSCE *r)
15063 : {
15064 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15065 0 : if (flags & NDR_IN) {
15066 0 : }
15067 0 : if (flags & NDR_OUT) {
15068 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
15069 : }
15070 0 : return NDR_ERR_SUCCESS;
15071 : }
15072 :
15073 0 : static enum ndr_err_code ndr_pull_lsa_LSAROPENPOLICYSCE(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LSAROPENPOLICYSCE *r)
15074 : {
15075 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15076 0 : if (flags & NDR_IN) {
15077 0 : }
15078 0 : if (flags & NDR_OUT) {
15079 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15080 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15081 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
15082 : }
15083 0 : return NDR_ERR_SUCCESS;
15084 : }
15085 :
15086 0 : _PUBLIC_ void ndr_print_lsa_LSAROPENPOLICYSCE(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LSAROPENPOLICYSCE *r)
15087 : {
15088 0 : ndr_print_struct(ndr, name, "lsa_LSAROPENPOLICYSCE");
15089 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15090 0 : ndr->depth++;
15091 0 : if (flags & NDR_SET_VALUES) {
15092 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15093 : }
15094 0 : if (flags & NDR_IN) {
15095 0 : ndr_print_struct(ndr, "in", "lsa_LSAROPENPOLICYSCE");
15096 0 : ndr->depth++;
15097 0 : ndr->depth--;
15098 : }
15099 0 : if (flags & NDR_OUT) {
15100 0 : ndr_print_struct(ndr, "out", "lsa_LSAROPENPOLICYSCE");
15101 0 : ndr->depth++;
15102 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
15103 0 : ndr->depth--;
15104 : }
15105 0 : ndr->depth--;
15106 : }
15107 :
15108 0 : static enum ndr_err_code ndr_push_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *r)
15109 : {
15110 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15111 0 : if (flags & NDR_IN) {
15112 0 : }
15113 0 : if (flags & NDR_OUT) {
15114 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
15115 : }
15116 0 : return NDR_ERR_SUCCESS;
15117 : }
15118 :
15119 0 : static enum ndr_err_code ndr_pull_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *r)
15120 : {
15121 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15122 0 : if (flags & NDR_IN) {
15123 0 : }
15124 0 : if (flags & NDR_OUT) {
15125 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15126 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15127 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
15128 : }
15129 0 : return NDR_ERR_SUCCESS;
15130 : }
15131 :
15132 0 : _PUBLIC_ void ndr_print_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *r)
15133 : {
15134 0 : ndr_print_struct(ndr, name, "lsa_LSARADTREGISTERSECURITYEVENTSOURCE");
15135 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15136 0 : ndr->depth++;
15137 0 : if (flags & NDR_SET_VALUES) {
15138 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15139 : }
15140 0 : if (flags & NDR_IN) {
15141 0 : ndr_print_struct(ndr, "in", "lsa_LSARADTREGISTERSECURITYEVENTSOURCE");
15142 0 : ndr->depth++;
15143 0 : ndr->depth--;
15144 : }
15145 0 : if (flags & NDR_OUT) {
15146 0 : ndr_print_struct(ndr, "out", "lsa_LSARADTREGISTERSECURITYEVENTSOURCE");
15147 0 : ndr->depth++;
15148 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
15149 0 : ndr->depth--;
15150 : }
15151 0 : ndr->depth--;
15152 : }
15153 :
15154 0 : static enum ndr_err_code ndr_push_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *r)
15155 : {
15156 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15157 0 : if (flags & NDR_IN) {
15158 0 : }
15159 0 : if (flags & NDR_OUT) {
15160 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
15161 : }
15162 0 : return NDR_ERR_SUCCESS;
15163 : }
15164 :
15165 0 : static enum ndr_err_code ndr_pull_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *r)
15166 : {
15167 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15168 0 : if (flags & NDR_IN) {
15169 0 : }
15170 0 : if (flags & NDR_OUT) {
15171 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15172 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15173 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
15174 : }
15175 0 : return NDR_ERR_SUCCESS;
15176 : }
15177 :
15178 0 : _PUBLIC_ void ndr_print_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *r)
15179 : {
15180 0 : ndr_print_struct(ndr, name, "lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE");
15181 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15182 0 : ndr->depth++;
15183 0 : if (flags & NDR_SET_VALUES) {
15184 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15185 : }
15186 0 : if (flags & NDR_IN) {
15187 0 : ndr_print_struct(ndr, "in", "lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE");
15188 0 : ndr->depth++;
15189 0 : ndr->depth--;
15190 : }
15191 0 : if (flags & NDR_OUT) {
15192 0 : ndr_print_struct(ndr, "out", "lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE");
15193 0 : ndr->depth++;
15194 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
15195 0 : ndr->depth--;
15196 : }
15197 0 : ndr->depth--;
15198 : }
15199 :
15200 0 : static enum ndr_err_code ndr_push_lsa_LSARADTREPORTSECURITYEVENT(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_LSARADTREPORTSECURITYEVENT *r)
15201 : {
15202 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15203 0 : if (flags & NDR_IN) {
15204 0 : }
15205 0 : if (flags & NDR_OUT) {
15206 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
15207 : }
15208 0 : return NDR_ERR_SUCCESS;
15209 : }
15210 :
15211 0 : static enum ndr_err_code ndr_pull_lsa_LSARADTREPORTSECURITYEVENT(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_LSARADTREPORTSECURITYEVENT *r)
15212 : {
15213 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15214 0 : if (flags & NDR_IN) {
15215 0 : }
15216 0 : if (flags & NDR_OUT) {
15217 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15218 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15219 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
15220 : }
15221 0 : return NDR_ERR_SUCCESS;
15222 : }
15223 :
15224 0 : _PUBLIC_ void ndr_print_lsa_LSARADTREPORTSECURITYEVENT(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_LSARADTREPORTSECURITYEVENT *r)
15225 : {
15226 0 : ndr_print_struct(ndr, name, "lsa_LSARADTREPORTSECURITYEVENT");
15227 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15228 0 : ndr->depth++;
15229 0 : if (flags & NDR_SET_VALUES) {
15230 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15231 : }
15232 0 : if (flags & NDR_IN) {
15233 0 : ndr_print_struct(ndr, "in", "lsa_LSARADTREPORTSECURITYEVENT");
15234 0 : ndr->depth++;
15235 0 : ndr->depth--;
15236 : }
15237 0 : if (flags & NDR_OUT) {
15238 0 : ndr_print_struct(ndr, "out", "lsa_LSARADTREPORTSECURITYEVENT");
15239 0 : ndr->depth++;
15240 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
15241 0 : ndr->depth--;
15242 : }
15243 0 : ndr->depth--;
15244 : }
15245 :
15246 0 : static enum ndr_err_code ndr_push_lsa_Opnum82NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum82NotUsedOnWire *r)
15247 : {
15248 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15249 0 : if (flags & NDR_IN) {
15250 : }
15251 0 : if (flags & NDR_OUT) {
15252 : }
15253 0 : return NDR_ERR_SUCCESS;
15254 : }
15255 :
15256 0 : static enum ndr_err_code ndr_pull_lsa_Opnum82NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum82NotUsedOnWire *r)
15257 : {
15258 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15259 0 : if (flags & NDR_IN) {
15260 : }
15261 0 : if (flags & NDR_OUT) {
15262 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15263 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15264 : }
15265 0 : return NDR_ERR_SUCCESS;
15266 : }
15267 :
15268 0 : _PUBLIC_ void ndr_print_lsa_Opnum82NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum82NotUsedOnWire *r)
15269 : {
15270 0 : ndr_print_struct(ndr, name, "lsa_Opnum82NotUsedOnWire");
15271 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15272 0 : ndr->depth++;
15273 0 : if (flags & NDR_SET_VALUES) {
15274 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15275 : }
15276 0 : if (flags & NDR_IN) {
15277 0 : ndr_print_struct(ndr, "in", "lsa_Opnum82NotUsedOnWire");
15278 0 : ndr->depth++;
15279 0 : ndr->depth--;
15280 : }
15281 0 : if (flags & NDR_OUT) {
15282 0 : ndr_print_struct(ndr, "out", "lsa_Opnum82NotUsedOnWire");
15283 0 : ndr->depth++;
15284 0 : ndr->depth--;
15285 : }
15286 0 : ndr->depth--;
15287 : }
15288 :
15289 0 : static enum ndr_err_code ndr_push_lsa_Opnum83NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum83NotUsedOnWire *r)
15290 : {
15291 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15292 0 : if (flags & NDR_IN) {
15293 : }
15294 0 : if (flags & NDR_OUT) {
15295 : }
15296 0 : return NDR_ERR_SUCCESS;
15297 : }
15298 :
15299 0 : static enum ndr_err_code ndr_pull_lsa_Opnum83NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum83NotUsedOnWire *r)
15300 : {
15301 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15302 0 : if (flags & NDR_IN) {
15303 : }
15304 0 : if (flags & NDR_OUT) {
15305 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15306 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15307 : }
15308 0 : return NDR_ERR_SUCCESS;
15309 : }
15310 :
15311 0 : _PUBLIC_ void ndr_print_lsa_Opnum83NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum83NotUsedOnWire *r)
15312 : {
15313 0 : ndr_print_struct(ndr, name, "lsa_Opnum83NotUsedOnWire");
15314 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15315 0 : ndr->depth++;
15316 0 : if (flags & NDR_SET_VALUES) {
15317 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15318 : }
15319 0 : if (flags & NDR_IN) {
15320 0 : ndr_print_struct(ndr, "in", "lsa_Opnum83NotUsedOnWire");
15321 0 : ndr->depth++;
15322 0 : ndr->depth--;
15323 : }
15324 0 : if (flags & NDR_OUT) {
15325 0 : ndr_print_struct(ndr, "out", "lsa_Opnum83NotUsedOnWire");
15326 0 : ndr->depth++;
15327 0 : ndr->depth--;
15328 : }
15329 0 : ndr->depth--;
15330 : }
15331 :
15332 0 : static enum ndr_err_code ndr_push_lsa_Opnum84NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum84NotUsedOnWire *r)
15333 : {
15334 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15335 0 : if (flags & NDR_IN) {
15336 : }
15337 0 : if (flags & NDR_OUT) {
15338 : }
15339 0 : return NDR_ERR_SUCCESS;
15340 : }
15341 :
15342 0 : static enum ndr_err_code ndr_pull_lsa_Opnum84NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum84NotUsedOnWire *r)
15343 : {
15344 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15345 0 : if (flags & NDR_IN) {
15346 : }
15347 0 : if (flags & NDR_OUT) {
15348 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15349 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15350 : }
15351 0 : return NDR_ERR_SUCCESS;
15352 : }
15353 :
15354 0 : _PUBLIC_ void ndr_print_lsa_Opnum84NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum84NotUsedOnWire *r)
15355 : {
15356 0 : ndr_print_struct(ndr, name, "lsa_Opnum84NotUsedOnWire");
15357 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15358 0 : ndr->depth++;
15359 0 : if (flags & NDR_SET_VALUES) {
15360 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15361 : }
15362 0 : if (flags & NDR_IN) {
15363 0 : ndr_print_struct(ndr, "in", "lsa_Opnum84NotUsedOnWire");
15364 0 : ndr->depth++;
15365 0 : ndr->depth--;
15366 : }
15367 0 : if (flags & NDR_OUT) {
15368 0 : ndr_print_struct(ndr, "out", "lsa_Opnum84NotUsedOnWire");
15369 0 : ndr->depth++;
15370 0 : ndr->depth--;
15371 : }
15372 0 : ndr->depth--;
15373 : }
15374 :
15375 0 : static enum ndr_err_code ndr_push_lsa_Opnum85NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum85NotUsedOnWire *r)
15376 : {
15377 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15378 0 : if (flags & NDR_IN) {
15379 : }
15380 0 : if (flags & NDR_OUT) {
15381 : }
15382 0 : return NDR_ERR_SUCCESS;
15383 : }
15384 :
15385 0 : static enum ndr_err_code ndr_pull_lsa_Opnum85NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum85NotUsedOnWire *r)
15386 : {
15387 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15388 0 : if (flags & NDR_IN) {
15389 : }
15390 0 : if (flags & NDR_OUT) {
15391 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15392 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15393 : }
15394 0 : return NDR_ERR_SUCCESS;
15395 : }
15396 :
15397 0 : _PUBLIC_ void ndr_print_lsa_Opnum85NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum85NotUsedOnWire *r)
15398 : {
15399 0 : ndr_print_struct(ndr, name, "lsa_Opnum85NotUsedOnWire");
15400 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15401 0 : ndr->depth++;
15402 0 : if (flags & NDR_SET_VALUES) {
15403 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15404 : }
15405 0 : if (flags & NDR_IN) {
15406 0 : ndr_print_struct(ndr, "in", "lsa_Opnum85NotUsedOnWire");
15407 0 : ndr->depth++;
15408 0 : ndr->depth--;
15409 : }
15410 0 : if (flags & NDR_OUT) {
15411 0 : ndr_print_struct(ndr, "out", "lsa_Opnum85NotUsedOnWire");
15412 0 : ndr->depth++;
15413 0 : ndr->depth--;
15414 : }
15415 0 : ndr->depth--;
15416 : }
15417 :
15418 0 : static enum ndr_err_code ndr_push_lsa_Opnum86NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum86NotUsedOnWire *r)
15419 : {
15420 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15421 0 : if (flags & NDR_IN) {
15422 : }
15423 0 : if (flags & NDR_OUT) {
15424 : }
15425 0 : return NDR_ERR_SUCCESS;
15426 : }
15427 :
15428 0 : static enum ndr_err_code ndr_pull_lsa_Opnum86NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum86NotUsedOnWire *r)
15429 : {
15430 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15431 0 : if (flags & NDR_IN) {
15432 : }
15433 0 : if (flags & NDR_OUT) {
15434 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15435 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15436 : }
15437 0 : return NDR_ERR_SUCCESS;
15438 : }
15439 :
15440 0 : _PUBLIC_ void ndr_print_lsa_Opnum86NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum86NotUsedOnWire *r)
15441 : {
15442 0 : ndr_print_struct(ndr, name, "lsa_Opnum86NotUsedOnWire");
15443 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15444 0 : ndr->depth++;
15445 0 : if (flags & NDR_SET_VALUES) {
15446 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15447 : }
15448 0 : if (flags & NDR_IN) {
15449 0 : ndr_print_struct(ndr, "in", "lsa_Opnum86NotUsedOnWire");
15450 0 : ndr->depth++;
15451 0 : ndr->depth--;
15452 : }
15453 0 : if (flags & NDR_OUT) {
15454 0 : ndr_print_struct(ndr, "out", "lsa_Opnum86NotUsedOnWire");
15455 0 : ndr->depth++;
15456 0 : ndr->depth--;
15457 : }
15458 0 : ndr->depth--;
15459 : }
15460 :
15461 0 : static enum ndr_err_code ndr_push_lsa_Opnum87NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum87NotUsedOnWire *r)
15462 : {
15463 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15464 0 : if (flags & NDR_IN) {
15465 : }
15466 0 : if (flags & NDR_OUT) {
15467 : }
15468 0 : return NDR_ERR_SUCCESS;
15469 : }
15470 :
15471 0 : static enum ndr_err_code ndr_pull_lsa_Opnum87NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum87NotUsedOnWire *r)
15472 : {
15473 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15474 0 : if (flags & NDR_IN) {
15475 : }
15476 0 : if (flags & NDR_OUT) {
15477 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15478 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15479 : }
15480 0 : return NDR_ERR_SUCCESS;
15481 : }
15482 :
15483 0 : _PUBLIC_ void ndr_print_lsa_Opnum87NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum87NotUsedOnWire *r)
15484 : {
15485 0 : ndr_print_struct(ndr, name, "lsa_Opnum87NotUsedOnWire");
15486 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15487 0 : ndr->depth++;
15488 0 : if (flags & NDR_SET_VALUES) {
15489 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15490 : }
15491 0 : if (flags & NDR_IN) {
15492 0 : ndr_print_struct(ndr, "in", "lsa_Opnum87NotUsedOnWire");
15493 0 : ndr->depth++;
15494 0 : ndr->depth--;
15495 : }
15496 0 : if (flags & NDR_OUT) {
15497 0 : ndr_print_struct(ndr, "out", "lsa_Opnum87NotUsedOnWire");
15498 0 : ndr->depth++;
15499 0 : ndr->depth--;
15500 : }
15501 0 : ndr->depth--;
15502 : }
15503 :
15504 0 : static enum ndr_err_code ndr_push_lsa_Opnum88NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum88NotUsedOnWire *r)
15505 : {
15506 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15507 0 : if (flags & NDR_IN) {
15508 : }
15509 0 : if (flags & NDR_OUT) {
15510 : }
15511 0 : return NDR_ERR_SUCCESS;
15512 : }
15513 :
15514 0 : static enum ndr_err_code ndr_pull_lsa_Opnum88NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum88NotUsedOnWire *r)
15515 : {
15516 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15517 0 : if (flags & NDR_IN) {
15518 : }
15519 0 : if (flags & NDR_OUT) {
15520 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15521 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15522 : }
15523 0 : return NDR_ERR_SUCCESS;
15524 : }
15525 :
15526 0 : _PUBLIC_ void ndr_print_lsa_Opnum88NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum88NotUsedOnWire *r)
15527 : {
15528 0 : ndr_print_struct(ndr, name, "lsa_Opnum88NotUsedOnWire");
15529 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15530 0 : ndr->depth++;
15531 0 : if (flags & NDR_SET_VALUES) {
15532 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15533 : }
15534 0 : if (flags & NDR_IN) {
15535 0 : ndr_print_struct(ndr, "in", "lsa_Opnum88NotUsedOnWire");
15536 0 : ndr->depth++;
15537 0 : ndr->depth--;
15538 : }
15539 0 : if (flags & NDR_OUT) {
15540 0 : ndr_print_struct(ndr, "out", "lsa_Opnum88NotUsedOnWire");
15541 0 : ndr->depth++;
15542 0 : ndr->depth--;
15543 : }
15544 0 : ndr->depth--;
15545 : }
15546 :
15547 0 : static enum ndr_err_code ndr_push_lsa_Opnum89NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum89NotUsedOnWire *r)
15548 : {
15549 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15550 0 : if (flags & NDR_IN) {
15551 : }
15552 0 : if (flags & NDR_OUT) {
15553 : }
15554 0 : return NDR_ERR_SUCCESS;
15555 : }
15556 :
15557 0 : static enum ndr_err_code ndr_pull_lsa_Opnum89NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum89NotUsedOnWire *r)
15558 : {
15559 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15560 0 : if (flags & NDR_IN) {
15561 : }
15562 0 : if (flags & NDR_OUT) {
15563 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15564 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15565 : }
15566 0 : return NDR_ERR_SUCCESS;
15567 : }
15568 :
15569 0 : _PUBLIC_ void ndr_print_lsa_Opnum89NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum89NotUsedOnWire *r)
15570 : {
15571 0 : ndr_print_struct(ndr, name, "lsa_Opnum89NotUsedOnWire");
15572 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15573 0 : ndr->depth++;
15574 0 : if (flags & NDR_SET_VALUES) {
15575 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15576 : }
15577 0 : if (flags & NDR_IN) {
15578 0 : ndr_print_struct(ndr, "in", "lsa_Opnum89NotUsedOnWire");
15579 0 : ndr->depth++;
15580 0 : ndr->depth--;
15581 : }
15582 0 : if (flags & NDR_OUT) {
15583 0 : ndr_print_struct(ndr, "out", "lsa_Opnum89NotUsedOnWire");
15584 0 : ndr->depth++;
15585 0 : ndr->depth--;
15586 : }
15587 0 : ndr->depth--;
15588 : }
15589 :
15590 0 : static enum ndr_err_code ndr_push_lsa_Opnum90NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum90NotUsedOnWire *r)
15591 : {
15592 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15593 0 : if (flags & NDR_IN) {
15594 : }
15595 0 : if (flags & NDR_OUT) {
15596 : }
15597 0 : return NDR_ERR_SUCCESS;
15598 : }
15599 :
15600 0 : static enum ndr_err_code ndr_pull_lsa_Opnum90NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum90NotUsedOnWire *r)
15601 : {
15602 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15603 0 : if (flags & NDR_IN) {
15604 : }
15605 0 : if (flags & NDR_OUT) {
15606 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15607 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15608 : }
15609 0 : return NDR_ERR_SUCCESS;
15610 : }
15611 :
15612 0 : _PUBLIC_ void ndr_print_lsa_Opnum90NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum90NotUsedOnWire *r)
15613 : {
15614 0 : ndr_print_struct(ndr, name, "lsa_Opnum90NotUsedOnWire");
15615 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15616 0 : ndr->depth++;
15617 0 : if (flags & NDR_SET_VALUES) {
15618 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15619 : }
15620 0 : if (flags & NDR_IN) {
15621 0 : ndr_print_struct(ndr, "in", "lsa_Opnum90NotUsedOnWire");
15622 0 : ndr->depth++;
15623 0 : ndr->depth--;
15624 : }
15625 0 : if (flags & NDR_OUT) {
15626 0 : ndr_print_struct(ndr, "out", "lsa_Opnum90NotUsedOnWire");
15627 0 : ndr->depth++;
15628 0 : ndr->depth--;
15629 : }
15630 0 : ndr->depth--;
15631 : }
15632 :
15633 0 : static enum ndr_err_code ndr_push_lsa_Opnum91NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum91NotUsedOnWire *r)
15634 : {
15635 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15636 0 : if (flags & NDR_IN) {
15637 : }
15638 0 : if (flags & NDR_OUT) {
15639 : }
15640 0 : return NDR_ERR_SUCCESS;
15641 : }
15642 :
15643 0 : static enum ndr_err_code ndr_pull_lsa_Opnum91NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum91NotUsedOnWire *r)
15644 : {
15645 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15646 0 : if (flags & NDR_IN) {
15647 : }
15648 0 : if (flags & NDR_OUT) {
15649 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15650 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15651 : }
15652 0 : return NDR_ERR_SUCCESS;
15653 : }
15654 :
15655 0 : _PUBLIC_ void ndr_print_lsa_Opnum91NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum91NotUsedOnWire *r)
15656 : {
15657 0 : ndr_print_struct(ndr, name, "lsa_Opnum91NotUsedOnWire");
15658 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15659 0 : ndr->depth++;
15660 0 : if (flags & NDR_SET_VALUES) {
15661 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15662 : }
15663 0 : if (flags & NDR_IN) {
15664 0 : ndr_print_struct(ndr, "in", "lsa_Opnum91NotUsedOnWire");
15665 0 : ndr->depth++;
15666 0 : ndr->depth--;
15667 : }
15668 0 : if (flags & NDR_OUT) {
15669 0 : ndr_print_struct(ndr, "out", "lsa_Opnum91NotUsedOnWire");
15670 0 : ndr->depth++;
15671 0 : ndr->depth--;
15672 : }
15673 0 : ndr->depth--;
15674 : }
15675 :
15676 0 : static enum ndr_err_code ndr_push_lsa_Opnum92NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum92NotUsedOnWire *r)
15677 : {
15678 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15679 0 : if (flags & NDR_IN) {
15680 : }
15681 0 : if (flags & NDR_OUT) {
15682 : }
15683 0 : return NDR_ERR_SUCCESS;
15684 : }
15685 :
15686 0 : static enum ndr_err_code ndr_pull_lsa_Opnum92NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum92NotUsedOnWire *r)
15687 : {
15688 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15689 0 : if (flags & NDR_IN) {
15690 : }
15691 0 : if (flags & NDR_OUT) {
15692 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15693 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15694 : }
15695 0 : return NDR_ERR_SUCCESS;
15696 : }
15697 :
15698 0 : _PUBLIC_ void ndr_print_lsa_Opnum92NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum92NotUsedOnWire *r)
15699 : {
15700 0 : ndr_print_struct(ndr, name, "lsa_Opnum92NotUsedOnWire");
15701 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15702 0 : ndr->depth++;
15703 0 : if (flags & NDR_SET_VALUES) {
15704 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15705 : }
15706 0 : if (flags & NDR_IN) {
15707 0 : ndr_print_struct(ndr, "in", "lsa_Opnum92NotUsedOnWire");
15708 0 : ndr->depth++;
15709 0 : ndr->depth--;
15710 : }
15711 0 : if (flags & NDR_OUT) {
15712 0 : ndr_print_struct(ndr, "out", "lsa_Opnum92NotUsedOnWire");
15713 0 : ndr->depth++;
15714 0 : ndr->depth--;
15715 : }
15716 0 : ndr->depth--;
15717 : }
15718 :
15719 0 : static enum ndr_err_code ndr_push_lsa_Opnum93NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum93NotUsedOnWire *r)
15720 : {
15721 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15722 0 : if (flags & NDR_IN) {
15723 : }
15724 0 : if (flags & NDR_OUT) {
15725 : }
15726 0 : return NDR_ERR_SUCCESS;
15727 : }
15728 :
15729 0 : static enum ndr_err_code ndr_pull_lsa_Opnum93NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum93NotUsedOnWire *r)
15730 : {
15731 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15732 0 : if (flags & NDR_IN) {
15733 : }
15734 0 : if (flags & NDR_OUT) {
15735 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15736 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15737 : }
15738 0 : return NDR_ERR_SUCCESS;
15739 : }
15740 :
15741 0 : _PUBLIC_ void ndr_print_lsa_Opnum93NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum93NotUsedOnWire *r)
15742 : {
15743 0 : ndr_print_struct(ndr, name, "lsa_Opnum93NotUsedOnWire");
15744 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15745 0 : ndr->depth++;
15746 0 : if (flags & NDR_SET_VALUES) {
15747 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15748 : }
15749 0 : if (flags & NDR_IN) {
15750 0 : ndr_print_struct(ndr, "in", "lsa_Opnum93NotUsedOnWire");
15751 0 : ndr->depth++;
15752 0 : ndr->depth--;
15753 : }
15754 0 : if (flags & NDR_OUT) {
15755 0 : ndr_print_struct(ndr, "out", "lsa_Opnum93NotUsedOnWire");
15756 0 : ndr->depth++;
15757 0 : ndr->depth--;
15758 : }
15759 0 : ndr->depth--;
15760 : }
15761 :
15762 0 : static enum ndr_err_code ndr_push_lsa_Opnum94NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum94NotUsedOnWire *r)
15763 : {
15764 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15765 0 : if (flags & NDR_IN) {
15766 : }
15767 0 : if (flags & NDR_OUT) {
15768 : }
15769 0 : return NDR_ERR_SUCCESS;
15770 : }
15771 :
15772 0 : static enum ndr_err_code ndr_pull_lsa_Opnum94NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum94NotUsedOnWire *r)
15773 : {
15774 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15775 0 : if (flags & NDR_IN) {
15776 : }
15777 0 : if (flags & NDR_OUT) {
15778 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15779 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15780 : }
15781 0 : return NDR_ERR_SUCCESS;
15782 : }
15783 :
15784 0 : _PUBLIC_ void ndr_print_lsa_Opnum94NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum94NotUsedOnWire *r)
15785 : {
15786 0 : ndr_print_struct(ndr, name, "lsa_Opnum94NotUsedOnWire");
15787 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15788 0 : ndr->depth++;
15789 0 : if (flags & NDR_SET_VALUES) {
15790 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15791 : }
15792 0 : if (flags & NDR_IN) {
15793 0 : ndr_print_struct(ndr, "in", "lsa_Opnum94NotUsedOnWire");
15794 0 : ndr->depth++;
15795 0 : ndr->depth--;
15796 : }
15797 0 : if (flags & NDR_OUT) {
15798 0 : ndr_print_struct(ndr, "out", "lsa_Opnum94NotUsedOnWire");
15799 0 : ndr->depth++;
15800 0 : ndr->depth--;
15801 : }
15802 0 : ndr->depth--;
15803 : }
15804 :
15805 0 : static enum ndr_err_code ndr_push_lsa_Opnum95NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum95NotUsedOnWire *r)
15806 : {
15807 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15808 0 : if (flags & NDR_IN) {
15809 : }
15810 0 : if (flags & NDR_OUT) {
15811 : }
15812 0 : return NDR_ERR_SUCCESS;
15813 : }
15814 :
15815 0 : static enum ndr_err_code ndr_pull_lsa_Opnum95NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum95NotUsedOnWire *r)
15816 : {
15817 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15818 0 : if (flags & NDR_IN) {
15819 : }
15820 0 : if (flags & NDR_OUT) {
15821 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15822 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15823 : }
15824 0 : return NDR_ERR_SUCCESS;
15825 : }
15826 :
15827 0 : _PUBLIC_ void ndr_print_lsa_Opnum95NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum95NotUsedOnWire *r)
15828 : {
15829 0 : ndr_print_struct(ndr, name, "lsa_Opnum95NotUsedOnWire");
15830 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15831 0 : ndr->depth++;
15832 0 : if (flags & NDR_SET_VALUES) {
15833 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15834 : }
15835 0 : if (flags & NDR_IN) {
15836 0 : ndr_print_struct(ndr, "in", "lsa_Opnum95NotUsedOnWire");
15837 0 : ndr->depth++;
15838 0 : ndr->depth--;
15839 : }
15840 0 : if (flags & NDR_OUT) {
15841 0 : ndr_print_struct(ndr, "out", "lsa_Opnum95NotUsedOnWire");
15842 0 : ndr->depth++;
15843 0 : ndr->depth--;
15844 : }
15845 0 : ndr->depth--;
15846 : }
15847 :
15848 0 : static enum ndr_err_code ndr_push_lsa_Opnum96NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum96NotUsedOnWire *r)
15849 : {
15850 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15851 0 : if (flags & NDR_IN) {
15852 : }
15853 0 : if (flags & NDR_OUT) {
15854 : }
15855 0 : return NDR_ERR_SUCCESS;
15856 : }
15857 :
15858 0 : static enum ndr_err_code ndr_pull_lsa_Opnum96NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum96NotUsedOnWire *r)
15859 : {
15860 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15861 0 : if (flags & NDR_IN) {
15862 : }
15863 0 : if (flags & NDR_OUT) {
15864 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15865 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15866 : }
15867 0 : return NDR_ERR_SUCCESS;
15868 : }
15869 :
15870 0 : _PUBLIC_ void ndr_print_lsa_Opnum96NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum96NotUsedOnWire *r)
15871 : {
15872 0 : ndr_print_struct(ndr, name, "lsa_Opnum96NotUsedOnWire");
15873 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15874 0 : ndr->depth++;
15875 0 : if (flags & NDR_SET_VALUES) {
15876 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15877 : }
15878 0 : if (flags & NDR_IN) {
15879 0 : ndr_print_struct(ndr, "in", "lsa_Opnum96NotUsedOnWire");
15880 0 : ndr->depth++;
15881 0 : ndr->depth--;
15882 : }
15883 0 : if (flags & NDR_OUT) {
15884 0 : ndr_print_struct(ndr, "out", "lsa_Opnum96NotUsedOnWire");
15885 0 : ndr->depth++;
15886 0 : ndr->depth--;
15887 : }
15888 0 : ndr->depth--;
15889 : }
15890 :
15891 0 : static enum ndr_err_code ndr_push_lsa_Opnum97NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum97NotUsedOnWire *r)
15892 : {
15893 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15894 0 : if (flags & NDR_IN) {
15895 : }
15896 0 : if (flags & NDR_OUT) {
15897 : }
15898 0 : return NDR_ERR_SUCCESS;
15899 : }
15900 :
15901 0 : static enum ndr_err_code ndr_pull_lsa_Opnum97NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum97NotUsedOnWire *r)
15902 : {
15903 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15904 0 : if (flags & NDR_IN) {
15905 : }
15906 0 : if (flags & NDR_OUT) {
15907 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15908 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15909 : }
15910 0 : return NDR_ERR_SUCCESS;
15911 : }
15912 :
15913 0 : _PUBLIC_ void ndr_print_lsa_Opnum97NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum97NotUsedOnWire *r)
15914 : {
15915 0 : ndr_print_struct(ndr, name, "lsa_Opnum97NotUsedOnWire");
15916 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15917 0 : ndr->depth++;
15918 0 : if (flags & NDR_SET_VALUES) {
15919 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15920 : }
15921 0 : if (flags & NDR_IN) {
15922 0 : ndr_print_struct(ndr, "in", "lsa_Opnum97NotUsedOnWire");
15923 0 : ndr->depth++;
15924 0 : ndr->depth--;
15925 : }
15926 0 : if (flags & NDR_OUT) {
15927 0 : ndr_print_struct(ndr, "out", "lsa_Opnum97NotUsedOnWire");
15928 0 : ndr->depth++;
15929 0 : ndr->depth--;
15930 : }
15931 0 : ndr->depth--;
15932 : }
15933 :
15934 0 : static enum ndr_err_code ndr_push_lsa_Opnum98NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum98NotUsedOnWire *r)
15935 : {
15936 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15937 0 : if (flags & NDR_IN) {
15938 : }
15939 0 : if (flags & NDR_OUT) {
15940 : }
15941 0 : return NDR_ERR_SUCCESS;
15942 : }
15943 :
15944 0 : static enum ndr_err_code ndr_pull_lsa_Opnum98NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum98NotUsedOnWire *r)
15945 : {
15946 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15947 0 : if (flags & NDR_IN) {
15948 : }
15949 0 : if (flags & NDR_OUT) {
15950 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15951 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15952 : }
15953 0 : return NDR_ERR_SUCCESS;
15954 : }
15955 :
15956 0 : _PUBLIC_ void ndr_print_lsa_Opnum98NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum98NotUsedOnWire *r)
15957 : {
15958 0 : ndr_print_struct(ndr, name, "lsa_Opnum98NotUsedOnWire");
15959 0 : if (r == NULL) { ndr_print_null(ndr); return; }
15960 0 : ndr->depth++;
15961 0 : if (flags & NDR_SET_VALUES) {
15962 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
15963 : }
15964 0 : if (flags & NDR_IN) {
15965 0 : ndr_print_struct(ndr, "in", "lsa_Opnum98NotUsedOnWire");
15966 0 : ndr->depth++;
15967 0 : ndr->depth--;
15968 : }
15969 0 : if (flags & NDR_OUT) {
15970 0 : ndr_print_struct(ndr, "out", "lsa_Opnum98NotUsedOnWire");
15971 0 : ndr->depth++;
15972 0 : ndr->depth--;
15973 : }
15974 0 : ndr->depth--;
15975 : }
15976 :
15977 0 : static enum ndr_err_code ndr_push_lsa_Opnum99NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum99NotUsedOnWire *r)
15978 : {
15979 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
15980 0 : if (flags & NDR_IN) {
15981 : }
15982 0 : if (flags & NDR_OUT) {
15983 : }
15984 0 : return NDR_ERR_SUCCESS;
15985 : }
15986 :
15987 0 : static enum ndr_err_code ndr_pull_lsa_Opnum99NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum99NotUsedOnWire *r)
15988 : {
15989 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
15990 0 : if (flags & NDR_IN) {
15991 : }
15992 0 : if (flags & NDR_OUT) {
15993 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
15994 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
15995 : }
15996 0 : return NDR_ERR_SUCCESS;
15997 : }
15998 :
15999 0 : _PUBLIC_ void ndr_print_lsa_Opnum99NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum99NotUsedOnWire *r)
16000 : {
16001 0 : ndr_print_struct(ndr, name, "lsa_Opnum99NotUsedOnWire");
16002 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16003 0 : ndr->depth++;
16004 0 : if (flags & NDR_SET_VALUES) {
16005 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16006 : }
16007 0 : if (flags & NDR_IN) {
16008 0 : ndr_print_struct(ndr, "in", "lsa_Opnum99NotUsedOnWire");
16009 0 : ndr->depth++;
16010 0 : ndr->depth--;
16011 : }
16012 0 : if (flags & NDR_OUT) {
16013 0 : ndr_print_struct(ndr, "out", "lsa_Opnum99NotUsedOnWire");
16014 0 : ndr->depth++;
16015 0 : ndr->depth--;
16016 : }
16017 0 : ndr->depth--;
16018 : }
16019 :
16020 0 : static enum ndr_err_code ndr_push_lsa_Opnum100NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum100NotUsedOnWire *r)
16021 : {
16022 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16023 0 : if (flags & NDR_IN) {
16024 : }
16025 0 : if (flags & NDR_OUT) {
16026 : }
16027 0 : return NDR_ERR_SUCCESS;
16028 : }
16029 :
16030 0 : static enum ndr_err_code ndr_pull_lsa_Opnum100NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum100NotUsedOnWire *r)
16031 : {
16032 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16033 0 : if (flags & NDR_IN) {
16034 : }
16035 0 : if (flags & NDR_OUT) {
16036 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16037 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16038 : }
16039 0 : return NDR_ERR_SUCCESS;
16040 : }
16041 :
16042 0 : _PUBLIC_ void ndr_print_lsa_Opnum100NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum100NotUsedOnWire *r)
16043 : {
16044 0 : ndr_print_struct(ndr, name, "lsa_Opnum100NotUsedOnWire");
16045 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16046 0 : ndr->depth++;
16047 0 : if (flags & NDR_SET_VALUES) {
16048 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16049 : }
16050 0 : if (flags & NDR_IN) {
16051 0 : ndr_print_struct(ndr, "in", "lsa_Opnum100NotUsedOnWire");
16052 0 : ndr->depth++;
16053 0 : ndr->depth--;
16054 : }
16055 0 : if (flags & NDR_OUT) {
16056 0 : ndr_print_struct(ndr, "out", "lsa_Opnum100NotUsedOnWire");
16057 0 : ndr->depth++;
16058 0 : ndr->depth--;
16059 : }
16060 0 : ndr->depth--;
16061 : }
16062 :
16063 0 : static enum ndr_err_code ndr_push_lsa_Opnum101NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum101NotUsedOnWire *r)
16064 : {
16065 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16066 0 : if (flags & NDR_IN) {
16067 : }
16068 0 : if (flags & NDR_OUT) {
16069 : }
16070 0 : return NDR_ERR_SUCCESS;
16071 : }
16072 :
16073 0 : static enum ndr_err_code ndr_pull_lsa_Opnum101NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum101NotUsedOnWire *r)
16074 : {
16075 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16076 0 : if (flags & NDR_IN) {
16077 : }
16078 0 : if (flags & NDR_OUT) {
16079 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16080 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16081 : }
16082 0 : return NDR_ERR_SUCCESS;
16083 : }
16084 :
16085 0 : _PUBLIC_ void ndr_print_lsa_Opnum101NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum101NotUsedOnWire *r)
16086 : {
16087 0 : ndr_print_struct(ndr, name, "lsa_Opnum101NotUsedOnWire");
16088 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16089 0 : ndr->depth++;
16090 0 : if (flags & NDR_SET_VALUES) {
16091 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16092 : }
16093 0 : if (flags & NDR_IN) {
16094 0 : ndr_print_struct(ndr, "in", "lsa_Opnum101NotUsedOnWire");
16095 0 : ndr->depth++;
16096 0 : ndr->depth--;
16097 : }
16098 0 : if (flags & NDR_OUT) {
16099 0 : ndr_print_struct(ndr, "out", "lsa_Opnum101NotUsedOnWire");
16100 0 : ndr->depth++;
16101 0 : ndr->depth--;
16102 : }
16103 0 : ndr->depth--;
16104 : }
16105 :
16106 0 : static enum ndr_err_code ndr_push_lsa_Opnum102NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum102NotUsedOnWire *r)
16107 : {
16108 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16109 0 : if (flags & NDR_IN) {
16110 : }
16111 0 : if (flags & NDR_OUT) {
16112 : }
16113 0 : return NDR_ERR_SUCCESS;
16114 : }
16115 :
16116 0 : static enum ndr_err_code ndr_pull_lsa_Opnum102NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum102NotUsedOnWire *r)
16117 : {
16118 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16119 0 : if (flags & NDR_IN) {
16120 : }
16121 0 : if (flags & NDR_OUT) {
16122 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16123 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16124 : }
16125 0 : return NDR_ERR_SUCCESS;
16126 : }
16127 :
16128 0 : _PUBLIC_ void ndr_print_lsa_Opnum102NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum102NotUsedOnWire *r)
16129 : {
16130 0 : ndr_print_struct(ndr, name, "lsa_Opnum102NotUsedOnWire");
16131 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16132 0 : ndr->depth++;
16133 0 : if (flags & NDR_SET_VALUES) {
16134 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16135 : }
16136 0 : if (flags & NDR_IN) {
16137 0 : ndr_print_struct(ndr, "in", "lsa_Opnum102NotUsedOnWire");
16138 0 : ndr->depth++;
16139 0 : ndr->depth--;
16140 : }
16141 0 : if (flags & NDR_OUT) {
16142 0 : ndr_print_struct(ndr, "out", "lsa_Opnum102NotUsedOnWire");
16143 0 : ndr->depth++;
16144 0 : ndr->depth--;
16145 : }
16146 0 : ndr->depth--;
16147 : }
16148 :
16149 0 : static enum ndr_err_code ndr_push_lsa_Opnum103NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum103NotUsedOnWire *r)
16150 : {
16151 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16152 0 : if (flags & NDR_IN) {
16153 : }
16154 0 : if (flags & NDR_OUT) {
16155 : }
16156 0 : return NDR_ERR_SUCCESS;
16157 : }
16158 :
16159 0 : static enum ndr_err_code ndr_pull_lsa_Opnum103NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum103NotUsedOnWire *r)
16160 : {
16161 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16162 0 : if (flags & NDR_IN) {
16163 : }
16164 0 : if (flags & NDR_OUT) {
16165 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16166 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16167 : }
16168 0 : return NDR_ERR_SUCCESS;
16169 : }
16170 :
16171 0 : _PUBLIC_ void ndr_print_lsa_Opnum103NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum103NotUsedOnWire *r)
16172 : {
16173 0 : ndr_print_struct(ndr, name, "lsa_Opnum103NotUsedOnWire");
16174 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16175 0 : ndr->depth++;
16176 0 : if (flags & NDR_SET_VALUES) {
16177 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16178 : }
16179 0 : if (flags & NDR_IN) {
16180 0 : ndr_print_struct(ndr, "in", "lsa_Opnum103NotUsedOnWire");
16181 0 : ndr->depth++;
16182 0 : ndr->depth--;
16183 : }
16184 0 : if (flags & NDR_OUT) {
16185 0 : ndr_print_struct(ndr, "out", "lsa_Opnum103NotUsedOnWire");
16186 0 : ndr->depth++;
16187 0 : ndr->depth--;
16188 : }
16189 0 : ndr->depth--;
16190 : }
16191 :
16192 0 : static enum ndr_err_code ndr_push_lsa_Opnum104NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum104NotUsedOnWire *r)
16193 : {
16194 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16195 0 : if (flags & NDR_IN) {
16196 : }
16197 0 : if (flags & NDR_OUT) {
16198 : }
16199 0 : return NDR_ERR_SUCCESS;
16200 : }
16201 :
16202 0 : static enum ndr_err_code ndr_pull_lsa_Opnum104NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum104NotUsedOnWire *r)
16203 : {
16204 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16205 0 : if (flags & NDR_IN) {
16206 : }
16207 0 : if (flags & NDR_OUT) {
16208 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16209 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16210 : }
16211 0 : return NDR_ERR_SUCCESS;
16212 : }
16213 :
16214 0 : _PUBLIC_ void ndr_print_lsa_Opnum104NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum104NotUsedOnWire *r)
16215 : {
16216 0 : ndr_print_struct(ndr, name, "lsa_Opnum104NotUsedOnWire");
16217 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16218 0 : ndr->depth++;
16219 0 : if (flags & NDR_SET_VALUES) {
16220 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16221 : }
16222 0 : if (flags & NDR_IN) {
16223 0 : ndr_print_struct(ndr, "in", "lsa_Opnum104NotUsedOnWire");
16224 0 : ndr->depth++;
16225 0 : ndr->depth--;
16226 : }
16227 0 : if (flags & NDR_OUT) {
16228 0 : ndr_print_struct(ndr, "out", "lsa_Opnum104NotUsedOnWire");
16229 0 : ndr->depth++;
16230 0 : ndr->depth--;
16231 : }
16232 0 : ndr->depth--;
16233 : }
16234 :
16235 0 : static enum ndr_err_code ndr_push_lsa_Opnum105NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum105NotUsedOnWire *r)
16236 : {
16237 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16238 0 : if (flags & NDR_IN) {
16239 : }
16240 0 : if (flags & NDR_OUT) {
16241 : }
16242 0 : return NDR_ERR_SUCCESS;
16243 : }
16244 :
16245 0 : static enum ndr_err_code ndr_pull_lsa_Opnum105NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum105NotUsedOnWire *r)
16246 : {
16247 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16248 0 : if (flags & NDR_IN) {
16249 : }
16250 0 : if (flags & NDR_OUT) {
16251 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16252 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16253 : }
16254 0 : return NDR_ERR_SUCCESS;
16255 : }
16256 :
16257 0 : _PUBLIC_ void ndr_print_lsa_Opnum105NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum105NotUsedOnWire *r)
16258 : {
16259 0 : ndr_print_struct(ndr, name, "lsa_Opnum105NotUsedOnWire");
16260 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16261 0 : ndr->depth++;
16262 0 : if (flags & NDR_SET_VALUES) {
16263 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16264 : }
16265 0 : if (flags & NDR_IN) {
16266 0 : ndr_print_struct(ndr, "in", "lsa_Opnum105NotUsedOnWire");
16267 0 : ndr->depth++;
16268 0 : ndr->depth--;
16269 : }
16270 0 : if (flags & NDR_OUT) {
16271 0 : ndr_print_struct(ndr, "out", "lsa_Opnum105NotUsedOnWire");
16272 0 : ndr->depth++;
16273 0 : ndr->depth--;
16274 : }
16275 0 : ndr->depth--;
16276 : }
16277 :
16278 0 : static enum ndr_err_code ndr_push_lsa_Opnum106NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum106NotUsedOnWire *r)
16279 : {
16280 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16281 0 : if (flags & NDR_IN) {
16282 : }
16283 0 : if (flags & NDR_OUT) {
16284 : }
16285 0 : return NDR_ERR_SUCCESS;
16286 : }
16287 :
16288 0 : static enum ndr_err_code ndr_pull_lsa_Opnum106NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum106NotUsedOnWire *r)
16289 : {
16290 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16291 0 : if (flags & NDR_IN) {
16292 : }
16293 0 : if (flags & NDR_OUT) {
16294 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16295 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16296 : }
16297 0 : return NDR_ERR_SUCCESS;
16298 : }
16299 :
16300 0 : _PUBLIC_ void ndr_print_lsa_Opnum106NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum106NotUsedOnWire *r)
16301 : {
16302 0 : ndr_print_struct(ndr, name, "lsa_Opnum106NotUsedOnWire");
16303 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16304 0 : ndr->depth++;
16305 0 : if (flags & NDR_SET_VALUES) {
16306 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16307 : }
16308 0 : if (flags & NDR_IN) {
16309 0 : ndr_print_struct(ndr, "in", "lsa_Opnum106NotUsedOnWire");
16310 0 : ndr->depth++;
16311 0 : ndr->depth--;
16312 : }
16313 0 : if (flags & NDR_OUT) {
16314 0 : ndr_print_struct(ndr, "out", "lsa_Opnum106NotUsedOnWire");
16315 0 : ndr->depth++;
16316 0 : ndr->depth--;
16317 : }
16318 0 : ndr->depth--;
16319 : }
16320 :
16321 0 : static enum ndr_err_code ndr_push_lsa_Opnum107NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum107NotUsedOnWire *r)
16322 : {
16323 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16324 0 : if (flags & NDR_IN) {
16325 : }
16326 0 : if (flags & NDR_OUT) {
16327 : }
16328 0 : return NDR_ERR_SUCCESS;
16329 : }
16330 :
16331 0 : static enum ndr_err_code ndr_pull_lsa_Opnum107NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum107NotUsedOnWire *r)
16332 : {
16333 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16334 0 : if (flags & NDR_IN) {
16335 : }
16336 0 : if (flags & NDR_OUT) {
16337 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16338 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16339 : }
16340 0 : return NDR_ERR_SUCCESS;
16341 : }
16342 :
16343 0 : _PUBLIC_ void ndr_print_lsa_Opnum107NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum107NotUsedOnWire *r)
16344 : {
16345 0 : ndr_print_struct(ndr, name, "lsa_Opnum107NotUsedOnWire");
16346 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16347 0 : ndr->depth++;
16348 0 : if (flags & NDR_SET_VALUES) {
16349 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16350 : }
16351 0 : if (flags & NDR_IN) {
16352 0 : ndr_print_struct(ndr, "in", "lsa_Opnum107NotUsedOnWire");
16353 0 : ndr->depth++;
16354 0 : ndr->depth--;
16355 : }
16356 0 : if (flags & NDR_OUT) {
16357 0 : ndr_print_struct(ndr, "out", "lsa_Opnum107NotUsedOnWire");
16358 0 : ndr->depth++;
16359 0 : ndr->depth--;
16360 : }
16361 0 : ndr->depth--;
16362 : }
16363 :
16364 0 : static enum ndr_err_code ndr_push_lsa_Opnum108NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum108NotUsedOnWire *r)
16365 : {
16366 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16367 0 : if (flags & NDR_IN) {
16368 : }
16369 0 : if (flags & NDR_OUT) {
16370 : }
16371 0 : return NDR_ERR_SUCCESS;
16372 : }
16373 :
16374 0 : static enum ndr_err_code ndr_pull_lsa_Opnum108NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum108NotUsedOnWire *r)
16375 : {
16376 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16377 0 : if (flags & NDR_IN) {
16378 : }
16379 0 : if (flags & NDR_OUT) {
16380 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16381 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16382 : }
16383 0 : return NDR_ERR_SUCCESS;
16384 : }
16385 :
16386 0 : _PUBLIC_ void ndr_print_lsa_Opnum108NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum108NotUsedOnWire *r)
16387 : {
16388 0 : ndr_print_struct(ndr, name, "lsa_Opnum108NotUsedOnWire");
16389 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16390 0 : ndr->depth++;
16391 0 : if (flags & NDR_SET_VALUES) {
16392 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16393 : }
16394 0 : if (flags & NDR_IN) {
16395 0 : ndr_print_struct(ndr, "in", "lsa_Opnum108NotUsedOnWire");
16396 0 : ndr->depth++;
16397 0 : ndr->depth--;
16398 : }
16399 0 : if (flags & NDR_OUT) {
16400 0 : ndr_print_struct(ndr, "out", "lsa_Opnum108NotUsedOnWire");
16401 0 : ndr->depth++;
16402 0 : ndr->depth--;
16403 : }
16404 0 : ndr->depth--;
16405 : }
16406 :
16407 0 : static enum ndr_err_code ndr_push_lsa_Opnum109NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum109NotUsedOnWire *r)
16408 : {
16409 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16410 0 : if (flags & NDR_IN) {
16411 : }
16412 0 : if (flags & NDR_OUT) {
16413 : }
16414 0 : return NDR_ERR_SUCCESS;
16415 : }
16416 :
16417 0 : static enum ndr_err_code ndr_pull_lsa_Opnum109NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum109NotUsedOnWire *r)
16418 : {
16419 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16420 0 : if (flags & NDR_IN) {
16421 : }
16422 0 : if (flags & NDR_OUT) {
16423 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16424 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16425 : }
16426 0 : return NDR_ERR_SUCCESS;
16427 : }
16428 :
16429 0 : _PUBLIC_ void ndr_print_lsa_Opnum109NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum109NotUsedOnWire *r)
16430 : {
16431 0 : ndr_print_struct(ndr, name, "lsa_Opnum109NotUsedOnWire");
16432 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16433 0 : ndr->depth++;
16434 0 : if (flags & NDR_SET_VALUES) {
16435 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16436 : }
16437 0 : if (flags & NDR_IN) {
16438 0 : ndr_print_struct(ndr, "in", "lsa_Opnum109NotUsedOnWire");
16439 0 : ndr->depth++;
16440 0 : ndr->depth--;
16441 : }
16442 0 : if (flags & NDR_OUT) {
16443 0 : ndr_print_struct(ndr, "out", "lsa_Opnum109NotUsedOnWire");
16444 0 : ndr->depth++;
16445 0 : ndr->depth--;
16446 : }
16447 0 : ndr->depth--;
16448 : }
16449 :
16450 0 : static enum ndr_err_code ndr_push_lsa_Opnum110NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum110NotUsedOnWire *r)
16451 : {
16452 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16453 0 : if (flags & NDR_IN) {
16454 : }
16455 0 : if (flags & NDR_OUT) {
16456 : }
16457 0 : return NDR_ERR_SUCCESS;
16458 : }
16459 :
16460 0 : static enum ndr_err_code ndr_pull_lsa_Opnum110NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum110NotUsedOnWire *r)
16461 : {
16462 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16463 0 : if (flags & NDR_IN) {
16464 : }
16465 0 : if (flags & NDR_OUT) {
16466 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16467 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16468 : }
16469 0 : return NDR_ERR_SUCCESS;
16470 : }
16471 :
16472 0 : _PUBLIC_ void ndr_print_lsa_Opnum110NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum110NotUsedOnWire *r)
16473 : {
16474 0 : ndr_print_struct(ndr, name, "lsa_Opnum110NotUsedOnWire");
16475 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16476 0 : ndr->depth++;
16477 0 : if (flags & NDR_SET_VALUES) {
16478 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16479 : }
16480 0 : if (flags & NDR_IN) {
16481 0 : ndr_print_struct(ndr, "in", "lsa_Opnum110NotUsedOnWire");
16482 0 : ndr->depth++;
16483 0 : ndr->depth--;
16484 : }
16485 0 : if (flags & NDR_OUT) {
16486 0 : ndr_print_struct(ndr, "out", "lsa_Opnum110NotUsedOnWire");
16487 0 : ndr->depth++;
16488 0 : ndr->depth--;
16489 : }
16490 0 : ndr->depth--;
16491 : }
16492 :
16493 0 : static enum ndr_err_code ndr_push_lsa_Opnum111NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum111NotUsedOnWire *r)
16494 : {
16495 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16496 0 : if (flags & NDR_IN) {
16497 : }
16498 0 : if (flags & NDR_OUT) {
16499 : }
16500 0 : return NDR_ERR_SUCCESS;
16501 : }
16502 :
16503 0 : static enum ndr_err_code ndr_pull_lsa_Opnum111NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum111NotUsedOnWire *r)
16504 : {
16505 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16506 0 : if (flags & NDR_IN) {
16507 : }
16508 0 : if (flags & NDR_OUT) {
16509 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16510 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16511 : }
16512 0 : return NDR_ERR_SUCCESS;
16513 : }
16514 :
16515 0 : _PUBLIC_ void ndr_print_lsa_Opnum111NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum111NotUsedOnWire *r)
16516 : {
16517 0 : ndr_print_struct(ndr, name, "lsa_Opnum111NotUsedOnWire");
16518 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16519 0 : ndr->depth++;
16520 0 : if (flags & NDR_SET_VALUES) {
16521 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16522 : }
16523 0 : if (flags & NDR_IN) {
16524 0 : ndr_print_struct(ndr, "in", "lsa_Opnum111NotUsedOnWire");
16525 0 : ndr->depth++;
16526 0 : ndr->depth--;
16527 : }
16528 0 : if (flags & NDR_OUT) {
16529 0 : ndr_print_struct(ndr, "out", "lsa_Opnum111NotUsedOnWire");
16530 0 : ndr->depth++;
16531 0 : ndr->depth--;
16532 : }
16533 0 : ndr->depth--;
16534 : }
16535 :
16536 0 : static enum ndr_err_code ndr_push_lsa_Opnum112NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum112NotUsedOnWire *r)
16537 : {
16538 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16539 0 : if (flags & NDR_IN) {
16540 : }
16541 0 : if (flags & NDR_OUT) {
16542 : }
16543 0 : return NDR_ERR_SUCCESS;
16544 : }
16545 :
16546 0 : static enum ndr_err_code ndr_pull_lsa_Opnum112NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum112NotUsedOnWire *r)
16547 : {
16548 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16549 0 : if (flags & NDR_IN) {
16550 : }
16551 0 : if (flags & NDR_OUT) {
16552 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16553 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16554 : }
16555 0 : return NDR_ERR_SUCCESS;
16556 : }
16557 :
16558 0 : _PUBLIC_ void ndr_print_lsa_Opnum112NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum112NotUsedOnWire *r)
16559 : {
16560 0 : ndr_print_struct(ndr, name, "lsa_Opnum112NotUsedOnWire");
16561 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16562 0 : ndr->depth++;
16563 0 : if (flags & NDR_SET_VALUES) {
16564 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16565 : }
16566 0 : if (flags & NDR_IN) {
16567 0 : ndr_print_struct(ndr, "in", "lsa_Opnum112NotUsedOnWire");
16568 0 : ndr->depth++;
16569 0 : ndr->depth--;
16570 : }
16571 0 : if (flags & NDR_OUT) {
16572 0 : ndr_print_struct(ndr, "out", "lsa_Opnum112NotUsedOnWire");
16573 0 : ndr->depth++;
16574 0 : ndr->depth--;
16575 : }
16576 0 : ndr->depth--;
16577 : }
16578 :
16579 0 : static enum ndr_err_code ndr_push_lsa_Opnum113NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum113NotUsedOnWire *r)
16580 : {
16581 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16582 0 : if (flags & NDR_IN) {
16583 : }
16584 0 : if (flags & NDR_OUT) {
16585 : }
16586 0 : return NDR_ERR_SUCCESS;
16587 : }
16588 :
16589 0 : static enum ndr_err_code ndr_pull_lsa_Opnum113NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum113NotUsedOnWire *r)
16590 : {
16591 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16592 0 : if (flags & NDR_IN) {
16593 : }
16594 0 : if (flags & NDR_OUT) {
16595 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16596 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16597 : }
16598 0 : return NDR_ERR_SUCCESS;
16599 : }
16600 :
16601 0 : _PUBLIC_ void ndr_print_lsa_Opnum113NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum113NotUsedOnWire *r)
16602 : {
16603 0 : ndr_print_struct(ndr, name, "lsa_Opnum113NotUsedOnWire");
16604 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16605 0 : ndr->depth++;
16606 0 : if (flags & NDR_SET_VALUES) {
16607 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16608 : }
16609 0 : if (flags & NDR_IN) {
16610 0 : ndr_print_struct(ndr, "in", "lsa_Opnum113NotUsedOnWire");
16611 0 : ndr->depth++;
16612 0 : ndr->depth--;
16613 : }
16614 0 : if (flags & NDR_OUT) {
16615 0 : ndr_print_struct(ndr, "out", "lsa_Opnum113NotUsedOnWire");
16616 0 : ndr->depth++;
16617 0 : ndr->depth--;
16618 : }
16619 0 : ndr->depth--;
16620 : }
16621 :
16622 0 : static enum ndr_err_code ndr_push_lsa_Opnum114NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum114NotUsedOnWire *r)
16623 : {
16624 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16625 0 : if (flags & NDR_IN) {
16626 : }
16627 0 : if (flags & NDR_OUT) {
16628 : }
16629 0 : return NDR_ERR_SUCCESS;
16630 : }
16631 :
16632 0 : static enum ndr_err_code ndr_pull_lsa_Opnum114NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum114NotUsedOnWire *r)
16633 : {
16634 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16635 0 : if (flags & NDR_IN) {
16636 : }
16637 0 : if (flags & NDR_OUT) {
16638 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16639 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16640 : }
16641 0 : return NDR_ERR_SUCCESS;
16642 : }
16643 :
16644 0 : _PUBLIC_ void ndr_print_lsa_Opnum114NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum114NotUsedOnWire *r)
16645 : {
16646 0 : ndr_print_struct(ndr, name, "lsa_Opnum114NotUsedOnWire");
16647 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16648 0 : ndr->depth++;
16649 0 : if (flags & NDR_SET_VALUES) {
16650 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16651 : }
16652 0 : if (flags & NDR_IN) {
16653 0 : ndr_print_struct(ndr, "in", "lsa_Opnum114NotUsedOnWire");
16654 0 : ndr->depth++;
16655 0 : ndr->depth--;
16656 : }
16657 0 : if (flags & NDR_OUT) {
16658 0 : ndr_print_struct(ndr, "out", "lsa_Opnum114NotUsedOnWire");
16659 0 : ndr->depth++;
16660 0 : ndr->depth--;
16661 : }
16662 0 : ndr->depth--;
16663 : }
16664 :
16665 0 : static enum ndr_err_code ndr_push_lsa_Opnum115NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum115NotUsedOnWire *r)
16666 : {
16667 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16668 0 : if (flags & NDR_IN) {
16669 : }
16670 0 : if (flags & NDR_OUT) {
16671 : }
16672 0 : return NDR_ERR_SUCCESS;
16673 : }
16674 :
16675 0 : static enum ndr_err_code ndr_pull_lsa_Opnum115NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum115NotUsedOnWire *r)
16676 : {
16677 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16678 0 : if (flags & NDR_IN) {
16679 : }
16680 0 : if (flags & NDR_OUT) {
16681 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16682 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16683 : }
16684 0 : return NDR_ERR_SUCCESS;
16685 : }
16686 :
16687 0 : _PUBLIC_ void ndr_print_lsa_Opnum115NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum115NotUsedOnWire *r)
16688 : {
16689 0 : ndr_print_struct(ndr, name, "lsa_Opnum115NotUsedOnWire");
16690 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16691 0 : ndr->depth++;
16692 0 : if (flags & NDR_SET_VALUES) {
16693 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16694 : }
16695 0 : if (flags & NDR_IN) {
16696 0 : ndr_print_struct(ndr, "in", "lsa_Opnum115NotUsedOnWire");
16697 0 : ndr->depth++;
16698 0 : ndr->depth--;
16699 : }
16700 0 : if (flags & NDR_OUT) {
16701 0 : ndr_print_struct(ndr, "out", "lsa_Opnum115NotUsedOnWire");
16702 0 : ndr->depth++;
16703 0 : ndr->depth--;
16704 : }
16705 0 : ndr->depth--;
16706 : }
16707 :
16708 0 : static enum ndr_err_code ndr_push_lsa_Opnum116NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum116NotUsedOnWire *r)
16709 : {
16710 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16711 0 : if (flags & NDR_IN) {
16712 : }
16713 0 : if (flags & NDR_OUT) {
16714 : }
16715 0 : return NDR_ERR_SUCCESS;
16716 : }
16717 :
16718 0 : static enum ndr_err_code ndr_pull_lsa_Opnum116NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum116NotUsedOnWire *r)
16719 : {
16720 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16721 0 : if (flags & NDR_IN) {
16722 : }
16723 0 : if (flags & NDR_OUT) {
16724 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16725 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16726 : }
16727 0 : return NDR_ERR_SUCCESS;
16728 : }
16729 :
16730 0 : _PUBLIC_ void ndr_print_lsa_Opnum116NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum116NotUsedOnWire *r)
16731 : {
16732 0 : ndr_print_struct(ndr, name, "lsa_Opnum116NotUsedOnWire");
16733 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16734 0 : ndr->depth++;
16735 0 : if (flags & NDR_SET_VALUES) {
16736 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16737 : }
16738 0 : if (flags & NDR_IN) {
16739 0 : ndr_print_struct(ndr, "in", "lsa_Opnum116NotUsedOnWire");
16740 0 : ndr->depth++;
16741 0 : ndr->depth--;
16742 : }
16743 0 : if (flags & NDR_OUT) {
16744 0 : ndr_print_struct(ndr, "out", "lsa_Opnum116NotUsedOnWire");
16745 0 : ndr->depth++;
16746 0 : ndr->depth--;
16747 : }
16748 0 : ndr->depth--;
16749 : }
16750 :
16751 0 : static enum ndr_err_code ndr_push_lsa_Opnum117NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum117NotUsedOnWire *r)
16752 : {
16753 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16754 0 : if (flags & NDR_IN) {
16755 : }
16756 0 : if (flags & NDR_OUT) {
16757 : }
16758 0 : return NDR_ERR_SUCCESS;
16759 : }
16760 :
16761 0 : static enum ndr_err_code ndr_pull_lsa_Opnum117NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum117NotUsedOnWire *r)
16762 : {
16763 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16764 0 : if (flags & NDR_IN) {
16765 : }
16766 0 : if (flags & NDR_OUT) {
16767 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16768 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16769 : }
16770 0 : return NDR_ERR_SUCCESS;
16771 : }
16772 :
16773 0 : _PUBLIC_ void ndr_print_lsa_Opnum117NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum117NotUsedOnWire *r)
16774 : {
16775 0 : ndr_print_struct(ndr, name, "lsa_Opnum117NotUsedOnWire");
16776 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16777 0 : ndr->depth++;
16778 0 : if (flags & NDR_SET_VALUES) {
16779 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16780 : }
16781 0 : if (flags & NDR_IN) {
16782 0 : ndr_print_struct(ndr, "in", "lsa_Opnum117NotUsedOnWire");
16783 0 : ndr->depth++;
16784 0 : ndr->depth--;
16785 : }
16786 0 : if (flags & NDR_OUT) {
16787 0 : ndr_print_struct(ndr, "out", "lsa_Opnum117NotUsedOnWire");
16788 0 : ndr->depth++;
16789 0 : ndr->depth--;
16790 : }
16791 0 : ndr->depth--;
16792 : }
16793 :
16794 0 : static enum ndr_err_code ndr_push_lsa_Opnum118NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum118NotUsedOnWire *r)
16795 : {
16796 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16797 0 : if (flags & NDR_IN) {
16798 : }
16799 0 : if (flags & NDR_OUT) {
16800 : }
16801 0 : return NDR_ERR_SUCCESS;
16802 : }
16803 :
16804 0 : static enum ndr_err_code ndr_pull_lsa_Opnum118NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum118NotUsedOnWire *r)
16805 : {
16806 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16807 0 : if (flags & NDR_IN) {
16808 : }
16809 0 : if (flags & NDR_OUT) {
16810 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16811 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16812 : }
16813 0 : return NDR_ERR_SUCCESS;
16814 : }
16815 :
16816 0 : _PUBLIC_ void ndr_print_lsa_Opnum118NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum118NotUsedOnWire *r)
16817 : {
16818 0 : ndr_print_struct(ndr, name, "lsa_Opnum118NotUsedOnWire");
16819 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16820 0 : ndr->depth++;
16821 0 : if (flags & NDR_SET_VALUES) {
16822 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16823 : }
16824 0 : if (flags & NDR_IN) {
16825 0 : ndr_print_struct(ndr, "in", "lsa_Opnum118NotUsedOnWire");
16826 0 : ndr->depth++;
16827 0 : ndr->depth--;
16828 : }
16829 0 : if (flags & NDR_OUT) {
16830 0 : ndr_print_struct(ndr, "out", "lsa_Opnum118NotUsedOnWire");
16831 0 : ndr->depth++;
16832 0 : ndr->depth--;
16833 : }
16834 0 : ndr->depth--;
16835 : }
16836 :
16837 0 : static enum ndr_err_code ndr_push_lsa_Opnum119NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum119NotUsedOnWire *r)
16838 : {
16839 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16840 0 : if (flags & NDR_IN) {
16841 : }
16842 0 : if (flags & NDR_OUT) {
16843 : }
16844 0 : return NDR_ERR_SUCCESS;
16845 : }
16846 :
16847 0 : static enum ndr_err_code ndr_pull_lsa_Opnum119NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum119NotUsedOnWire *r)
16848 : {
16849 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16850 0 : if (flags & NDR_IN) {
16851 : }
16852 0 : if (flags & NDR_OUT) {
16853 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16854 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16855 : }
16856 0 : return NDR_ERR_SUCCESS;
16857 : }
16858 :
16859 0 : _PUBLIC_ void ndr_print_lsa_Opnum119NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum119NotUsedOnWire *r)
16860 : {
16861 0 : ndr_print_struct(ndr, name, "lsa_Opnum119NotUsedOnWire");
16862 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16863 0 : ndr->depth++;
16864 0 : if (flags & NDR_SET_VALUES) {
16865 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16866 : }
16867 0 : if (flags & NDR_IN) {
16868 0 : ndr_print_struct(ndr, "in", "lsa_Opnum119NotUsedOnWire");
16869 0 : ndr->depth++;
16870 0 : ndr->depth--;
16871 : }
16872 0 : if (flags & NDR_OUT) {
16873 0 : ndr_print_struct(ndr, "out", "lsa_Opnum119NotUsedOnWire");
16874 0 : ndr->depth++;
16875 0 : ndr->depth--;
16876 : }
16877 0 : ndr->depth--;
16878 : }
16879 :
16880 0 : static enum ndr_err_code ndr_push_lsa_Opnum120NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum120NotUsedOnWire *r)
16881 : {
16882 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16883 0 : if (flags & NDR_IN) {
16884 : }
16885 0 : if (flags & NDR_OUT) {
16886 : }
16887 0 : return NDR_ERR_SUCCESS;
16888 : }
16889 :
16890 0 : static enum ndr_err_code ndr_pull_lsa_Opnum120NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum120NotUsedOnWire *r)
16891 : {
16892 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16893 0 : if (flags & NDR_IN) {
16894 : }
16895 0 : if (flags & NDR_OUT) {
16896 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16897 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16898 : }
16899 0 : return NDR_ERR_SUCCESS;
16900 : }
16901 :
16902 0 : _PUBLIC_ void ndr_print_lsa_Opnum120NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum120NotUsedOnWire *r)
16903 : {
16904 0 : ndr_print_struct(ndr, name, "lsa_Opnum120NotUsedOnWire");
16905 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16906 0 : ndr->depth++;
16907 0 : if (flags & NDR_SET_VALUES) {
16908 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16909 : }
16910 0 : if (flags & NDR_IN) {
16911 0 : ndr_print_struct(ndr, "in", "lsa_Opnum120NotUsedOnWire");
16912 0 : ndr->depth++;
16913 0 : ndr->depth--;
16914 : }
16915 0 : if (flags & NDR_OUT) {
16916 0 : ndr_print_struct(ndr, "out", "lsa_Opnum120NotUsedOnWire");
16917 0 : ndr->depth++;
16918 0 : ndr->depth--;
16919 : }
16920 0 : ndr->depth--;
16921 : }
16922 :
16923 0 : static enum ndr_err_code ndr_push_lsa_Opnum121NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum121NotUsedOnWire *r)
16924 : {
16925 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16926 0 : if (flags & NDR_IN) {
16927 : }
16928 0 : if (flags & NDR_OUT) {
16929 : }
16930 0 : return NDR_ERR_SUCCESS;
16931 : }
16932 :
16933 0 : static enum ndr_err_code ndr_pull_lsa_Opnum121NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum121NotUsedOnWire *r)
16934 : {
16935 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16936 0 : if (flags & NDR_IN) {
16937 : }
16938 0 : if (flags & NDR_OUT) {
16939 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16940 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16941 : }
16942 0 : return NDR_ERR_SUCCESS;
16943 : }
16944 :
16945 0 : _PUBLIC_ void ndr_print_lsa_Opnum121NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum121NotUsedOnWire *r)
16946 : {
16947 0 : ndr_print_struct(ndr, name, "lsa_Opnum121NotUsedOnWire");
16948 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16949 0 : ndr->depth++;
16950 0 : if (flags & NDR_SET_VALUES) {
16951 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16952 : }
16953 0 : if (flags & NDR_IN) {
16954 0 : ndr_print_struct(ndr, "in", "lsa_Opnum121NotUsedOnWire");
16955 0 : ndr->depth++;
16956 0 : ndr->depth--;
16957 : }
16958 0 : if (flags & NDR_OUT) {
16959 0 : ndr_print_struct(ndr, "out", "lsa_Opnum121NotUsedOnWire");
16960 0 : ndr->depth++;
16961 0 : ndr->depth--;
16962 : }
16963 0 : ndr->depth--;
16964 : }
16965 :
16966 0 : static enum ndr_err_code ndr_push_lsa_Opnum122NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum122NotUsedOnWire *r)
16967 : {
16968 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
16969 0 : if (flags & NDR_IN) {
16970 : }
16971 0 : if (flags & NDR_OUT) {
16972 : }
16973 0 : return NDR_ERR_SUCCESS;
16974 : }
16975 :
16976 0 : static enum ndr_err_code ndr_pull_lsa_Opnum122NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum122NotUsedOnWire *r)
16977 : {
16978 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
16979 0 : if (flags & NDR_IN) {
16980 : }
16981 0 : if (flags & NDR_OUT) {
16982 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
16983 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
16984 : }
16985 0 : return NDR_ERR_SUCCESS;
16986 : }
16987 :
16988 0 : _PUBLIC_ void ndr_print_lsa_Opnum122NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum122NotUsedOnWire *r)
16989 : {
16990 0 : ndr_print_struct(ndr, name, "lsa_Opnum122NotUsedOnWire");
16991 0 : if (r == NULL) { ndr_print_null(ndr); return; }
16992 0 : ndr->depth++;
16993 0 : if (flags & NDR_SET_VALUES) {
16994 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
16995 : }
16996 0 : if (flags & NDR_IN) {
16997 0 : ndr_print_struct(ndr, "in", "lsa_Opnum122NotUsedOnWire");
16998 0 : ndr->depth++;
16999 0 : ndr->depth--;
17000 : }
17001 0 : if (flags & NDR_OUT) {
17002 0 : ndr_print_struct(ndr, "out", "lsa_Opnum122NotUsedOnWire");
17003 0 : ndr->depth++;
17004 0 : ndr->depth--;
17005 : }
17006 0 : ndr->depth--;
17007 : }
17008 :
17009 0 : static enum ndr_err_code ndr_push_lsa_Opnum123NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum123NotUsedOnWire *r)
17010 : {
17011 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17012 0 : if (flags & NDR_IN) {
17013 : }
17014 0 : if (flags & NDR_OUT) {
17015 : }
17016 0 : return NDR_ERR_SUCCESS;
17017 : }
17018 :
17019 0 : static enum ndr_err_code ndr_pull_lsa_Opnum123NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum123NotUsedOnWire *r)
17020 : {
17021 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17022 0 : if (flags & NDR_IN) {
17023 : }
17024 0 : if (flags & NDR_OUT) {
17025 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17026 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17027 : }
17028 0 : return NDR_ERR_SUCCESS;
17029 : }
17030 :
17031 0 : _PUBLIC_ void ndr_print_lsa_Opnum123NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum123NotUsedOnWire *r)
17032 : {
17033 0 : ndr_print_struct(ndr, name, "lsa_Opnum123NotUsedOnWire");
17034 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17035 0 : ndr->depth++;
17036 0 : if (flags & NDR_SET_VALUES) {
17037 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17038 : }
17039 0 : if (flags & NDR_IN) {
17040 0 : ndr_print_struct(ndr, "in", "lsa_Opnum123NotUsedOnWire");
17041 0 : ndr->depth++;
17042 0 : ndr->depth--;
17043 : }
17044 0 : if (flags & NDR_OUT) {
17045 0 : ndr_print_struct(ndr, "out", "lsa_Opnum123NotUsedOnWire");
17046 0 : ndr->depth++;
17047 0 : ndr->depth--;
17048 : }
17049 0 : ndr->depth--;
17050 : }
17051 :
17052 0 : static enum ndr_err_code ndr_push_lsa_Opnum124NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum124NotUsedOnWire *r)
17053 : {
17054 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17055 0 : if (flags & NDR_IN) {
17056 : }
17057 0 : if (flags & NDR_OUT) {
17058 : }
17059 0 : return NDR_ERR_SUCCESS;
17060 : }
17061 :
17062 0 : static enum ndr_err_code ndr_pull_lsa_Opnum124NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum124NotUsedOnWire *r)
17063 : {
17064 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17065 0 : if (flags & NDR_IN) {
17066 : }
17067 0 : if (flags & NDR_OUT) {
17068 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17069 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17070 : }
17071 0 : return NDR_ERR_SUCCESS;
17072 : }
17073 :
17074 0 : _PUBLIC_ void ndr_print_lsa_Opnum124NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum124NotUsedOnWire *r)
17075 : {
17076 0 : ndr_print_struct(ndr, name, "lsa_Opnum124NotUsedOnWire");
17077 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17078 0 : ndr->depth++;
17079 0 : if (flags & NDR_SET_VALUES) {
17080 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17081 : }
17082 0 : if (flags & NDR_IN) {
17083 0 : ndr_print_struct(ndr, "in", "lsa_Opnum124NotUsedOnWire");
17084 0 : ndr->depth++;
17085 0 : ndr->depth--;
17086 : }
17087 0 : if (flags & NDR_OUT) {
17088 0 : ndr_print_struct(ndr, "out", "lsa_Opnum124NotUsedOnWire");
17089 0 : ndr->depth++;
17090 0 : ndr->depth--;
17091 : }
17092 0 : ndr->depth--;
17093 : }
17094 :
17095 0 : static enum ndr_err_code ndr_push_lsa_Opnum125NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum125NotUsedOnWire *r)
17096 : {
17097 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17098 0 : if (flags & NDR_IN) {
17099 : }
17100 0 : if (flags & NDR_OUT) {
17101 : }
17102 0 : return NDR_ERR_SUCCESS;
17103 : }
17104 :
17105 0 : static enum ndr_err_code ndr_pull_lsa_Opnum125NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum125NotUsedOnWire *r)
17106 : {
17107 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17108 0 : if (flags & NDR_IN) {
17109 : }
17110 0 : if (flags & NDR_OUT) {
17111 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17112 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17113 : }
17114 0 : return NDR_ERR_SUCCESS;
17115 : }
17116 :
17117 0 : _PUBLIC_ void ndr_print_lsa_Opnum125NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum125NotUsedOnWire *r)
17118 : {
17119 0 : ndr_print_struct(ndr, name, "lsa_Opnum125NotUsedOnWire");
17120 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17121 0 : ndr->depth++;
17122 0 : if (flags & NDR_SET_VALUES) {
17123 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17124 : }
17125 0 : if (flags & NDR_IN) {
17126 0 : ndr_print_struct(ndr, "in", "lsa_Opnum125NotUsedOnWire");
17127 0 : ndr->depth++;
17128 0 : ndr->depth--;
17129 : }
17130 0 : if (flags & NDR_OUT) {
17131 0 : ndr_print_struct(ndr, "out", "lsa_Opnum125NotUsedOnWire");
17132 0 : ndr->depth++;
17133 0 : ndr->depth--;
17134 : }
17135 0 : ndr->depth--;
17136 : }
17137 :
17138 0 : static enum ndr_err_code ndr_push_lsa_Opnum126NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum126NotUsedOnWire *r)
17139 : {
17140 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17141 0 : if (flags & NDR_IN) {
17142 : }
17143 0 : if (flags & NDR_OUT) {
17144 : }
17145 0 : return NDR_ERR_SUCCESS;
17146 : }
17147 :
17148 0 : static enum ndr_err_code ndr_pull_lsa_Opnum126NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum126NotUsedOnWire *r)
17149 : {
17150 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17151 0 : if (flags & NDR_IN) {
17152 : }
17153 0 : if (flags & NDR_OUT) {
17154 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17155 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17156 : }
17157 0 : return NDR_ERR_SUCCESS;
17158 : }
17159 :
17160 0 : _PUBLIC_ void ndr_print_lsa_Opnum126NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum126NotUsedOnWire *r)
17161 : {
17162 0 : ndr_print_struct(ndr, name, "lsa_Opnum126NotUsedOnWire");
17163 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17164 0 : ndr->depth++;
17165 0 : if (flags & NDR_SET_VALUES) {
17166 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17167 : }
17168 0 : if (flags & NDR_IN) {
17169 0 : ndr_print_struct(ndr, "in", "lsa_Opnum126NotUsedOnWire");
17170 0 : ndr->depth++;
17171 0 : ndr->depth--;
17172 : }
17173 0 : if (flags & NDR_OUT) {
17174 0 : ndr_print_struct(ndr, "out", "lsa_Opnum126NotUsedOnWire");
17175 0 : ndr->depth++;
17176 0 : ndr->depth--;
17177 : }
17178 0 : ndr->depth--;
17179 : }
17180 :
17181 0 : static enum ndr_err_code ndr_push_lsa_Opnum127NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum127NotUsedOnWire *r)
17182 : {
17183 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17184 0 : if (flags & NDR_IN) {
17185 : }
17186 0 : if (flags & NDR_OUT) {
17187 : }
17188 0 : return NDR_ERR_SUCCESS;
17189 : }
17190 :
17191 0 : static enum ndr_err_code ndr_pull_lsa_Opnum127NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum127NotUsedOnWire *r)
17192 : {
17193 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17194 0 : if (flags & NDR_IN) {
17195 : }
17196 0 : if (flags & NDR_OUT) {
17197 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17198 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17199 : }
17200 0 : return NDR_ERR_SUCCESS;
17201 : }
17202 :
17203 0 : _PUBLIC_ void ndr_print_lsa_Opnum127NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum127NotUsedOnWire *r)
17204 : {
17205 0 : ndr_print_struct(ndr, name, "lsa_Opnum127NotUsedOnWire");
17206 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17207 0 : ndr->depth++;
17208 0 : if (flags & NDR_SET_VALUES) {
17209 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17210 : }
17211 0 : if (flags & NDR_IN) {
17212 0 : ndr_print_struct(ndr, "in", "lsa_Opnum127NotUsedOnWire");
17213 0 : ndr->depth++;
17214 0 : ndr->depth--;
17215 : }
17216 0 : if (flags & NDR_OUT) {
17217 0 : ndr_print_struct(ndr, "out", "lsa_Opnum127NotUsedOnWire");
17218 0 : ndr->depth++;
17219 0 : ndr->depth--;
17220 : }
17221 0 : ndr->depth--;
17222 : }
17223 :
17224 0 : static enum ndr_err_code ndr_push_lsa_Opnum128NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum128NotUsedOnWire *r)
17225 : {
17226 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17227 0 : if (flags & NDR_IN) {
17228 : }
17229 0 : if (flags & NDR_OUT) {
17230 : }
17231 0 : return NDR_ERR_SUCCESS;
17232 : }
17233 :
17234 0 : static enum ndr_err_code ndr_pull_lsa_Opnum128NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum128NotUsedOnWire *r)
17235 : {
17236 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17237 0 : if (flags & NDR_IN) {
17238 : }
17239 0 : if (flags & NDR_OUT) {
17240 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17241 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17242 : }
17243 0 : return NDR_ERR_SUCCESS;
17244 : }
17245 :
17246 0 : _PUBLIC_ void ndr_print_lsa_Opnum128NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum128NotUsedOnWire *r)
17247 : {
17248 0 : ndr_print_struct(ndr, name, "lsa_Opnum128NotUsedOnWire");
17249 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17250 0 : ndr->depth++;
17251 0 : if (flags & NDR_SET_VALUES) {
17252 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17253 : }
17254 0 : if (flags & NDR_IN) {
17255 0 : ndr_print_struct(ndr, "in", "lsa_Opnum128NotUsedOnWire");
17256 0 : ndr->depth++;
17257 0 : ndr->depth--;
17258 : }
17259 0 : if (flags & NDR_OUT) {
17260 0 : ndr_print_struct(ndr, "out", "lsa_Opnum128NotUsedOnWire");
17261 0 : ndr->depth++;
17262 0 : ndr->depth--;
17263 : }
17264 0 : ndr->depth--;
17265 : }
17266 :
17267 154 : static enum ndr_err_code ndr_push_lsa_CreateTrustedDomainEx3(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_CreateTrustedDomainEx3 *r)
17268 : {
17269 154 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17270 154 : if (flags & NDR_IN) {
17271 71 : if (r->in.policy_handle == NULL) {
17272 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17273 : }
17274 71 : if (r->in.info == NULL) {
17275 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17276 : }
17277 71 : if (r->in.auth_info_internal == NULL) {
17278 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17279 : }
17280 71 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.policy_handle));
17281 71 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
17282 71 : NDR_CHECK(ndr_push_lsa_TrustDomainInfoAuthInfoInternalAES(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.auth_info_internal));
17283 71 : NDR_CHECK(ndr_push_lsa_TrustedAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
17284 : }
17285 154 : if (flags & NDR_OUT) {
17286 83 : if (r->out.trustdom_handle == NULL) {
17287 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17288 : }
17289 83 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.trustdom_handle));
17290 83 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
17291 : }
17292 154 : return NDR_ERR_SUCCESS;
17293 : }
17294 :
17295 142 : static enum ndr_err_code ndr_pull_lsa_CreateTrustedDomainEx3(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_CreateTrustedDomainEx3 *r)
17296 : {
17297 142 : TALLOC_CTX *_mem_save_policy_handle_0 = NULL;
17298 142 : TALLOC_CTX *_mem_save_info_0 = NULL;
17299 142 : TALLOC_CTX *_mem_save_auth_info_internal_0 = NULL;
17300 142 : TALLOC_CTX *_mem_save_trustdom_handle_0 = NULL;
17301 142 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17302 142 : if (flags & NDR_IN) {
17303 71 : NDR_ZERO_STRUCT(r->out);
17304 :
17305 71 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17306 71 : NDR_PULL_ALLOC(ndr, r->in.policy_handle);
17307 : }
17308 71 : _mem_save_policy_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
17309 71 : NDR_PULL_SET_MEM_CTX(ndr, r->in.policy_handle, LIBNDR_FLAG_REF_ALLOC);
17310 71 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.policy_handle));
17311 71 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_policy_handle_0, LIBNDR_FLAG_REF_ALLOC);
17312 71 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17313 71 : NDR_PULL_ALLOC(ndr, r->in.info);
17314 : }
17315 71 : _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
17316 71 : NDR_PULL_SET_MEM_CTX(ndr, r->in.info, LIBNDR_FLAG_REF_ALLOC);
17317 71 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoInfoEx(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
17318 71 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
17319 71 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17320 71 : NDR_PULL_ALLOC(ndr, r->in.auth_info_internal);
17321 : }
17322 71 : _mem_save_auth_info_internal_0 = NDR_PULL_GET_MEM_CTX(ndr);
17323 71 : NDR_PULL_SET_MEM_CTX(ndr, r->in.auth_info_internal, LIBNDR_FLAG_REF_ALLOC);
17324 71 : NDR_CHECK(ndr_pull_lsa_TrustDomainInfoAuthInfoInternalAES(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.auth_info_internal));
17325 71 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_auth_info_internal_0, LIBNDR_FLAG_REF_ALLOC);
17326 71 : NDR_CHECK(ndr_pull_lsa_TrustedAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
17327 71 : NDR_PULL_ALLOC(ndr, r->out.trustdom_handle);
17328 71 : NDR_ZERO_STRUCTP(r->out.trustdom_handle);
17329 : }
17330 142 : if (flags & NDR_OUT) {
17331 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17332 : if (r->in.policy_handle == NULL) {
17333 : NDR_PULL_ALLOC(ndr, r->in.policy_handle);
17334 : NDR_ZERO_STRUCTP(r->in.policy_handle);
17335 : }
17336 : if (r->in.info == NULL) {
17337 : NDR_PULL_ALLOC(ndr, r->in.info);
17338 : NDR_ZERO_STRUCTP(r->in.info);
17339 : }
17340 : if (r->in.auth_info_internal == NULL) {
17341 : NDR_PULL_ALLOC(ndr, r->in.auth_info_internal);
17342 : NDR_ZERO_STRUCTP(r->in.auth_info_internal);
17343 : }
17344 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17345 71 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17346 35 : NDR_PULL_ALLOC(ndr, r->out.trustdom_handle);
17347 : }
17348 71 : _mem_save_trustdom_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
17349 71 : NDR_PULL_SET_MEM_CTX(ndr, r->out.trustdom_handle, LIBNDR_FLAG_REF_ALLOC);
17350 71 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.trustdom_handle));
17351 71 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trustdom_handle_0, LIBNDR_FLAG_REF_ALLOC);
17352 71 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
17353 : }
17354 142 : return NDR_ERR_SUCCESS;
17355 : }
17356 :
17357 24 : _PUBLIC_ void ndr_print_lsa_CreateTrustedDomainEx3(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_CreateTrustedDomainEx3 *r)
17358 : {
17359 24 : ndr_print_struct(ndr, name, "lsa_CreateTrustedDomainEx3");
17360 24 : if (r == NULL) { ndr_print_null(ndr); return; }
17361 24 : ndr->depth++;
17362 24 : if (flags & NDR_SET_VALUES) {
17363 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17364 : }
17365 24 : if (flags & NDR_IN) {
17366 0 : ndr_print_struct(ndr, "in", "lsa_CreateTrustedDomainEx3");
17367 0 : ndr->depth++;
17368 0 : ndr_print_ptr(ndr, "policy_handle", r->in.policy_handle);
17369 0 : ndr->depth++;
17370 0 : ndr_print_policy_handle(ndr, "policy_handle", r->in.policy_handle);
17371 0 : ndr->depth--;
17372 0 : ndr_print_ptr(ndr, "info", r->in.info);
17373 0 : ndr->depth++;
17374 0 : ndr_print_lsa_TrustDomainInfoInfoEx(ndr, "info", r->in.info);
17375 0 : ndr->depth--;
17376 0 : ndr_print_ptr(ndr, "auth_info_internal", r->in.auth_info_internal);
17377 0 : ndr->depth++;
17378 0 : ndr_print_lsa_TrustDomainInfoAuthInfoInternalAES(ndr, "auth_info_internal", r->in.auth_info_internal);
17379 0 : ndr->depth--;
17380 0 : ndr_print_lsa_TrustedAccessMask(ndr, "access_mask", r->in.access_mask);
17381 0 : ndr->depth--;
17382 : }
17383 24 : if (flags & NDR_OUT) {
17384 24 : ndr_print_struct(ndr, "out", "lsa_CreateTrustedDomainEx3");
17385 24 : ndr->depth++;
17386 24 : ndr_print_ptr(ndr, "trustdom_handle", r->out.trustdom_handle);
17387 24 : ndr->depth++;
17388 24 : ndr_print_policy_handle(ndr, "trustdom_handle", r->out.trustdom_handle);
17389 24 : ndr->depth--;
17390 24 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
17391 24 : ndr->depth--;
17392 : }
17393 24 : ndr->depth--;
17394 : }
17395 :
17396 704 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_OpenPolicy3(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_OpenPolicy3 *r)
17397 : {
17398 704 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17399 704 : if (flags & NDR_IN) {
17400 326 : if (r->in.attr == NULL) {
17401 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17402 : }
17403 326 : if (r->in.in_revision_info == NULL) {
17404 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17405 : }
17406 326 : NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.system_name));
17407 326 : if (r->in.system_name) {
17408 326 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.system_name, CH_UTF16)));
17409 326 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
17410 326 : NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.system_name, CH_UTF16)));
17411 326 : NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.system_name, ndr_charset_length(r->in.system_name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
17412 : }
17413 326 : NDR_CHECK(ndr_push_lsa_ObjectAttribute(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.attr));
17414 326 : NDR_CHECK(ndr_push_lsa_PolicyAccessMask(ndr, NDR_SCALARS, r->in.access_mask));
17415 326 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.in_version));
17416 326 : NDR_CHECK(ndr_push_set_switch_value(ndr, r->in.in_revision_info, r->in.in_version));
17417 326 : NDR_CHECK(ndr_push_lsa_revision_info(ndr, NDR_SCALARS, r->in.in_revision_info));
17418 : }
17419 704 : if (flags & NDR_OUT) {
17420 378 : if (r->out.out_version == NULL) {
17421 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17422 : }
17423 378 : if (r->out.out_revision_info == NULL) {
17424 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17425 : }
17426 378 : if (r->out.handle == NULL) {
17427 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17428 : }
17429 378 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.out_version));
17430 378 : NDR_CHECK(ndr_push_set_switch_value(ndr, r->out.out_revision_info, *r->out.out_version));
17431 378 : NDR_CHECK(ndr_push_lsa_revision_info(ndr, NDR_SCALARS, r->out.out_revision_info));
17432 378 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.handle));
17433 378 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
17434 : }
17435 700 : return NDR_ERR_SUCCESS;
17436 : }
17437 :
17438 691 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_OpenPolicy3(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_OpenPolicy3 *r)
17439 : {
17440 4 : uint32_t _ptr_system_name;
17441 691 : uint32_t size_system_name_1 = 0;
17442 691 : uint32_t length_system_name_1 = 0;
17443 691 : TALLOC_CTX *_mem_save_system_name_0 = NULL;
17444 691 : TALLOC_CTX *_mem_save_attr_0 = NULL;
17445 691 : TALLOC_CTX *_mem_save_in_revision_info_0 = NULL;
17446 691 : TALLOC_CTX *_mem_save_out_version_0 = NULL;
17447 691 : TALLOC_CTX *_mem_save_out_revision_info_0 = NULL;
17448 691 : TALLOC_CTX *_mem_save_handle_0 = NULL;
17449 691 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17450 691 : if (flags & NDR_IN) {
17451 371 : NDR_ZERO_STRUCT(r->out);
17452 :
17453 371 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_system_name));
17454 371 : if (_ptr_system_name) {
17455 371 : NDR_PULL_ALLOC(ndr, r->in.system_name);
17456 : } else {
17457 0 : r->in.system_name = NULL;
17458 : }
17459 371 : if (r->in.system_name) {
17460 371 : _mem_save_system_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
17461 371 : NDR_PULL_SET_MEM_CTX(ndr, r->in.system_name, 0);
17462 371 : NDR_CHECK(ndr_pull_array_size(ndr, &r->in.system_name));
17463 371 : NDR_CHECK(ndr_pull_array_length(ndr, &r->in.system_name));
17464 371 : NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.system_name, &size_system_name_1));
17465 371 : NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.system_name, &length_system_name_1));
17466 371 : if (length_system_name_1 > size_system_name_1) {
17467 0 : return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_system_name_1, length_system_name_1);
17468 : }
17469 371 : NDR_CHECK(ndr_check_string_terminator(ndr, length_system_name_1, sizeof(uint16_t)));
17470 371 : NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.system_name, length_system_name_1, sizeof(uint16_t), CH_UTF16));
17471 371 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_system_name_0, 0);
17472 : }
17473 371 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17474 371 : NDR_PULL_ALLOC(ndr, r->in.attr);
17475 : }
17476 371 : _mem_save_attr_0 = NDR_PULL_GET_MEM_CTX(ndr);
17477 371 : NDR_PULL_SET_MEM_CTX(ndr, r->in.attr, LIBNDR_FLAG_REF_ALLOC);
17478 371 : NDR_CHECK(ndr_pull_lsa_ObjectAttribute(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.attr));
17479 371 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_attr_0, LIBNDR_FLAG_REF_ALLOC);
17480 371 : NDR_CHECK(ndr_pull_lsa_PolicyAccessMask(ndr, NDR_SCALARS, &r->in.access_mask));
17481 371 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.in_version));
17482 371 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17483 371 : NDR_PULL_ALLOC(ndr, r->in.in_revision_info);
17484 : }
17485 371 : _mem_save_in_revision_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
17486 371 : NDR_PULL_SET_MEM_CTX(ndr, r->in.in_revision_info, LIBNDR_FLAG_REF_ALLOC);
17487 371 : NDR_CHECK(ndr_pull_set_switch_value(ndr, r->in.in_revision_info, r->in.in_version));
17488 371 : NDR_CHECK(ndr_pull_lsa_revision_info(ndr, NDR_SCALARS, r->in.in_revision_info));
17489 371 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_in_revision_info_0, LIBNDR_FLAG_REF_ALLOC);
17490 371 : NDR_PULL_ALLOC(ndr, r->out.out_version);
17491 371 : NDR_ZERO_STRUCTP(r->out.out_version);
17492 371 : NDR_PULL_ALLOC(ndr, r->out.out_revision_info);
17493 371 : NDR_ZERO_STRUCTP(r->out.out_revision_info);
17494 371 : NDR_PULL_ALLOC(ndr, r->out.handle);
17495 371 : NDR_ZERO_STRUCTP(r->out.handle);
17496 : }
17497 691 : if (flags & NDR_OUT) {
17498 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17499 : if (r->in.attr == NULL) {
17500 : NDR_PULL_ALLOC(ndr, r->in.attr);
17501 : NDR_ZERO_STRUCTP(r->in.attr);
17502 : }
17503 : if (r->in.in_revision_info == NULL) {
17504 : NDR_PULL_ALLOC(ndr, r->in.in_revision_info);
17505 : NDR_ZERO_STRUCTP(r->in.in_revision_info);
17506 : }
17507 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17508 320 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17509 285 : NDR_PULL_ALLOC(ndr, r->out.out_version);
17510 : }
17511 320 : _mem_save_out_version_0 = NDR_PULL_GET_MEM_CTX(ndr);
17512 320 : NDR_PULL_SET_MEM_CTX(ndr, r->out.out_version, LIBNDR_FLAG_REF_ALLOC);
17513 320 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.out_version));
17514 320 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_out_version_0, LIBNDR_FLAG_REF_ALLOC);
17515 320 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17516 285 : NDR_PULL_ALLOC(ndr, r->out.out_revision_info);
17517 : }
17518 320 : _mem_save_out_revision_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
17519 320 : NDR_PULL_SET_MEM_CTX(ndr, r->out.out_revision_info, LIBNDR_FLAG_REF_ALLOC);
17520 320 : NDR_CHECK(ndr_pull_set_switch_value(ndr, r->out.out_revision_info, *r->out.out_version));
17521 320 : NDR_CHECK(ndr_pull_lsa_revision_info(ndr, NDR_SCALARS, r->out.out_revision_info));
17522 320 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_out_revision_info_0, LIBNDR_FLAG_REF_ALLOC);
17523 320 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17524 285 : NDR_PULL_ALLOC(ndr, r->out.handle);
17525 : }
17526 320 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
17527 320 : NDR_PULL_SET_MEM_CTX(ndr, r->out.handle, LIBNDR_FLAG_REF_ALLOC);
17528 320 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.handle));
17529 320 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
17530 320 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
17531 : }
17532 687 : return NDR_ERR_SUCCESS;
17533 : }
17534 :
17535 22 : _PUBLIC_ void ndr_print_lsa_OpenPolicy3(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_OpenPolicy3 *r)
17536 : {
17537 22 : ndr_print_struct(ndr, name, "lsa_OpenPolicy3");
17538 22 : if (r == NULL) { ndr_print_null(ndr); return; }
17539 22 : ndr->depth++;
17540 22 : if (flags & NDR_SET_VALUES) {
17541 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17542 : }
17543 22 : if (flags & NDR_IN) {
17544 0 : ndr_print_struct(ndr, "in", "lsa_OpenPolicy3");
17545 0 : ndr->depth++;
17546 0 : ndr_print_ptr(ndr, "system_name", r->in.system_name);
17547 0 : ndr->depth++;
17548 0 : if (r->in.system_name) {
17549 0 : ndr_print_string(ndr, "system_name", r->in.system_name);
17550 : }
17551 0 : ndr->depth--;
17552 0 : ndr_print_ptr(ndr, "attr", r->in.attr);
17553 0 : ndr->depth++;
17554 0 : ndr_print_lsa_ObjectAttribute(ndr, "attr", r->in.attr);
17555 0 : ndr->depth--;
17556 0 : ndr_print_lsa_PolicyAccessMask(ndr, "access_mask", r->in.access_mask);
17557 0 : ndr_print_uint32(ndr, "in_version", r->in.in_version);
17558 0 : ndr_print_ptr(ndr, "in_revision_info", r->in.in_revision_info);
17559 0 : ndr->depth++;
17560 0 : ndr_print_set_switch_value(ndr, r->in.in_revision_info, r->in.in_version);
17561 0 : ndr_print_lsa_revision_info(ndr, "in_revision_info", r->in.in_revision_info);
17562 0 : ndr->depth--;
17563 0 : ndr->depth--;
17564 : }
17565 22 : if (flags & NDR_OUT) {
17566 22 : ndr_print_struct(ndr, "out", "lsa_OpenPolicy3");
17567 22 : ndr->depth++;
17568 22 : ndr_print_ptr(ndr, "out_version", r->out.out_version);
17569 22 : ndr->depth++;
17570 22 : ndr_print_uint32(ndr, "out_version", *r->out.out_version);
17571 22 : ndr->depth--;
17572 22 : ndr_print_ptr(ndr, "out_revision_info", r->out.out_revision_info);
17573 22 : ndr->depth++;
17574 22 : ndr_print_set_switch_value(ndr, r->out.out_revision_info, *r->out.out_version);
17575 22 : ndr_print_lsa_revision_info(ndr, "out_revision_info", r->out.out_revision_info);
17576 22 : ndr->depth--;
17577 22 : ndr_print_ptr(ndr, "handle", r->out.handle);
17578 22 : ndr->depth++;
17579 22 : ndr_print_policy_handle(ndr, "handle", r->out.handle);
17580 22 : ndr->depth--;
17581 22 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
17582 22 : ndr->depth--;
17583 : }
17584 22 : ndr->depth--;
17585 : }
17586 :
17587 0 : static enum ndr_err_code ndr_push_lsa_Opnum131NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_Opnum131NotUsedOnWire *r)
17588 : {
17589 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17590 0 : if (flags & NDR_IN) {
17591 : }
17592 0 : if (flags & NDR_OUT) {
17593 : }
17594 0 : return NDR_ERR_SUCCESS;
17595 : }
17596 :
17597 0 : static enum ndr_err_code ndr_pull_lsa_Opnum131NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_Opnum131NotUsedOnWire *r)
17598 : {
17599 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17600 0 : if (flags & NDR_IN) {
17601 : }
17602 0 : if (flags & NDR_OUT) {
17603 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17604 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17605 : }
17606 0 : return NDR_ERR_SUCCESS;
17607 : }
17608 :
17609 0 : _PUBLIC_ void ndr_print_lsa_Opnum131NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_Opnum131NotUsedOnWire *r)
17610 : {
17611 0 : ndr_print_struct(ndr, name, "lsa_Opnum131NotUsedOnWire");
17612 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17613 0 : ndr->depth++;
17614 0 : if (flags & NDR_SET_VALUES) {
17615 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17616 : }
17617 0 : if (flags & NDR_IN) {
17618 0 : ndr_print_struct(ndr, "in", "lsa_Opnum131NotUsedOnWire");
17619 0 : ndr->depth++;
17620 0 : ndr->depth--;
17621 : }
17622 0 : if (flags & NDR_OUT) {
17623 0 : ndr_print_struct(ndr, "out", "lsa_Opnum131NotUsedOnWire");
17624 0 : ndr->depth++;
17625 0 : ndr->depth--;
17626 : }
17627 0 : ndr->depth--;
17628 : }
17629 :
17630 0 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_lsaRQueryForestTrustInformation2(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_lsaRQueryForestTrustInformation2 *r)
17631 : {
17632 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17633 0 : if (flags & NDR_IN) {
17634 0 : if (r->in.handle == NULL) {
17635 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17636 : }
17637 0 : if (r->in.trusted_domain_name == NULL) {
17638 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17639 : }
17640 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
17641 0 : NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.trusted_domain_name));
17642 0 : NDR_CHECK(ndr_push_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, r->in.highest_record_type));
17643 : }
17644 0 : if (flags & NDR_OUT) {
17645 0 : if (r->out.forest_trust_info == NULL) {
17646 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17647 : }
17648 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.forest_trust_info));
17649 0 : if (*r->out.forest_trust_info) {
17650 0 : NDR_CHECK(ndr_push_lsa_ForestTrustInformation2(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.forest_trust_info));
17651 : }
17652 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
17653 : }
17654 0 : return NDR_ERR_SUCCESS;
17655 : }
17656 :
17657 0 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_lsaRQueryForestTrustInformation2(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_lsaRQueryForestTrustInformation2 *r)
17658 : {
17659 0 : uint32_t _ptr_forest_trust_info;
17660 0 : TALLOC_CTX *_mem_save_handle_0 = NULL;
17661 0 : TALLOC_CTX *_mem_save_trusted_domain_name_0 = NULL;
17662 0 : TALLOC_CTX *_mem_save_forest_trust_info_0 = NULL;
17663 0 : TALLOC_CTX *_mem_save_forest_trust_info_1 = NULL;
17664 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17665 0 : if (flags & NDR_IN) {
17666 0 : NDR_ZERO_STRUCT(r->out);
17667 :
17668 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17669 0 : NDR_PULL_ALLOC(ndr, r->in.handle);
17670 : }
17671 0 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
17672 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
17673 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
17674 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
17675 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17676 0 : NDR_PULL_ALLOC(ndr, r->in.trusted_domain_name);
17677 : }
17678 0 : _mem_save_trusted_domain_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
17679 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.trusted_domain_name, LIBNDR_FLAG_REF_ALLOC);
17680 0 : NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.trusted_domain_name));
17681 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trusted_domain_name_0, LIBNDR_FLAG_REF_ALLOC);
17682 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, &r->in.highest_record_type));
17683 0 : NDR_PULL_ALLOC(ndr, r->out.forest_trust_info);
17684 0 : NDR_ZERO_STRUCTP(r->out.forest_trust_info);
17685 : }
17686 0 : if (flags & NDR_OUT) {
17687 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17688 : if (r->in.handle == NULL) {
17689 : NDR_PULL_ALLOC(ndr, r->in.handle);
17690 : NDR_ZERO_STRUCTP(r->in.handle);
17691 : }
17692 : if (r->in.trusted_domain_name == NULL) {
17693 : NDR_PULL_ALLOC(ndr, r->in.trusted_domain_name);
17694 : NDR_ZERO_STRUCTP(r->in.trusted_domain_name);
17695 : }
17696 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17697 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17698 0 : NDR_PULL_ALLOC(ndr, r->out.forest_trust_info);
17699 : }
17700 0 : _mem_save_forest_trust_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
17701 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.forest_trust_info, LIBNDR_FLAG_REF_ALLOC);
17702 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_forest_trust_info));
17703 0 : if (_ptr_forest_trust_info) {
17704 0 : NDR_PULL_ALLOC(ndr, *r->out.forest_trust_info);
17705 : } else {
17706 0 : *r->out.forest_trust_info = NULL;
17707 : }
17708 0 : if (*r->out.forest_trust_info) {
17709 0 : _mem_save_forest_trust_info_1 = NDR_PULL_GET_MEM_CTX(ndr);
17710 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.forest_trust_info, 0);
17711 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustInformation2(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.forest_trust_info));
17712 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_forest_trust_info_1, 0);
17713 : }
17714 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_forest_trust_info_0, LIBNDR_FLAG_REF_ALLOC);
17715 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
17716 : }
17717 0 : return NDR_ERR_SUCCESS;
17718 : }
17719 :
17720 0 : _PUBLIC_ void ndr_print_lsa_lsaRQueryForestTrustInformation2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_lsaRQueryForestTrustInformation2 *r)
17721 : {
17722 0 : ndr_print_struct(ndr, name, "lsa_lsaRQueryForestTrustInformation2");
17723 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17724 0 : ndr->depth++;
17725 0 : if (flags & NDR_SET_VALUES) {
17726 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17727 : }
17728 0 : if (flags & NDR_IN) {
17729 0 : ndr_print_struct(ndr, "in", "lsa_lsaRQueryForestTrustInformation2");
17730 0 : ndr->depth++;
17731 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
17732 0 : ndr->depth++;
17733 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
17734 0 : ndr->depth--;
17735 0 : ndr_print_ptr(ndr, "trusted_domain_name", r->in.trusted_domain_name);
17736 0 : ndr->depth++;
17737 0 : ndr_print_lsa_String(ndr, "trusted_domain_name", r->in.trusted_domain_name);
17738 0 : ndr->depth--;
17739 0 : ndr_print_lsa_ForestTrustRecordType(ndr, "highest_record_type", r->in.highest_record_type);
17740 0 : ndr->depth--;
17741 : }
17742 0 : if (flags & NDR_OUT) {
17743 0 : ndr_print_struct(ndr, "out", "lsa_lsaRQueryForestTrustInformation2");
17744 0 : ndr->depth++;
17745 0 : ndr_print_ptr(ndr, "forest_trust_info", r->out.forest_trust_info);
17746 0 : ndr->depth++;
17747 0 : ndr_print_ptr(ndr, "forest_trust_info", *r->out.forest_trust_info);
17748 0 : ndr->depth++;
17749 0 : if (*r->out.forest_trust_info) {
17750 0 : ndr_print_lsa_ForestTrustInformation2(ndr, "forest_trust_info", *r->out.forest_trust_info);
17751 : }
17752 0 : ndr->depth--;
17753 0 : ndr->depth--;
17754 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
17755 0 : ndr->depth--;
17756 : }
17757 0 : ndr->depth--;
17758 : }
17759 :
17760 0 : _PUBLIC_ enum ndr_err_code ndr_push_lsa_lsaRSetForestTrustInformation2(struct ndr_push *ndr, ndr_flags_type flags, const struct lsa_lsaRSetForestTrustInformation2 *r)
17761 : {
17762 0 : NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
17763 0 : if (flags & NDR_IN) {
17764 0 : if (r->in.handle == NULL) {
17765 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17766 : }
17767 0 : if (r->in.trusted_domain_name == NULL) {
17768 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17769 : }
17770 0 : if (r->in.forest_trust_info == NULL) {
17771 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17772 : }
17773 0 : NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
17774 0 : NDR_CHECK(ndr_push_lsa_StringLarge(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.trusted_domain_name));
17775 0 : NDR_CHECK(ndr_push_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, r->in.highest_record_type));
17776 0 : NDR_CHECK(ndr_push_lsa_ForestTrustInformation2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.forest_trust_info));
17777 0 : NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.check_only));
17778 : }
17779 0 : if (flags & NDR_OUT) {
17780 0 : if (r->out.collision_info == NULL) {
17781 0 : return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
17782 : }
17783 0 : NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.collision_info));
17784 0 : if (*r->out.collision_info) {
17785 0 : NDR_CHECK(ndr_push_lsa_ForestTrustCollisionInfo(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.collision_info));
17786 : }
17787 0 : NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
17788 : }
17789 0 : return NDR_ERR_SUCCESS;
17790 : }
17791 :
17792 0 : _PUBLIC_ enum ndr_err_code ndr_pull_lsa_lsaRSetForestTrustInformation2(struct ndr_pull *ndr, ndr_flags_type flags, struct lsa_lsaRSetForestTrustInformation2 *r)
17793 : {
17794 0 : uint32_t _ptr_collision_info;
17795 0 : TALLOC_CTX *_mem_save_handle_0 = NULL;
17796 0 : TALLOC_CTX *_mem_save_trusted_domain_name_0 = NULL;
17797 0 : TALLOC_CTX *_mem_save_forest_trust_info_0 = NULL;
17798 0 : TALLOC_CTX *_mem_save_collision_info_0 = NULL;
17799 0 : TALLOC_CTX *_mem_save_collision_info_1 = NULL;
17800 0 : NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
17801 0 : if (flags & NDR_IN) {
17802 0 : NDR_ZERO_STRUCT(r->out);
17803 :
17804 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17805 0 : NDR_PULL_ALLOC(ndr, r->in.handle);
17806 : }
17807 0 : _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
17808 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
17809 0 : NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
17810 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
17811 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17812 0 : NDR_PULL_ALLOC(ndr, r->in.trusted_domain_name);
17813 : }
17814 0 : _mem_save_trusted_domain_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
17815 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.trusted_domain_name, LIBNDR_FLAG_REF_ALLOC);
17816 0 : NDR_CHECK(ndr_pull_lsa_StringLarge(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.trusted_domain_name));
17817 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_trusted_domain_name_0, LIBNDR_FLAG_REF_ALLOC);
17818 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustRecordType(ndr, NDR_SCALARS, &r->in.highest_record_type));
17819 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17820 0 : NDR_PULL_ALLOC(ndr, r->in.forest_trust_info);
17821 : }
17822 0 : _mem_save_forest_trust_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
17823 0 : NDR_PULL_SET_MEM_CTX(ndr, r->in.forest_trust_info, LIBNDR_FLAG_REF_ALLOC);
17824 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustInformation2(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.forest_trust_info));
17825 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_forest_trust_info_0, LIBNDR_FLAG_REF_ALLOC);
17826 0 : NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.check_only));
17827 0 : NDR_PULL_ALLOC(ndr, r->out.collision_info);
17828 0 : NDR_ZERO_STRUCTP(r->out.collision_info);
17829 : }
17830 0 : if (flags & NDR_OUT) {
17831 : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
17832 : if (r->in.handle == NULL) {
17833 : NDR_PULL_ALLOC(ndr, r->in.handle);
17834 : NDR_ZERO_STRUCTP(r->in.handle);
17835 : }
17836 : if (r->in.trusted_domain_name == NULL) {
17837 : NDR_PULL_ALLOC(ndr, r->in.trusted_domain_name);
17838 : NDR_ZERO_STRUCTP(r->in.trusted_domain_name);
17839 : }
17840 : if (r->in.forest_trust_info == NULL) {
17841 : NDR_PULL_ALLOC(ndr, r->in.forest_trust_info);
17842 : NDR_ZERO_STRUCTP(r->in.forest_trust_info);
17843 : }
17844 : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
17845 0 : if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
17846 0 : NDR_PULL_ALLOC(ndr, r->out.collision_info);
17847 : }
17848 0 : _mem_save_collision_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
17849 0 : NDR_PULL_SET_MEM_CTX(ndr, r->out.collision_info, LIBNDR_FLAG_REF_ALLOC);
17850 0 : NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_collision_info));
17851 0 : if (_ptr_collision_info) {
17852 0 : NDR_PULL_ALLOC(ndr, *r->out.collision_info);
17853 : } else {
17854 0 : *r->out.collision_info = NULL;
17855 : }
17856 0 : if (*r->out.collision_info) {
17857 0 : _mem_save_collision_info_1 = NDR_PULL_GET_MEM_CTX(ndr);
17858 0 : NDR_PULL_SET_MEM_CTX(ndr, *r->out.collision_info, 0);
17859 0 : NDR_CHECK(ndr_pull_lsa_ForestTrustCollisionInfo(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.collision_info));
17860 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_collision_info_1, 0);
17861 : }
17862 0 : NDR_PULL_SET_MEM_CTX(ndr, _mem_save_collision_info_0, LIBNDR_FLAG_REF_ALLOC);
17863 0 : NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
17864 : }
17865 0 : return NDR_ERR_SUCCESS;
17866 : }
17867 :
17868 0 : _PUBLIC_ void ndr_print_lsa_lsaRSetForestTrustInformation2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct lsa_lsaRSetForestTrustInformation2 *r)
17869 : {
17870 0 : ndr_print_struct(ndr, name, "lsa_lsaRSetForestTrustInformation2");
17871 0 : if (r == NULL) { ndr_print_null(ndr); return; }
17872 0 : ndr->depth++;
17873 0 : if (flags & NDR_SET_VALUES) {
17874 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
17875 : }
17876 0 : if (flags & NDR_IN) {
17877 0 : ndr_print_struct(ndr, "in", "lsa_lsaRSetForestTrustInformation2");
17878 0 : ndr->depth++;
17879 0 : ndr_print_ptr(ndr, "handle", r->in.handle);
17880 0 : ndr->depth++;
17881 0 : ndr_print_policy_handle(ndr, "handle", r->in.handle);
17882 0 : ndr->depth--;
17883 0 : ndr_print_ptr(ndr, "trusted_domain_name", r->in.trusted_domain_name);
17884 0 : ndr->depth++;
17885 0 : ndr_print_lsa_StringLarge(ndr, "trusted_domain_name", r->in.trusted_domain_name);
17886 0 : ndr->depth--;
17887 0 : ndr_print_lsa_ForestTrustRecordType(ndr, "highest_record_type", r->in.highest_record_type);
17888 0 : ndr_print_ptr(ndr, "forest_trust_info", r->in.forest_trust_info);
17889 0 : ndr->depth++;
17890 0 : ndr_print_lsa_ForestTrustInformation2(ndr, "forest_trust_info", r->in.forest_trust_info);
17891 0 : ndr->depth--;
17892 0 : ndr_print_uint8(ndr, "check_only", r->in.check_only);
17893 0 : ndr->depth--;
17894 : }
17895 0 : if (flags & NDR_OUT) {
17896 0 : ndr_print_struct(ndr, "out", "lsa_lsaRSetForestTrustInformation2");
17897 0 : ndr->depth++;
17898 0 : ndr_print_ptr(ndr, "collision_info", r->out.collision_info);
17899 0 : ndr->depth++;
17900 0 : ndr_print_ptr(ndr, "collision_info", *r->out.collision_info);
17901 0 : ndr->depth++;
17902 0 : if (*r->out.collision_info) {
17903 0 : ndr_print_lsa_ForestTrustCollisionInfo(ndr, "collision_info", *r->out.collision_info);
17904 : }
17905 0 : ndr->depth--;
17906 0 : ndr->depth--;
17907 0 : ndr_print_NTSTATUS(ndr, "result", r->out.result);
17908 0 : ndr->depth--;
17909 : }
17910 0 : ndr->depth--;
17911 : }
17912 :
17913 : #ifndef SKIP_NDR_TABLE_lsarpc
17914 : static const struct ndr_interface_public_struct lsarpc_public_structs[] = {
17915 : {
17916 : .name = "lsa_String",
17917 : .struct_size = sizeof(struct lsa_String ),
17918 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_String,
17919 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_String,
17920 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_String,
17921 : },
17922 : {
17923 : .name = "lsa_StringLarge",
17924 : .struct_size = sizeof(struct lsa_StringLarge ),
17925 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_StringLarge,
17926 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_StringLarge,
17927 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_StringLarge,
17928 : },
17929 : {
17930 : .name = "lsa_Strings",
17931 : .struct_size = sizeof(struct lsa_Strings ),
17932 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_Strings,
17933 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_Strings,
17934 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_Strings,
17935 : },
17936 : {
17937 : .name = "lsa_AsciiString",
17938 : .struct_size = sizeof(struct lsa_AsciiString ),
17939 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_AsciiString,
17940 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_AsciiString,
17941 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_AsciiString,
17942 : },
17943 : {
17944 : .name = "lsa_AsciiStringLarge",
17945 : .struct_size = sizeof(struct lsa_AsciiStringLarge ),
17946 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_AsciiStringLarge,
17947 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_AsciiStringLarge,
17948 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_AsciiStringLarge,
17949 : },
17950 : {
17951 : .name = "lsa_BinaryString",
17952 : .struct_size = sizeof(struct lsa_BinaryString ),
17953 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_BinaryString,
17954 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_BinaryString,
17955 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_BinaryString,
17956 : },
17957 : {
17958 : .name = "lsa_DnsDomainInfo",
17959 : .struct_size = sizeof(struct lsa_DnsDomainInfo ),
17960 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_DnsDomainInfo,
17961 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_DnsDomainInfo,
17962 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_DnsDomainInfo,
17963 : },
17964 : {
17965 : .name = "lsa_SidArray",
17966 : .struct_size = sizeof(struct lsa_SidArray ),
17967 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_SidArray,
17968 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_SidArray,
17969 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_SidArray,
17970 : },
17971 : {
17972 : .name = "lsa_RefDomainList",
17973 : .struct_size = sizeof(struct lsa_RefDomainList ),
17974 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_RefDomainList,
17975 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_RefDomainList,
17976 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_RefDomainList,
17977 : },
17978 : {
17979 : .name = "lsa_TransNameArray",
17980 : .struct_size = sizeof(struct lsa_TransNameArray ),
17981 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_TransNameArray,
17982 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_TransNameArray,
17983 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_TransNameArray,
17984 : },
17985 : {
17986 : .name = "lsa_TrustDomainInfoInfoEx",
17987 : .struct_size = sizeof(struct lsa_TrustDomainInfoInfoEx ),
17988 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_TrustDomainInfoInfoEx,
17989 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_TrustDomainInfoInfoEx,
17990 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_TrustDomainInfoInfoEx,
17991 : },
17992 : {
17993 : .name = "lsa_TrustDomainInfoAuthInfo",
17994 : .struct_size = sizeof(struct lsa_TrustDomainInfoAuthInfo ),
17995 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_TrustDomainInfoAuthInfo,
17996 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_TrustDomainInfoAuthInfo,
17997 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_TrustDomainInfoAuthInfo,
17998 : },
17999 : {
18000 : .name = "lsa_ForestTrustInformation",
18001 : .struct_size = sizeof(struct lsa_ForestTrustInformation ),
18002 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_ForestTrustInformation,
18003 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_ForestTrustInformation,
18004 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_ForestTrustInformation,
18005 : },
18006 : {
18007 : .name = "lsa_ForestTrustCollisionRecord",
18008 : .struct_size = sizeof(struct lsa_ForestTrustCollisionRecord ),
18009 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_ForestTrustCollisionRecord,
18010 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_ForestTrustCollisionRecord,
18011 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_ForestTrustCollisionRecord,
18012 : },
18013 : {
18014 : .name = "lsa_ForestTrustCollisionInfo",
18015 : .struct_size = sizeof(struct lsa_ForestTrustCollisionInfo ),
18016 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_ForestTrustCollisionInfo,
18017 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_ForestTrustCollisionInfo,
18018 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_ForestTrustCollisionInfo,
18019 : },
18020 : {
18021 : .name = "lsa_ForestTrustInformation2",
18022 : .struct_size = sizeof(struct lsa_ForestTrustInformation2 ),
18023 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_lsa_ForestTrustInformation2,
18024 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_lsa_ForestTrustInformation2,
18025 : .ndr_print = (ndr_print_function_t) ndr_print_flags_lsa_ForestTrustInformation2,
18026 : },
18027 : { .name = NULL }
18028 : };
18029 :
18030 : static const struct ndr_interface_call lsarpc_calls[] = {
18031 : {
18032 : "lsa_Close",
18033 : sizeof(struct lsa_Close),
18034 : (ndr_push_flags_fn_t) ndr_push_lsa_Close,
18035 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Close,
18036 : (ndr_print_function_t) ndr_print_lsa_Close,
18037 : { 0, NULL },
18038 : { 0, NULL },
18039 : },
18040 : {
18041 : "lsa_Delete",
18042 : sizeof(struct lsa_Delete),
18043 : (ndr_push_flags_fn_t) ndr_push_lsa_Delete,
18044 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Delete,
18045 : (ndr_print_function_t) ndr_print_lsa_Delete,
18046 : { 0, NULL },
18047 : { 0, NULL },
18048 : },
18049 : {
18050 : "lsa_EnumPrivs",
18051 : sizeof(struct lsa_EnumPrivs),
18052 : (ndr_push_flags_fn_t) ndr_push_lsa_EnumPrivs,
18053 : (ndr_pull_flags_fn_t) ndr_pull_lsa_EnumPrivs,
18054 : (ndr_print_function_t) ndr_print_lsa_EnumPrivs,
18055 : { 0, NULL },
18056 : { 0, NULL },
18057 : },
18058 : {
18059 : "lsa_QuerySecurity",
18060 : sizeof(struct lsa_QuerySecurity),
18061 : (ndr_push_flags_fn_t) ndr_push_lsa_QuerySecurity,
18062 : (ndr_pull_flags_fn_t) ndr_pull_lsa_QuerySecurity,
18063 : (ndr_print_function_t) ndr_print_lsa_QuerySecurity,
18064 : { 0, NULL },
18065 : { 0, NULL },
18066 : },
18067 : {
18068 : "lsa_SetSecObj",
18069 : sizeof(struct lsa_SetSecObj),
18070 : (ndr_push_flags_fn_t) ndr_push_lsa_SetSecObj,
18071 : (ndr_pull_flags_fn_t) ndr_pull_lsa_SetSecObj,
18072 : (ndr_print_function_t) ndr_print_lsa_SetSecObj,
18073 : { 0, NULL },
18074 : { 0, NULL },
18075 : },
18076 : {
18077 : "lsa_ChangePassword",
18078 : sizeof(struct lsa_ChangePassword),
18079 : (ndr_push_flags_fn_t) ndr_push_lsa_ChangePassword,
18080 : (ndr_pull_flags_fn_t) ndr_pull_lsa_ChangePassword,
18081 : (ndr_print_function_t) ndr_print_lsa_ChangePassword,
18082 : { 0, NULL },
18083 : { 0, NULL },
18084 : },
18085 : {
18086 : "lsa_OpenPolicy",
18087 : sizeof(struct lsa_OpenPolicy),
18088 : (ndr_push_flags_fn_t) ndr_push_lsa_OpenPolicy,
18089 : (ndr_pull_flags_fn_t) ndr_pull_lsa_OpenPolicy,
18090 : (ndr_print_function_t) ndr_print_lsa_OpenPolicy,
18091 : { 0, NULL },
18092 : { 0, NULL },
18093 : },
18094 : {
18095 : "lsa_QueryInfoPolicy",
18096 : sizeof(struct lsa_QueryInfoPolicy),
18097 : (ndr_push_flags_fn_t) ndr_push_lsa_QueryInfoPolicy,
18098 : (ndr_pull_flags_fn_t) ndr_pull_lsa_QueryInfoPolicy,
18099 : (ndr_print_function_t) ndr_print_lsa_QueryInfoPolicy,
18100 : { 0, NULL },
18101 : { 0, NULL },
18102 : },
18103 : {
18104 : "lsa_SetInfoPolicy",
18105 : sizeof(struct lsa_SetInfoPolicy),
18106 : (ndr_push_flags_fn_t) ndr_push_lsa_SetInfoPolicy,
18107 : (ndr_pull_flags_fn_t) ndr_pull_lsa_SetInfoPolicy,
18108 : (ndr_print_function_t) ndr_print_lsa_SetInfoPolicy,
18109 : { 0, NULL },
18110 : { 0, NULL },
18111 : },
18112 : {
18113 : "lsa_ClearAuditLog",
18114 : sizeof(struct lsa_ClearAuditLog),
18115 : (ndr_push_flags_fn_t) ndr_push_lsa_ClearAuditLog,
18116 : (ndr_pull_flags_fn_t) ndr_pull_lsa_ClearAuditLog,
18117 : (ndr_print_function_t) ndr_print_lsa_ClearAuditLog,
18118 : { 0, NULL },
18119 : { 0, NULL },
18120 : },
18121 : {
18122 : "lsa_CreateAccount",
18123 : sizeof(struct lsa_CreateAccount),
18124 : (ndr_push_flags_fn_t) ndr_push_lsa_CreateAccount,
18125 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CreateAccount,
18126 : (ndr_print_function_t) ndr_print_lsa_CreateAccount,
18127 : { 0, NULL },
18128 : { 0, NULL },
18129 : },
18130 : {
18131 : "lsa_EnumAccounts",
18132 : sizeof(struct lsa_EnumAccounts),
18133 : (ndr_push_flags_fn_t) ndr_push_lsa_EnumAccounts,
18134 : (ndr_pull_flags_fn_t) ndr_pull_lsa_EnumAccounts,
18135 : (ndr_print_function_t) ndr_print_lsa_EnumAccounts,
18136 : { 0, NULL },
18137 : { 0, NULL },
18138 : },
18139 : {
18140 : "lsa_CreateTrustedDomain",
18141 : sizeof(struct lsa_CreateTrustedDomain),
18142 : (ndr_push_flags_fn_t) ndr_push_lsa_CreateTrustedDomain,
18143 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CreateTrustedDomain,
18144 : (ndr_print_function_t) ndr_print_lsa_CreateTrustedDomain,
18145 : { 0, NULL },
18146 : { 0, NULL },
18147 : },
18148 : {
18149 : "lsa_EnumTrustDom",
18150 : sizeof(struct lsa_EnumTrustDom),
18151 : (ndr_push_flags_fn_t) ndr_push_lsa_EnumTrustDom,
18152 : (ndr_pull_flags_fn_t) ndr_pull_lsa_EnumTrustDom,
18153 : (ndr_print_function_t) ndr_print_lsa_EnumTrustDom,
18154 : { 0, NULL },
18155 : { 0, NULL },
18156 : },
18157 : {
18158 : "lsa_LookupNames",
18159 : sizeof(struct lsa_LookupNames),
18160 : (ndr_push_flags_fn_t) ndr_push_lsa_LookupNames,
18161 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LookupNames,
18162 : (ndr_print_function_t) ndr_print_lsa_LookupNames,
18163 : { 0, NULL },
18164 : { 0, NULL },
18165 : },
18166 : {
18167 : "lsa_LookupSids",
18168 : sizeof(struct lsa_LookupSids),
18169 : (ndr_push_flags_fn_t) ndr_push_lsa_LookupSids,
18170 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LookupSids,
18171 : (ndr_print_function_t) ndr_print_lsa_LookupSids,
18172 : { 0, NULL },
18173 : { 0, NULL },
18174 : },
18175 : {
18176 : "lsa_CreateSecret",
18177 : sizeof(struct lsa_CreateSecret),
18178 : (ndr_push_flags_fn_t) ndr_push_lsa_CreateSecret,
18179 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CreateSecret,
18180 : (ndr_print_function_t) ndr_print_lsa_CreateSecret,
18181 : { 0, NULL },
18182 : { 0, NULL },
18183 : },
18184 : {
18185 : "lsa_OpenAccount",
18186 : sizeof(struct lsa_OpenAccount),
18187 : (ndr_push_flags_fn_t) ndr_push_lsa_OpenAccount,
18188 : (ndr_pull_flags_fn_t) ndr_pull_lsa_OpenAccount,
18189 : (ndr_print_function_t) ndr_print_lsa_OpenAccount,
18190 : { 0, NULL },
18191 : { 0, NULL },
18192 : },
18193 : {
18194 : "lsa_EnumPrivsAccount",
18195 : sizeof(struct lsa_EnumPrivsAccount),
18196 : (ndr_push_flags_fn_t) ndr_push_lsa_EnumPrivsAccount,
18197 : (ndr_pull_flags_fn_t) ndr_pull_lsa_EnumPrivsAccount,
18198 : (ndr_print_function_t) ndr_print_lsa_EnumPrivsAccount,
18199 : { 0, NULL },
18200 : { 0, NULL },
18201 : },
18202 : {
18203 : "lsa_AddPrivilegesToAccount",
18204 : sizeof(struct lsa_AddPrivilegesToAccount),
18205 : (ndr_push_flags_fn_t) ndr_push_lsa_AddPrivilegesToAccount,
18206 : (ndr_pull_flags_fn_t) ndr_pull_lsa_AddPrivilegesToAccount,
18207 : (ndr_print_function_t) ndr_print_lsa_AddPrivilegesToAccount,
18208 : { 0, NULL },
18209 : { 0, NULL },
18210 : },
18211 : {
18212 : "lsa_RemovePrivilegesFromAccount",
18213 : sizeof(struct lsa_RemovePrivilegesFromAccount),
18214 : (ndr_push_flags_fn_t) ndr_push_lsa_RemovePrivilegesFromAccount,
18215 : (ndr_pull_flags_fn_t) ndr_pull_lsa_RemovePrivilegesFromAccount,
18216 : (ndr_print_function_t) ndr_print_lsa_RemovePrivilegesFromAccount,
18217 : { 0, NULL },
18218 : { 0, NULL },
18219 : },
18220 : {
18221 : "lsa_GetQuotasForAccount",
18222 : sizeof(struct lsa_GetQuotasForAccount),
18223 : (ndr_push_flags_fn_t) ndr_push_lsa_GetQuotasForAccount,
18224 : (ndr_pull_flags_fn_t) ndr_pull_lsa_GetQuotasForAccount,
18225 : (ndr_print_function_t) ndr_print_lsa_GetQuotasForAccount,
18226 : { 0, NULL },
18227 : { 0, NULL },
18228 : },
18229 : {
18230 : "lsa_SetQuotasForAccount",
18231 : sizeof(struct lsa_SetQuotasForAccount),
18232 : (ndr_push_flags_fn_t) ndr_push_lsa_SetQuotasForAccount,
18233 : (ndr_pull_flags_fn_t) ndr_pull_lsa_SetQuotasForAccount,
18234 : (ndr_print_function_t) ndr_print_lsa_SetQuotasForAccount,
18235 : { 0, NULL },
18236 : { 0, NULL },
18237 : },
18238 : {
18239 : "lsa_GetSystemAccessAccount",
18240 : sizeof(struct lsa_GetSystemAccessAccount),
18241 : (ndr_push_flags_fn_t) ndr_push_lsa_GetSystemAccessAccount,
18242 : (ndr_pull_flags_fn_t) ndr_pull_lsa_GetSystemAccessAccount,
18243 : (ndr_print_function_t) ndr_print_lsa_GetSystemAccessAccount,
18244 : { 0, NULL },
18245 : { 0, NULL },
18246 : },
18247 : {
18248 : "lsa_SetSystemAccessAccount",
18249 : sizeof(struct lsa_SetSystemAccessAccount),
18250 : (ndr_push_flags_fn_t) ndr_push_lsa_SetSystemAccessAccount,
18251 : (ndr_pull_flags_fn_t) ndr_pull_lsa_SetSystemAccessAccount,
18252 : (ndr_print_function_t) ndr_print_lsa_SetSystemAccessAccount,
18253 : { 0, NULL },
18254 : { 0, NULL },
18255 : },
18256 : {
18257 : "lsa_OpenTrustedDomain",
18258 : sizeof(struct lsa_OpenTrustedDomain),
18259 : (ndr_push_flags_fn_t) ndr_push_lsa_OpenTrustedDomain,
18260 : (ndr_pull_flags_fn_t) ndr_pull_lsa_OpenTrustedDomain,
18261 : (ndr_print_function_t) ndr_print_lsa_OpenTrustedDomain,
18262 : { 0, NULL },
18263 : { 0, NULL },
18264 : },
18265 : {
18266 : "lsa_QueryTrustedDomainInfo",
18267 : sizeof(struct lsa_QueryTrustedDomainInfo),
18268 : (ndr_push_flags_fn_t) ndr_push_lsa_QueryTrustedDomainInfo,
18269 : (ndr_pull_flags_fn_t) ndr_pull_lsa_QueryTrustedDomainInfo,
18270 : (ndr_print_function_t) ndr_print_lsa_QueryTrustedDomainInfo,
18271 : { 0, NULL },
18272 : { 0, NULL },
18273 : },
18274 : {
18275 : "lsa_SetInformationTrustedDomain",
18276 : sizeof(struct lsa_SetInformationTrustedDomain),
18277 : (ndr_push_flags_fn_t) ndr_push_lsa_SetInformationTrustedDomain,
18278 : (ndr_pull_flags_fn_t) ndr_pull_lsa_SetInformationTrustedDomain,
18279 : (ndr_print_function_t) ndr_print_lsa_SetInformationTrustedDomain,
18280 : { 0, NULL },
18281 : { 0, NULL },
18282 : },
18283 : {
18284 : "lsa_OpenSecret",
18285 : sizeof(struct lsa_OpenSecret),
18286 : (ndr_push_flags_fn_t) ndr_push_lsa_OpenSecret,
18287 : (ndr_pull_flags_fn_t) ndr_pull_lsa_OpenSecret,
18288 : (ndr_print_function_t) ndr_print_lsa_OpenSecret,
18289 : { 0, NULL },
18290 : { 0, NULL },
18291 : },
18292 : {
18293 : "lsa_SetSecret",
18294 : sizeof(struct lsa_SetSecret),
18295 : (ndr_push_flags_fn_t) ndr_push_lsa_SetSecret,
18296 : (ndr_pull_flags_fn_t) ndr_pull_lsa_SetSecret,
18297 : (ndr_print_function_t) ndr_print_lsa_SetSecret,
18298 : { 0, NULL },
18299 : { 0, NULL },
18300 : },
18301 : {
18302 : "lsa_QuerySecret",
18303 : sizeof(struct lsa_QuerySecret),
18304 : (ndr_push_flags_fn_t) ndr_push_lsa_QuerySecret,
18305 : (ndr_pull_flags_fn_t) ndr_pull_lsa_QuerySecret,
18306 : (ndr_print_function_t) ndr_print_lsa_QuerySecret,
18307 : { 0, NULL },
18308 : { 0, NULL },
18309 : },
18310 : {
18311 : "lsa_LookupPrivValue",
18312 : sizeof(struct lsa_LookupPrivValue),
18313 : (ndr_push_flags_fn_t) ndr_push_lsa_LookupPrivValue,
18314 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LookupPrivValue,
18315 : (ndr_print_function_t) ndr_print_lsa_LookupPrivValue,
18316 : { 0, NULL },
18317 : { 0, NULL },
18318 : },
18319 : {
18320 : "lsa_LookupPrivName",
18321 : sizeof(struct lsa_LookupPrivName),
18322 : (ndr_push_flags_fn_t) ndr_push_lsa_LookupPrivName,
18323 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LookupPrivName,
18324 : (ndr_print_function_t) ndr_print_lsa_LookupPrivName,
18325 : { 0, NULL },
18326 : { 0, NULL },
18327 : },
18328 : {
18329 : "lsa_LookupPrivDisplayName",
18330 : sizeof(struct lsa_LookupPrivDisplayName),
18331 : (ndr_push_flags_fn_t) ndr_push_lsa_LookupPrivDisplayName,
18332 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LookupPrivDisplayName,
18333 : (ndr_print_function_t) ndr_print_lsa_LookupPrivDisplayName,
18334 : { 0, NULL },
18335 : { 0, NULL },
18336 : },
18337 : {
18338 : "lsa_DeleteObject",
18339 : sizeof(struct lsa_DeleteObject),
18340 : (ndr_push_flags_fn_t) ndr_push_lsa_DeleteObject,
18341 : (ndr_pull_flags_fn_t) ndr_pull_lsa_DeleteObject,
18342 : (ndr_print_function_t) ndr_print_lsa_DeleteObject,
18343 : { 0, NULL },
18344 : { 0, NULL },
18345 : },
18346 : {
18347 : "lsa_EnumAccountsWithUserRight",
18348 : sizeof(struct lsa_EnumAccountsWithUserRight),
18349 : (ndr_push_flags_fn_t) ndr_push_lsa_EnumAccountsWithUserRight,
18350 : (ndr_pull_flags_fn_t) ndr_pull_lsa_EnumAccountsWithUserRight,
18351 : (ndr_print_function_t) ndr_print_lsa_EnumAccountsWithUserRight,
18352 : { 0, NULL },
18353 : { 0, NULL },
18354 : },
18355 : {
18356 : "lsa_EnumAccountRights",
18357 : sizeof(struct lsa_EnumAccountRights),
18358 : (ndr_push_flags_fn_t) ndr_push_lsa_EnumAccountRights,
18359 : (ndr_pull_flags_fn_t) ndr_pull_lsa_EnumAccountRights,
18360 : (ndr_print_function_t) ndr_print_lsa_EnumAccountRights,
18361 : { 0, NULL },
18362 : { 0, NULL },
18363 : },
18364 : {
18365 : "lsa_AddAccountRights",
18366 : sizeof(struct lsa_AddAccountRights),
18367 : (ndr_push_flags_fn_t) ndr_push_lsa_AddAccountRights,
18368 : (ndr_pull_flags_fn_t) ndr_pull_lsa_AddAccountRights,
18369 : (ndr_print_function_t) ndr_print_lsa_AddAccountRights,
18370 : { 0, NULL },
18371 : { 0, NULL },
18372 : },
18373 : {
18374 : "lsa_RemoveAccountRights",
18375 : sizeof(struct lsa_RemoveAccountRights),
18376 : (ndr_push_flags_fn_t) ndr_push_lsa_RemoveAccountRights,
18377 : (ndr_pull_flags_fn_t) ndr_pull_lsa_RemoveAccountRights,
18378 : (ndr_print_function_t) ndr_print_lsa_RemoveAccountRights,
18379 : { 0, NULL },
18380 : { 0, NULL },
18381 : },
18382 : {
18383 : "lsa_QueryTrustedDomainInfoBySid",
18384 : sizeof(struct lsa_QueryTrustedDomainInfoBySid),
18385 : (ndr_push_flags_fn_t) ndr_push_lsa_QueryTrustedDomainInfoBySid,
18386 : (ndr_pull_flags_fn_t) ndr_pull_lsa_QueryTrustedDomainInfoBySid,
18387 : (ndr_print_function_t) ndr_print_lsa_QueryTrustedDomainInfoBySid,
18388 : { 0, NULL },
18389 : { 0, NULL },
18390 : },
18391 : {
18392 : "lsa_SetTrustedDomainInfo",
18393 : sizeof(struct lsa_SetTrustedDomainInfo),
18394 : (ndr_push_flags_fn_t) ndr_push_lsa_SetTrustedDomainInfo,
18395 : (ndr_pull_flags_fn_t) ndr_pull_lsa_SetTrustedDomainInfo,
18396 : (ndr_print_function_t) ndr_print_lsa_SetTrustedDomainInfo,
18397 : { 0, NULL },
18398 : { 0, NULL },
18399 : },
18400 : {
18401 : "lsa_DeleteTrustedDomain",
18402 : sizeof(struct lsa_DeleteTrustedDomain),
18403 : (ndr_push_flags_fn_t) ndr_push_lsa_DeleteTrustedDomain,
18404 : (ndr_pull_flags_fn_t) ndr_pull_lsa_DeleteTrustedDomain,
18405 : (ndr_print_function_t) ndr_print_lsa_DeleteTrustedDomain,
18406 : { 0, NULL },
18407 : { 0, NULL },
18408 : },
18409 : {
18410 : "lsa_StorePrivateData",
18411 : sizeof(struct lsa_StorePrivateData),
18412 : (ndr_push_flags_fn_t) ndr_push_lsa_StorePrivateData,
18413 : (ndr_pull_flags_fn_t) ndr_pull_lsa_StorePrivateData,
18414 : (ndr_print_function_t) ndr_print_lsa_StorePrivateData,
18415 : { 0, NULL },
18416 : { 0, NULL },
18417 : },
18418 : {
18419 : "lsa_RetrievePrivateData",
18420 : sizeof(struct lsa_RetrievePrivateData),
18421 : (ndr_push_flags_fn_t) ndr_push_lsa_RetrievePrivateData,
18422 : (ndr_pull_flags_fn_t) ndr_pull_lsa_RetrievePrivateData,
18423 : (ndr_print_function_t) ndr_print_lsa_RetrievePrivateData,
18424 : { 0, NULL },
18425 : { 0, NULL },
18426 : },
18427 : {
18428 : "lsa_OpenPolicy2",
18429 : sizeof(struct lsa_OpenPolicy2),
18430 : (ndr_push_flags_fn_t) ndr_push_lsa_OpenPolicy2,
18431 : (ndr_pull_flags_fn_t) ndr_pull_lsa_OpenPolicy2,
18432 : (ndr_print_function_t) ndr_print_lsa_OpenPolicy2,
18433 : { 0, NULL },
18434 : { 0, NULL },
18435 : },
18436 : {
18437 : "lsa_GetUserName",
18438 : sizeof(struct lsa_GetUserName),
18439 : (ndr_push_flags_fn_t) ndr_push_lsa_GetUserName,
18440 : (ndr_pull_flags_fn_t) ndr_pull_lsa_GetUserName,
18441 : (ndr_print_function_t) ndr_print_lsa_GetUserName,
18442 : { 0, NULL },
18443 : { 0, NULL },
18444 : },
18445 : {
18446 : "lsa_QueryInfoPolicy2",
18447 : sizeof(struct lsa_QueryInfoPolicy2),
18448 : (ndr_push_flags_fn_t) ndr_push_lsa_QueryInfoPolicy2,
18449 : (ndr_pull_flags_fn_t) ndr_pull_lsa_QueryInfoPolicy2,
18450 : (ndr_print_function_t) ndr_print_lsa_QueryInfoPolicy2,
18451 : { 0, NULL },
18452 : { 0, NULL },
18453 : },
18454 : {
18455 : "lsa_SetInfoPolicy2",
18456 : sizeof(struct lsa_SetInfoPolicy2),
18457 : (ndr_push_flags_fn_t) ndr_push_lsa_SetInfoPolicy2,
18458 : (ndr_pull_flags_fn_t) ndr_pull_lsa_SetInfoPolicy2,
18459 : (ndr_print_function_t) ndr_print_lsa_SetInfoPolicy2,
18460 : { 0, NULL },
18461 : { 0, NULL },
18462 : },
18463 : {
18464 : "lsa_QueryTrustedDomainInfoByName",
18465 : sizeof(struct lsa_QueryTrustedDomainInfoByName),
18466 : (ndr_push_flags_fn_t) ndr_push_lsa_QueryTrustedDomainInfoByName,
18467 : (ndr_pull_flags_fn_t) ndr_pull_lsa_QueryTrustedDomainInfoByName,
18468 : (ndr_print_function_t) ndr_print_lsa_QueryTrustedDomainInfoByName,
18469 : { 0, NULL },
18470 : { 0, NULL },
18471 : },
18472 : {
18473 : "lsa_SetTrustedDomainInfoByName",
18474 : sizeof(struct lsa_SetTrustedDomainInfoByName),
18475 : (ndr_push_flags_fn_t) ndr_push_lsa_SetTrustedDomainInfoByName,
18476 : (ndr_pull_flags_fn_t) ndr_pull_lsa_SetTrustedDomainInfoByName,
18477 : (ndr_print_function_t) ndr_print_lsa_SetTrustedDomainInfoByName,
18478 : { 0, NULL },
18479 : { 0, NULL },
18480 : },
18481 : {
18482 : "lsa_EnumTrustedDomainsEx",
18483 : sizeof(struct lsa_EnumTrustedDomainsEx),
18484 : (ndr_push_flags_fn_t) ndr_push_lsa_EnumTrustedDomainsEx,
18485 : (ndr_pull_flags_fn_t) ndr_pull_lsa_EnumTrustedDomainsEx,
18486 : (ndr_print_function_t) ndr_print_lsa_EnumTrustedDomainsEx,
18487 : { 0, NULL },
18488 : { 0, NULL },
18489 : },
18490 : {
18491 : "lsa_CreateTrustedDomainEx",
18492 : sizeof(struct lsa_CreateTrustedDomainEx),
18493 : (ndr_push_flags_fn_t) ndr_push_lsa_CreateTrustedDomainEx,
18494 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CreateTrustedDomainEx,
18495 : (ndr_print_function_t) ndr_print_lsa_CreateTrustedDomainEx,
18496 : { 0, NULL },
18497 : { 0, NULL },
18498 : },
18499 : {
18500 : "lsa_CloseTrustedDomainEx",
18501 : sizeof(struct lsa_CloseTrustedDomainEx),
18502 : (ndr_push_flags_fn_t) ndr_push_lsa_CloseTrustedDomainEx,
18503 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CloseTrustedDomainEx,
18504 : (ndr_print_function_t) ndr_print_lsa_CloseTrustedDomainEx,
18505 : { 0, NULL },
18506 : { 0, NULL },
18507 : },
18508 : {
18509 : "lsa_QueryDomainInformationPolicy",
18510 : sizeof(struct lsa_QueryDomainInformationPolicy),
18511 : (ndr_push_flags_fn_t) ndr_push_lsa_QueryDomainInformationPolicy,
18512 : (ndr_pull_flags_fn_t) ndr_pull_lsa_QueryDomainInformationPolicy,
18513 : (ndr_print_function_t) ndr_print_lsa_QueryDomainInformationPolicy,
18514 : { 0, NULL },
18515 : { 0, NULL },
18516 : },
18517 : {
18518 : "lsa_SetDomainInformationPolicy",
18519 : sizeof(struct lsa_SetDomainInformationPolicy),
18520 : (ndr_push_flags_fn_t) ndr_push_lsa_SetDomainInformationPolicy,
18521 : (ndr_pull_flags_fn_t) ndr_pull_lsa_SetDomainInformationPolicy,
18522 : (ndr_print_function_t) ndr_print_lsa_SetDomainInformationPolicy,
18523 : { 0, NULL },
18524 : { 0, NULL },
18525 : },
18526 : {
18527 : "lsa_OpenTrustedDomainByName",
18528 : sizeof(struct lsa_OpenTrustedDomainByName),
18529 : (ndr_push_flags_fn_t) ndr_push_lsa_OpenTrustedDomainByName,
18530 : (ndr_pull_flags_fn_t) ndr_pull_lsa_OpenTrustedDomainByName,
18531 : (ndr_print_function_t) ndr_print_lsa_OpenTrustedDomainByName,
18532 : { 0, NULL },
18533 : { 0, NULL },
18534 : },
18535 : {
18536 : "lsa_TestCall",
18537 : sizeof(struct lsa_TestCall),
18538 : (ndr_push_flags_fn_t) ndr_push_lsa_TestCall,
18539 : (ndr_pull_flags_fn_t) ndr_pull_lsa_TestCall,
18540 : (ndr_print_function_t) ndr_print_lsa_TestCall,
18541 : { 0, NULL },
18542 : { 0, NULL },
18543 : },
18544 : {
18545 : "lsa_LookupSids2",
18546 : sizeof(struct lsa_LookupSids2),
18547 : (ndr_push_flags_fn_t) ndr_push_lsa_LookupSids2,
18548 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LookupSids2,
18549 : (ndr_print_function_t) ndr_print_lsa_LookupSids2,
18550 : { 0, NULL },
18551 : { 0, NULL },
18552 : },
18553 : {
18554 : "lsa_LookupNames2",
18555 : sizeof(struct lsa_LookupNames2),
18556 : (ndr_push_flags_fn_t) ndr_push_lsa_LookupNames2,
18557 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LookupNames2,
18558 : (ndr_print_function_t) ndr_print_lsa_LookupNames2,
18559 : { 0, NULL },
18560 : { 0, NULL },
18561 : },
18562 : {
18563 : "lsa_CreateTrustedDomainEx2",
18564 : sizeof(struct lsa_CreateTrustedDomainEx2),
18565 : (ndr_push_flags_fn_t) ndr_push_lsa_CreateTrustedDomainEx2,
18566 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CreateTrustedDomainEx2,
18567 : (ndr_print_function_t) ndr_print_lsa_CreateTrustedDomainEx2,
18568 : { 0, NULL },
18569 : { 0, NULL },
18570 : },
18571 : {
18572 : "lsa_CREDRWRITE",
18573 : sizeof(struct lsa_CREDRWRITE),
18574 : (ndr_push_flags_fn_t) ndr_push_lsa_CREDRWRITE,
18575 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CREDRWRITE,
18576 : (ndr_print_function_t) ndr_print_lsa_CREDRWRITE,
18577 : { 0, NULL },
18578 : { 0, NULL },
18579 : },
18580 : {
18581 : "lsa_CREDRREAD",
18582 : sizeof(struct lsa_CREDRREAD),
18583 : (ndr_push_flags_fn_t) ndr_push_lsa_CREDRREAD,
18584 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CREDRREAD,
18585 : (ndr_print_function_t) ndr_print_lsa_CREDRREAD,
18586 : { 0, NULL },
18587 : { 0, NULL },
18588 : },
18589 : {
18590 : "lsa_CREDRENUMERATE",
18591 : sizeof(struct lsa_CREDRENUMERATE),
18592 : (ndr_push_flags_fn_t) ndr_push_lsa_CREDRENUMERATE,
18593 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CREDRENUMERATE,
18594 : (ndr_print_function_t) ndr_print_lsa_CREDRENUMERATE,
18595 : { 0, NULL },
18596 : { 0, NULL },
18597 : },
18598 : {
18599 : "lsa_CREDRWRITEDOMAINCREDENTIALS",
18600 : sizeof(struct lsa_CREDRWRITEDOMAINCREDENTIALS),
18601 : (ndr_push_flags_fn_t) ndr_push_lsa_CREDRWRITEDOMAINCREDENTIALS,
18602 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CREDRWRITEDOMAINCREDENTIALS,
18603 : (ndr_print_function_t) ndr_print_lsa_CREDRWRITEDOMAINCREDENTIALS,
18604 : { 0, NULL },
18605 : { 0, NULL },
18606 : },
18607 : {
18608 : "lsa_CREDRREADDOMAINCREDENTIALS",
18609 : sizeof(struct lsa_CREDRREADDOMAINCREDENTIALS),
18610 : (ndr_push_flags_fn_t) ndr_push_lsa_CREDRREADDOMAINCREDENTIALS,
18611 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CREDRREADDOMAINCREDENTIALS,
18612 : (ndr_print_function_t) ndr_print_lsa_CREDRREADDOMAINCREDENTIALS,
18613 : { 0, NULL },
18614 : { 0, NULL },
18615 : },
18616 : {
18617 : "lsa_CREDRDELETE",
18618 : sizeof(struct lsa_CREDRDELETE),
18619 : (ndr_push_flags_fn_t) ndr_push_lsa_CREDRDELETE,
18620 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CREDRDELETE,
18621 : (ndr_print_function_t) ndr_print_lsa_CREDRDELETE,
18622 : { 0, NULL },
18623 : { 0, NULL },
18624 : },
18625 : {
18626 : "lsa_CREDRGETTARGETINFO",
18627 : sizeof(struct lsa_CREDRGETTARGETINFO),
18628 : (ndr_push_flags_fn_t) ndr_push_lsa_CREDRGETTARGETINFO,
18629 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CREDRGETTARGETINFO,
18630 : (ndr_print_function_t) ndr_print_lsa_CREDRGETTARGETINFO,
18631 : { 0, NULL },
18632 : { 0, NULL },
18633 : },
18634 : {
18635 : "lsa_CREDRPROFILELOADED",
18636 : sizeof(struct lsa_CREDRPROFILELOADED),
18637 : (ndr_push_flags_fn_t) ndr_push_lsa_CREDRPROFILELOADED,
18638 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CREDRPROFILELOADED,
18639 : (ndr_print_function_t) ndr_print_lsa_CREDRPROFILELOADED,
18640 : { 0, NULL },
18641 : { 0, NULL },
18642 : },
18643 : {
18644 : "lsa_LookupNames3",
18645 : sizeof(struct lsa_LookupNames3),
18646 : (ndr_push_flags_fn_t) ndr_push_lsa_LookupNames3,
18647 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LookupNames3,
18648 : (ndr_print_function_t) ndr_print_lsa_LookupNames3,
18649 : { 0, NULL },
18650 : { 0, NULL },
18651 : },
18652 : {
18653 : "lsa_CREDRGETSESSIONTYPES",
18654 : sizeof(struct lsa_CREDRGETSESSIONTYPES),
18655 : (ndr_push_flags_fn_t) ndr_push_lsa_CREDRGETSESSIONTYPES,
18656 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CREDRGETSESSIONTYPES,
18657 : (ndr_print_function_t) ndr_print_lsa_CREDRGETSESSIONTYPES,
18658 : { 0, NULL },
18659 : { 0, NULL },
18660 : },
18661 : {
18662 : "lsa_LSARREGISTERAUDITEVENT",
18663 : sizeof(struct lsa_LSARREGISTERAUDITEVENT),
18664 : (ndr_push_flags_fn_t) ndr_push_lsa_LSARREGISTERAUDITEVENT,
18665 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LSARREGISTERAUDITEVENT,
18666 : (ndr_print_function_t) ndr_print_lsa_LSARREGISTERAUDITEVENT,
18667 : { 0, NULL },
18668 : { 0, NULL },
18669 : },
18670 : {
18671 : "lsa_LSARGENAUDITEVENT",
18672 : sizeof(struct lsa_LSARGENAUDITEVENT),
18673 : (ndr_push_flags_fn_t) ndr_push_lsa_LSARGENAUDITEVENT,
18674 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LSARGENAUDITEVENT,
18675 : (ndr_print_function_t) ndr_print_lsa_LSARGENAUDITEVENT,
18676 : { 0, NULL },
18677 : { 0, NULL },
18678 : },
18679 : {
18680 : "lsa_LSARUNREGISTERAUDITEVENT",
18681 : sizeof(struct lsa_LSARUNREGISTERAUDITEVENT),
18682 : (ndr_push_flags_fn_t) ndr_push_lsa_LSARUNREGISTERAUDITEVENT,
18683 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LSARUNREGISTERAUDITEVENT,
18684 : (ndr_print_function_t) ndr_print_lsa_LSARUNREGISTERAUDITEVENT,
18685 : { 0, NULL },
18686 : { 0, NULL },
18687 : },
18688 : {
18689 : "lsa_lsaRQueryForestTrustInformation",
18690 : sizeof(struct lsa_lsaRQueryForestTrustInformation),
18691 : (ndr_push_flags_fn_t) ndr_push_lsa_lsaRQueryForestTrustInformation,
18692 : (ndr_pull_flags_fn_t) ndr_pull_lsa_lsaRQueryForestTrustInformation,
18693 : (ndr_print_function_t) ndr_print_lsa_lsaRQueryForestTrustInformation,
18694 : { 0, NULL },
18695 : { 0, NULL },
18696 : },
18697 : {
18698 : "lsa_lsaRSetForestTrustInformation",
18699 : sizeof(struct lsa_lsaRSetForestTrustInformation),
18700 : (ndr_push_flags_fn_t) ndr_push_lsa_lsaRSetForestTrustInformation,
18701 : (ndr_pull_flags_fn_t) ndr_pull_lsa_lsaRSetForestTrustInformation,
18702 : (ndr_print_function_t) ndr_print_lsa_lsaRSetForestTrustInformation,
18703 : { 0, NULL },
18704 : { 0, NULL },
18705 : },
18706 : {
18707 : "lsa_CREDRRENAME",
18708 : sizeof(struct lsa_CREDRRENAME),
18709 : (ndr_push_flags_fn_t) ndr_push_lsa_CREDRRENAME,
18710 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CREDRRENAME,
18711 : (ndr_print_function_t) ndr_print_lsa_CREDRRENAME,
18712 : { 0, NULL },
18713 : { 0, NULL },
18714 : },
18715 : {
18716 : "lsa_LookupSids3",
18717 : sizeof(struct lsa_LookupSids3),
18718 : (ndr_push_flags_fn_t) ndr_push_lsa_LookupSids3,
18719 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LookupSids3,
18720 : (ndr_print_function_t) ndr_print_lsa_LookupSids3,
18721 : { 0, NULL },
18722 : { 0, NULL },
18723 : },
18724 : {
18725 : "lsa_LookupNames4",
18726 : sizeof(struct lsa_LookupNames4),
18727 : (ndr_push_flags_fn_t) ndr_push_lsa_LookupNames4,
18728 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LookupNames4,
18729 : (ndr_print_function_t) ndr_print_lsa_LookupNames4,
18730 : { 0, NULL },
18731 : { 0, NULL },
18732 : },
18733 : {
18734 : "lsa_LSAROPENPOLICYSCE",
18735 : sizeof(struct lsa_LSAROPENPOLICYSCE),
18736 : (ndr_push_flags_fn_t) ndr_push_lsa_LSAROPENPOLICYSCE,
18737 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LSAROPENPOLICYSCE,
18738 : (ndr_print_function_t) ndr_print_lsa_LSAROPENPOLICYSCE,
18739 : { 0, NULL },
18740 : { 0, NULL },
18741 : },
18742 : {
18743 : "lsa_LSARADTREGISTERSECURITYEVENTSOURCE",
18744 : sizeof(struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE),
18745 : (ndr_push_flags_fn_t) ndr_push_lsa_LSARADTREGISTERSECURITYEVENTSOURCE,
18746 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LSARADTREGISTERSECURITYEVENTSOURCE,
18747 : (ndr_print_function_t) ndr_print_lsa_LSARADTREGISTERSECURITYEVENTSOURCE,
18748 : { 0, NULL },
18749 : { 0, NULL },
18750 : },
18751 : {
18752 : "lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE",
18753 : sizeof(struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE),
18754 : (ndr_push_flags_fn_t) ndr_push_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE,
18755 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE,
18756 : (ndr_print_function_t) ndr_print_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE,
18757 : { 0, NULL },
18758 : { 0, NULL },
18759 : },
18760 : {
18761 : "lsa_LSARADTREPORTSECURITYEVENT",
18762 : sizeof(struct lsa_LSARADTREPORTSECURITYEVENT),
18763 : (ndr_push_flags_fn_t) ndr_push_lsa_LSARADTREPORTSECURITYEVENT,
18764 : (ndr_pull_flags_fn_t) ndr_pull_lsa_LSARADTREPORTSECURITYEVENT,
18765 : (ndr_print_function_t) ndr_print_lsa_LSARADTREPORTSECURITYEVENT,
18766 : { 0, NULL },
18767 : { 0, NULL },
18768 : },
18769 : {
18770 : "lsa_Opnum82NotUsedOnWire",
18771 : sizeof(struct lsa_Opnum82NotUsedOnWire),
18772 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum82NotUsedOnWire,
18773 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum82NotUsedOnWire,
18774 : (ndr_print_function_t) ndr_print_lsa_Opnum82NotUsedOnWire,
18775 : { 0, NULL },
18776 : { 0, NULL },
18777 : },
18778 : {
18779 : "lsa_Opnum83NotUsedOnWire",
18780 : sizeof(struct lsa_Opnum83NotUsedOnWire),
18781 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum83NotUsedOnWire,
18782 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum83NotUsedOnWire,
18783 : (ndr_print_function_t) ndr_print_lsa_Opnum83NotUsedOnWire,
18784 : { 0, NULL },
18785 : { 0, NULL },
18786 : },
18787 : {
18788 : "lsa_Opnum84NotUsedOnWire",
18789 : sizeof(struct lsa_Opnum84NotUsedOnWire),
18790 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum84NotUsedOnWire,
18791 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum84NotUsedOnWire,
18792 : (ndr_print_function_t) ndr_print_lsa_Opnum84NotUsedOnWire,
18793 : { 0, NULL },
18794 : { 0, NULL },
18795 : },
18796 : {
18797 : "lsa_Opnum85NotUsedOnWire",
18798 : sizeof(struct lsa_Opnum85NotUsedOnWire),
18799 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum85NotUsedOnWire,
18800 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum85NotUsedOnWire,
18801 : (ndr_print_function_t) ndr_print_lsa_Opnum85NotUsedOnWire,
18802 : { 0, NULL },
18803 : { 0, NULL },
18804 : },
18805 : {
18806 : "lsa_Opnum86NotUsedOnWire",
18807 : sizeof(struct lsa_Opnum86NotUsedOnWire),
18808 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum86NotUsedOnWire,
18809 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum86NotUsedOnWire,
18810 : (ndr_print_function_t) ndr_print_lsa_Opnum86NotUsedOnWire,
18811 : { 0, NULL },
18812 : { 0, NULL },
18813 : },
18814 : {
18815 : "lsa_Opnum87NotUsedOnWire",
18816 : sizeof(struct lsa_Opnum87NotUsedOnWire),
18817 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum87NotUsedOnWire,
18818 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum87NotUsedOnWire,
18819 : (ndr_print_function_t) ndr_print_lsa_Opnum87NotUsedOnWire,
18820 : { 0, NULL },
18821 : { 0, NULL },
18822 : },
18823 : {
18824 : "lsa_Opnum88NotUsedOnWire",
18825 : sizeof(struct lsa_Opnum88NotUsedOnWire),
18826 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum88NotUsedOnWire,
18827 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum88NotUsedOnWire,
18828 : (ndr_print_function_t) ndr_print_lsa_Opnum88NotUsedOnWire,
18829 : { 0, NULL },
18830 : { 0, NULL },
18831 : },
18832 : {
18833 : "lsa_Opnum89NotUsedOnWire",
18834 : sizeof(struct lsa_Opnum89NotUsedOnWire),
18835 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum89NotUsedOnWire,
18836 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum89NotUsedOnWire,
18837 : (ndr_print_function_t) ndr_print_lsa_Opnum89NotUsedOnWire,
18838 : { 0, NULL },
18839 : { 0, NULL },
18840 : },
18841 : {
18842 : "lsa_Opnum90NotUsedOnWire",
18843 : sizeof(struct lsa_Opnum90NotUsedOnWire),
18844 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum90NotUsedOnWire,
18845 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum90NotUsedOnWire,
18846 : (ndr_print_function_t) ndr_print_lsa_Opnum90NotUsedOnWire,
18847 : { 0, NULL },
18848 : { 0, NULL },
18849 : },
18850 : {
18851 : "lsa_Opnum91NotUsedOnWire",
18852 : sizeof(struct lsa_Opnum91NotUsedOnWire),
18853 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum91NotUsedOnWire,
18854 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum91NotUsedOnWire,
18855 : (ndr_print_function_t) ndr_print_lsa_Opnum91NotUsedOnWire,
18856 : { 0, NULL },
18857 : { 0, NULL },
18858 : },
18859 : {
18860 : "lsa_Opnum92NotUsedOnWire",
18861 : sizeof(struct lsa_Opnum92NotUsedOnWire),
18862 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum92NotUsedOnWire,
18863 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum92NotUsedOnWire,
18864 : (ndr_print_function_t) ndr_print_lsa_Opnum92NotUsedOnWire,
18865 : { 0, NULL },
18866 : { 0, NULL },
18867 : },
18868 : {
18869 : "lsa_Opnum93NotUsedOnWire",
18870 : sizeof(struct lsa_Opnum93NotUsedOnWire),
18871 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum93NotUsedOnWire,
18872 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum93NotUsedOnWire,
18873 : (ndr_print_function_t) ndr_print_lsa_Opnum93NotUsedOnWire,
18874 : { 0, NULL },
18875 : { 0, NULL },
18876 : },
18877 : {
18878 : "lsa_Opnum94NotUsedOnWire",
18879 : sizeof(struct lsa_Opnum94NotUsedOnWire),
18880 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum94NotUsedOnWire,
18881 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum94NotUsedOnWire,
18882 : (ndr_print_function_t) ndr_print_lsa_Opnum94NotUsedOnWire,
18883 : { 0, NULL },
18884 : { 0, NULL },
18885 : },
18886 : {
18887 : "lsa_Opnum95NotUsedOnWire",
18888 : sizeof(struct lsa_Opnum95NotUsedOnWire),
18889 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum95NotUsedOnWire,
18890 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum95NotUsedOnWire,
18891 : (ndr_print_function_t) ndr_print_lsa_Opnum95NotUsedOnWire,
18892 : { 0, NULL },
18893 : { 0, NULL },
18894 : },
18895 : {
18896 : "lsa_Opnum96NotUsedOnWire",
18897 : sizeof(struct lsa_Opnum96NotUsedOnWire),
18898 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum96NotUsedOnWire,
18899 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum96NotUsedOnWire,
18900 : (ndr_print_function_t) ndr_print_lsa_Opnum96NotUsedOnWire,
18901 : { 0, NULL },
18902 : { 0, NULL },
18903 : },
18904 : {
18905 : "lsa_Opnum97NotUsedOnWire",
18906 : sizeof(struct lsa_Opnum97NotUsedOnWire),
18907 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum97NotUsedOnWire,
18908 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum97NotUsedOnWire,
18909 : (ndr_print_function_t) ndr_print_lsa_Opnum97NotUsedOnWire,
18910 : { 0, NULL },
18911 : { 0, NULL },
18912 : },
18913 : {
18914 : "lsa_Opnum98NotUsedOnWire",
18915 : sizeof(struct lsa_Opnum98NotUsedOnWire),
18916 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum98NotUsedOnWire,
18917 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum98NotUsedOnWire,
18918 : (ndr_print_function_t) ndr_print_lsa_Opnum98NotUsedOnWire,
18919 : { 0, NULL },
18920 : { 0, NULL },
18921 : },
18922 : {
18923 : "lsa_Opnum99NotUsedOnWire",
18924 : sizeof(struct lsa_Opnum99NotUsedOnWire),
18925 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum99NotUsedOnWire,
18926 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum99NotUsedOnWire,
18927 : (ndr_print_function_t) ndr_print_lsa_Opnum99NotUsedOnWire,
18928 : { 0, NULL },
18929 : { 0, NULL },
18930 : },
18931 : {
18932 : "lsa_Opnum100NotUsedOnWire",
18933 : sizeof(struct lsa_Opnum100NotUsedOnWire),
18934 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum100NotUsedOnWire,
18935 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum100NotUsedOnWire,
18936 : (ndr_print_function_t) ndr_print_lsa_Opnum100NotUsedOnWire,
18937 : { 0, NULL },
18938 : { 0, NULL },
18939 : },
18940 : {
18941 : "lsa_Opnum101NotUsedOnWire",
18942 : sizeof(struct lsa_Opnum101NotUsedOnWire),
18943 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum101NotUsedOnWire,
18944 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum101NotUsedOnWire,
18945 : (ndr_print_function_t) ndr_print_lsa_Opnum101NotUsedOnWire,
18946 : { 0, NULL },
18947 : { 0, NULL },
18948 : },
18949 : {
18950 : "lsa_Opnum102NotUsedOnWire",
18951 : sizeof(struct lsa_Opnum102NotUsedOnWire),
18952 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum102NotUsedOnWire,
18953 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum102NotUsedOnWire,
18954 : (ndr_print_function_t) ndr_print_lsa_Opnum102NotUsedOnWire,
18955 : { 0, NULL },
18956 : { 0, NULL },
18957 : },
18958 : {
18959 : "lsa_Opnum103NotUsedOnWire",
18960 : sizeof(struct lsa_Opnum103NotUsedOnWire),
18961 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum103NotUsedOnWire,
18962 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum103NotUsedOnWire,
18963 : (ndr_print_function_t) ndr_print_lsa_Opnum103NotUsedOnWire,
18964 : { 0, NULL },
18965 : { 0, NULL },
18966 : },
18967 : {
18968 : "lsa_Opnum104NotUsedOnWire",
18969 : sizeof(struct lsa_Opnum104NotUsedOnWire),
18970 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum104NotUsedOnWire,
18971 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum104NotUsedOnWire,
18972 : (ndr_print_function_t) ndr_print_lsa_Opnum104NotUsedOnWire,
18973 : { 0, NULL },
18974 : { 0, NULL },
18975 : },
18976 : {
18977 : "lsa_Opnum105NotUsedOnWire",
18978 : sizeof(struct lsa_Opnum105NotUsedOnWire),
18979 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum105NotUsedOnWire,
18980 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum105NotUsedOnWire,
18981 : (ndr_print_function_t) ndr_print_lsa_Opnum105NotUsedOnWire,
18982 : { 0, NULL },
18983 : { 0, NULL },
18984 : },
18985 : {
18986 : "lsa_Opnum106NotUsedOnWire",
18987 : sizeof(struct lsa_Opnum106NotUsedOnWire),
18988 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum106NotUsedOnWire,
18989 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum106NotUsedOnWire,
18990 : (ndr_print_function_t) ndr_print_lsa_Opnum106NotUsedOnWire,
18991 : { 0, NULL },
18992 : { 0, NULL },
18993 : },
18994 : {
18995 : "lsa_Opnum107NotUsedOnWire",
18996 : sizeof(struct lsa_Opnum107NotUsedOnWire),
18997 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum107NotUsedOnWire,
18998 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum107NotUsedOnWire,
18999 : (ndr_print_function_t) ndr_print_lsa_Opnum107NotUsedOnWire,
19000 : { 0, NULL },
19001 : { 0, NULL },
19002 : },
19003 : {
19004 : "lsa_Opnum108NotUsedOnWire",
19005 : sizeof(struct lsa_Opnum108NotUsedOnWire),
19006 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum108NotUsedOnWire,
19007 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum108NotUsedOnWire,
19008 : (ndr_print_function_t) ndr_print_lsa_Opnum108NotUsedOnWire,
19009 : { 0, NULL },
19010 : { 0, NULL },
19011 : },
19012 : {
19013 : "lsa_Opnum109NotUsedOnWire",
19014 : sizeof(struct lsa_Opnum109NotUsedOnWire),
19015 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum109NotUsedOnWire,
19016 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum109NotUsedOnWire,
19017 : (ndr_print_function_t) ndr_print_lsa_Opnum109NotUsedOnWire,
19018 : { 0, NULL },
19019 : { 0, NULL },
19020 : },
19021 : {
19022 : "lsa_Opnum110NotUsedOnWire",
19023 : sizeof(struct lsa_Opnum110NotUsedOnWire),
19024 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum110NotUsedOnWire,
19025 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum110NotUsedOnWire,
19026 : (ndr_print_function_t) ndr_print_lsa_Opnum110NotUsedOnWire,
19027 : { 0, NULL },
19028 : { 0, NULL },
19029 : },
19030 : {
19031 : "lsa_Opnum111NotUsedOnWire",
19032 : sizeof(struct lsa_Opnum111NotUsedOnWire),
19033 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum111NotUsedOnWire,
19034 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum111NotUsedOnWire,
19035 : (ndr_print_function_t) ndr_print_lsa_Opnum111NotUsedOnWire,
19036 : { 0, NULL },
19037 : { 0, NULL },
19038 : },
19039 : {
19040 : "lsa_Opnum112NotUsedOnWire",
19041 : sizeof(struct lsa_Opnum112NotUsedOnWire),
19042 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum112NotUsedOnWire,
19043 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum112NotUsedOnWire,
19044 : (ndr_print_function_t) ndr_print_lsa_Opnum112NotUsedOnWire,
19045 : { 0, NULL },
19046 : { 0, NULL },
19047 : },
19048 : {
19049 : "lsa_Opnum113NotUsedOnWire",
19050 : sizeof(struct lsa_Opnum113NotUsedOnWire),
19051 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum113NotUsedOnWire,
19052 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum113NotUsedOnWire,
19053 : (ndr_print_function_t) ndr_print_lsa_Opnum113NotUsedOnWire,
19054 : { 0, NULL },
19055 : { 0, NULL },
19056 : },
19057 : {
19058 : "lsa_Opnum114NotUsedOnWire",
19059 : sizeof(struct lsa_Opnum114NotUsedOnWire),
19060 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum114NotUsedOnWire,
19061 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum114NotUsedOnWire,
19062 : (ndr_print_function_t) ndr_print_lsa_Opnum114NotUsedOnWire,
19063 : { 0, NULL },
19064 : { 0, NULL },
19065 : },
19066 : {
19067 : "lsa_Opnum115NotUsedOnWire",
19068 : sizeof(struct lsa_Opnum115NotUsedOnWire),
19069 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum115NotUsedOnWire,
19070 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum115NotUsedOnWire,
19071 : (ndr_print_function_t) ndr_print_lsa_Opnum115NotUsedOnWire,
19072 : { 0, NULL },
19073 : { 0, NULL },
19074 : },
19075 : {
19076 : "lsa_Opnum116NotUsedOnWire",
19077 : sizeof(struct lsa_Opnum116NotUsedOnWire),
19078 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum116NotUsedOnWire,
19079 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum116NotUsedOnWire,
19080 : (ndr_print_function_t) ndr_print_lsa_Opnum116NotUsedOnWire,
19081 : { 0, NULL },
19082 : { 0, NULL },
19083 : },
19084 : {
19085 : "lsa_Opnum117NotUsedOnWire",
19086 : sizeof(struct lsa_Opnum117NotUsedOnWire),
19087 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum117NotUsedOnWire,
19088 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum117NotUsedOnWire,
19089 : (ndr_print_function_t) ndr_print_lsa_Opnum117NotUsedOnWire,
19090 : { 0, NULL },
19091 : { 0, NULL },
19092 : },
19093 : {
19094 : "lsa_Opnum118NotUsedOnWire",
19095 : sizeof(struct lsa_Opnum118NotUsedOnWire),
19096 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum118NotUsedOnWire,
19097 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum118NotUsedOnWire,
19098 : (ndr_print_function_t) ndr_print_lsa_Opnum118NotUsedOnWire,
19099 : { 0, NULL },
19100 : { 0, NULL },
19101 : },
19102 : {
19103 : "lsa_Opnum119NotUsedOnWire",
19104 : sizeof(struct lsa_Opnum119NotUsedOnWire),
19105 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum119NotUsedOnWire,
19106 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum119NotUsedOnWire,
19107 : (ndr_print_function_t) ndr_print_lsa_Opnum119NotUsedOnWire,
19108 : { 0, NULL },
19109 : { 0, NULL },
19110 : },
19111 : {
19112 : "lsa_Opnum120NotUsedOnWire",
19113 : sizeof(struct lsa_Opnum120NotUsedOnWire),
19114 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum120NotUsedOnWire,
19115 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum120NotUsedOnWire,
19116 : (ndr_print_function_t) ndr_print_lsa_Opnum120NotUsedOnWire,
19117 : { 0, NULL },
19118 : { 0, NULL },
19119 : },
19120 : {
19121 : "lsa_Opnum121NotUsedOnWire",
19122 : sizeof(struct lsa_Opnum121NotUsedOnWire),
19123 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum121NotUsedOnWire,
19124 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum121NotUsedOnWire,
19125 : (ndr_print_function_t) ndr_print_lsa_Opnum121NotUsedOnWire,
19126 : { 0, NULL },
19127 : { 0, NULL },
19128 : },
19129 : {
19130 : "lsa_Opnum122NotUsedOnWire",
19131 : sizeof(struct lsa_Opnum122NotUsedOnWire),
19132 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum122NotUsedOnWire,
19133 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum122NotUsedOnWire,
19134 : (ndr_print_function_t) ndr_print_lsa_Opnum122NotUsedOnWire,
19135 : { 0, NULL },
19136 : { 0, NULL },
19137 : },
19138 : {
19139 : "lsa_Opnum123NotUsedOnWire",
19140 : sizeof(struct lsa_Opnum123NotUsedOnWire),
19141 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum123NotUsedOnWire,
19142 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum123NotUsedOnWire,
19143 : (ndr_print_function_t) ndr_print_lsa_Opnum123NotUsedOnWire,
19144 : { 0, NULL },
19145 : { 0, NULL },
19146 : },
19147 : {
19148 : "lsa_Opnum124NotUsedOnWire",
19149 : sizeof(struct lsa_Opnum124NotUsedOnWire),
19150 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum124NotUsedOnWire,
19151 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum124NotUsedOnWire,
19152 : (ndr_print_function_t) ndr_print_lsa_Opnum124NotUsedOnWire,
19153 : { 0, NULL },
19154 : { 0, NULL },
19155 : },
19156 : {
19157 : "lsa_Opnum125NotUsedOnWire",
19158 : sizeof(struct lsa_Opnum125NotUsedOnWire),
19159 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum125NotUsedOnWire,
19160 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum125NotUsedOnWire,
19161 : (ndr_print_function_t) ndr_print_lsa_Opnum125NotUsedOnWire,
19162 : { 0, NULL },
19163 : { 0, NULL },
19164 : },
19165 : {
19166 : "lsa_Opnum126NotUsedOnWire",
19167 : sizeof(struct lsa_Opnum126NotUsedOnWire),
19168 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum126NotUsedOnWire,
19169 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum126NotUsedOnWire,
19170 : (ndr_print_function_t) ndr_print_lsa_Opnum126NotUsedOnWire,
19171 : { 0, NULL },
19172 : { 0, NULL },
19173 : },
19174 : {
19175 : "lsa_Opnum127NotUsedOnWire",
19176 : sizeof(struct lsa_Opnum127NotUsedOnWire),
19177 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum127NotUsedOnWire,
19178 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum127NotUsedOnWire,
19179 : (ndr_print_function_t) ndr_print_lsa_Opnum127NotUsedOnWire,
19180 : { 0, NULL },
19181 : { 0, NULL },
19182 : },
19183 : {
19184 : "lsa_Opnum128NotUsedOnWire",
19185 : sizeof(struct lsa_Opnum128NotUsedOnWire),
19186 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum128NotUsedOnWire,
19187 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum128NotUsedOnWire,
19188 : (ndr_print_function_t) ndr_print_lsa_Opnum128NotUsedOnWire,
19189 : { 0, NULL },
19190 : { 0, NULL },
19191 : },
19192 : {
19193 : "lsa_CreateTrustedDomainEx3",
19194 : sizeof(struct lsa_CreateTrustedDomainEx3),
19195 : (ndr_push_flags_fn_t) ndr_push_lsa_CreateTrustedDomainEx3,
19196 : (ndr_pull_flags_fn_t) ndr_pull_lsa_CreateTrustedDomainEx3,
19197 : (ndr_print_function_t) ndr_print_lsa_CreateTrustedDomainEx3,
19198 : { 0, NULL },
19199 : { 0, NULL },
19200 : },
19201 : {
19202 : "lsa_OpenPolicy3",
19203 : sizeof(struct lsa_OpenPolicy3),
19204 : (ndr_push_flags_fn_t) ndr_push_lsa_OpenPolicy3,
19205 : (ndr_pull_flags_fn_t) ndr_pull_lsa_OpenPolicy3,
19206 : (ndr_print_function_t) ndr_print_lsa_OpenPolicy3,
19207 : { 0, NULL },
19208 : { 0, NULL },
19209 : },
19210 : {
19211 : "lsa_Opnum131NotUsedOnWire",
19212 : sizeof(struct lsa_Opnum131NotUsedOnWire),
19213 : (ndr_push_flags_fn_t) ndr_push_lsa_Opnum131NotUsedOnWire,
19214 : (ndr_pull_flags_fn_t) ndr_pull_lsa_Opnum131NotUsedOnWire,
19215 : (ndr_print_function_t) ndr_print_lsa_Opnum131NotUsedOnWire,
19216 : { 0, NULL },
19217 : { 0, NULL },
19218 : },
19219 : {
19220 : "lsa_lsaRQueryForestTrustInformation2",
19221 : sizeof(struct lsa_lsaRQueryForestTrustInformation2),
19222 : (ndr_push_flags_fn_t) ndr_push_lsa_lsaRQueryForestTrustInformation2,
19223 : (ndr_pull_flags_fn_t) ndr_pull_lsa_lsaRQueryForestTrustInformation2,
19224 : (ndr_print_function_t) ndr_print_lsa_lsaRQueryForestTrustInformation2,
19225 : { 0, NULL },
19226 : { 0, NULL },
19227 : },
19228 : {
19229 : "lsa_lsaRSetForestTrustInformation2",
19230 : sizeof(struct lsa_lsaRSetForestTrustInformation2),
19231 : (ndr_push_flags_fn_t) ndr_push_lsa_lsaRSetForestTrustInformation2,
19232 : (ndr_pull_flags_fn_t) ndr_pull_lsa_lsaRSetForestTrustInformation2,
19233 : (ndr_print_function_t) ndr_print_lsa_lsaRSetForestTrustInformation2,
19234 : { 0, NULL },
19235 : { 0, NULL },
19236 : },
19237 : { .name = NULL }
19238 : };
19239 :
19240 : static const char * const lsarpc_endpoint_strings[] = {
19241 : "ncacn_np:[\\pipe\\lsarpc]",
19242 : "ncacn_np:[\\pipe\\lsass]",
19243 : "ncacn_ip_tcp:",
19244 : "ncalrpc:",
19245 : };
19246 :
19247 : static const struct ndr_interface_string_array lsarpc_endpoints = {
19248 : .count = 4,
19249 : .names = lsarpc_endpoint_strings
19250 : };
19251 :
19252 : static const char * const lsarpc_authservice_strings[] = {
19253 : "host",
19254 : };
19255 :
19256 : static const struct ndr_interface_string_array lsarpc_authservices = {
19257 : .count = 1,
19258 : .names = lsarpc_authservice_strings
19259 : };
19260 :
19261 :
19262 : const struct ndr_interface_table ndr_table_lsarpc = {
19263 : .name = "lsarpc",
19264 : .syntax_id = {
19265 : {0x12345778,0x1234,0xabcd,{0xef,0x00},{0x01,0x23,0x45,0x67,0x89,0xab}},
19266 : NDR_LSARPC_VERSION
19267 : },
19268 : .helpstring = NDR_LSARPC_HELPSTRING,
19269 : .num_calls = 134,
19270 : .calls = lsarpc_calls,
19271 : .num_public_structs = 16,
19272 : .public_structs = lsarpc_public_structs,
19273 : .endpoints = &lsarpc_endpoints,
19274 : .authservices = &lsarpc_authservices
19275 : };
19276 :
19277 : #endif /* SKIP_NDR_TABLE_lsarpc */
|