LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_eventlog.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 483 2342 20.6 %
Date: 2024-04-21 15:09:00 Functions: 22 112 19.6 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/librpc/gen_ndr/ndr_eventlog.h"
       5             : 
       6             : #include "librpc/gen_ndr/ndr_lsa.h"
       7             : #include "librpc/gen_ndr/ndr_security.h"
       8           4 : static enum ndr_err_code ndr_push_eventlogReadFlags(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
       9             : {
      10           4 :         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
      11           4 :         return NDR_ERR_SUCCESS;
      12             : }
      13             : 
      14           4 : static enum ndr_err_code ndr_pull_eventlogReadFlags(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
      15             : {
      16           0 :         uint32_t v;
      17           4 :         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
      18           4 :         *r = v;
      19           4 :         return NDR_ERR_SUCCESS;
      20             : }
      21             : 
      22           0 : _PUBLIC_ void ndr_print_eventlogReadFlags(struct ndr_print *ndr, const char *name, uint32_t r)
      23             : {
      24           0 :         ndr_print_uint32(ndr, name, r);
      25           0 :         ndr->depth++;
      26           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "EVENTLOG_SEQUENTIAL_READ", EVENTLOG_SEQUENTIAL_READ, r);
      27           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "EVENTLOG_SEEK_READ", EVENTLOG_SEEK_READ, r);
      28           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "EVENTLOG_FORWARDS_READ", EVENTLOG_FORWARDS_READ, r);
      29           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "EVENTLOG_BACKWARDS_READ", EVENTLOG_BACKWARDS_READ, r);
      30           0 :         ndr->depth--;
      31           0 : }
      32             : 
      33           4 : _PUBLIC_ enum ndr_err_code ndr_push_eventlogEventTypes(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum eventlogEventTypes r)
      34             : {
      35           4 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
      36           4 :         return NDR_ERR_SUCCESS;
      37             : }
      38             : 
      39           2 : _PUBLIC_ enum ndr_err_code ndr_pull_eventlogEventTypes(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum eventlogEventTypes *r)
      40             : {
      41           0 :         uint16_t v;
      42           2 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
      43           2 :         *r = v;
      44           2 :         return NDR_ERR_SUCCESS;
      45             : }
      46             : 
      47           0 : _PUBLIC_ void ndr_print_eventlogEventTypes(struct ndr_print *ndr, const char *name, enum eventlogEventTypes r)
      48             : {
      49           0 :         const char *val = NULL;
      50             : 
      51           0 :         switch (r) {
      52           0 :                 case EVENTLOG_SUCCESS: val = "EVENTLOG_SUCCESS"; break;
      53           0 :                 case EVENTLOG_ERROR_TYPE: val = "EVENTLOG_ERROR_TYPE"; break;
      54           0 :                 case EVENTLOG_WARNING_TYPE: val = "EVENTLOG_WARNING_TYPE"; break;
      55           0 :                 case EVENTLOG_INFORMATION_TYPE: val = "EVENTLOG_INFORMATION_TYPE"; break;
      56           0 :                 case EVENTLOG_AUDIT_SUCCESS: val = "EVENTLOG_AUDIT_SUCCESS"; break;
      57           0 :                 case EVENTLOG_AUDIT_FAILURE: val = "EVENTLOG_AUDIT_FAILURE"; break;
      58             :         }
      59           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
      60           0 : }
      61             : 
      62          24 : static enum ndr_err_code ndr_push_eventlog_OpenUnknown0(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct eventlog_OpenUnknown0 *r)
      63             : {
      64          24 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      65          24 :         if (ndr_flags & NDR_SCALARS) {
      66          24 :                 NDR_CHECK(ndr_push_align(ndr, 2));
      67          24 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->unknown0));
      68          24 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->unknown1));
      69          24 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 2));
      70             :         }
      71          24 :         if (ndr_flags & NDR_BUFFERS) {
      72           0 :         }
      73          24 :         return NDR_ERR_SUCCESS;
      74             : }
      75             : 
      76          24 : static enum ndr_err_code ndr_pull_eventlog_OpenUnknown0(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct eventlog_OpenUnknown0 *r)
      77             : {
      78          24 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      79          24 :         if (ndr_flags & NDR_SCALARS) {
      80          24 :                 NDR_CHECK(ndr_pull_align(ndr, 2));
      81          24 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->unknown0));
      82          24 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->unknown1));
      83          24 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
      84             :         }
      85          24 :         if (ndr_flags & NDR_BUFFERS) {
      86           0 :         }
      87          24 :         return NDR_ERR_SUCCESS;
      88             : }
      89             : 
      90           0 : _PUBLIC_ void ndr_print_eventlog_OpenUnknown0(struct ndr_print *ndr, const char *name, const struct eventlog_OpenUnknown0 *r)
      91             : {
      92           0 :         ndr_print_struct(ndr, name, "eventlog_OpenUnknown0");
      93           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
      94           0 :         ndr->depth++;
      95           0 :         ndr_print_uint16(ndr, "unknown0", r->unknown0);
      96           0 :         ndr_print_uint16(ndr, "unknown1", r->unknown1);
      97           0 :         ndr->depth--;
      98             : }
      99             : 
     100           2 : _PUBLIC_ enum ndr_err_code ndr_push_eventlog_Record_tdb(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct eventlog_Record_tdb *r)
     101             : {
     102           0 :         uint32_t cntr_strings_0;
     103             :         {
     104           2 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     105           2 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN|LIBNDR_PRINT_ARRAY_HEX);
     106           2 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     107           2 :                 if (ndr_flags & NDR_SCALARS) {
     108           2 :                         NDR_CHECK(ndr_push_align(ndr, 4));
     109           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->size));
     110           2 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, "eLfL", 4, sizeof(uint8_t), CH_DOS));
     111           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->record_number));
     112           2 :                         NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->time_generated));
     113           2 :                         NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->time_written));
     114           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->event_id));
     115           2 :                         NDR_CHECK(ndr_push_eventlogEventTypes(ndr, NDR_SCALARS, r->event_type));
     116           2 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->num_of_strings));
     117           2 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->event_category));
     118           2 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->reserved_flags));
     119           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->closing_record_number));
     120           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->stringoffset));
     121           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid.length));
     122           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_offset));
     123           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->data.length));
     124           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->data_offset));
     125           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 2 * strlen_m_term(r->source_name)));
     126             :                         {
     127           2 :                                 libndr_flags _flags_save_string = ndr->flags;
     128           2 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     129           2 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->source_name));
     130           2 :                                 ndr->flags = _flags_save_string;
     131             :                         }
     132           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 2 * strlen_m_term(r->computer_name)));
     133             :                         {
     134           2 :                                 libndr_flags _flags_save_string = ndr->flags;
     135           2 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     136           2 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->computer_name));
     137           2 :                                 ndr->flags = _flags_save_string;
     138             :                         }
     139           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sid_padding));
     140           2 :                         NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->sid));
     141           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 2 * ndr_size_string_array(r->strings, r->num_of_strings, LIBNDR_FLAG_STR_NULLTERM)));
     142             :                         {
     143           2 :                                 libndr_flags _flags_save_string = ndr->flags;
     144           2 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     145           4 :                                 for (cntr_strings_0 = 0; cntr_strings_0 < (r->num_of_strings); cntr_strings_0++) {
     146           2 :                                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->strings[cntr_strings_0]));
     147             :                                 }
     148           2 :                                 ndr->flags = _flags_save_string;
     149             :                         }
     150           2 :                         NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->data));
     151           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->padding));
     152           2 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     153             :                 }
     154           2 :                 if (ndr_flags & NDR_BUFFERS) {
     155           0 :                 }
     156           2 :                 ndr->flags = _flags_save_STRUCT;
     157             :         }
     158           2 :         return NDR_ERR_SUCCESS;
     159             : }
     160             : 
     161           0 : _PUBLIC_ enum ndr_err_code ndr_pull_eventlog_Record_tdb(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct eventlog_Record_tdb *r)
     162             : {
     163           0 :         uint32_t size_reserved_0 = 0;
     164           0 :         uint32_t size_strings_0 = 0;
     165           0 :         uint32_t cntr_strings_0;
     166           0 :         TALLOC_CTX *_mem_save_strings_0 = NULL;
     167             :         {
     168           0 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     169           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN|LIBNDR_PRINT_ARRAY_HEX);
     170           0 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     171           0 :                 if (ndr_flags & NDR_SCALARS) {
     172           0 :                         NDR_CHECK(ndr_pull_align(ndr, 4));
     173           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->size));
     174           0 :                         size_reserved_0 = 4;
     175           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->reserved, size_reserved_0, sizeof(uint8_t), CH_DOS));
     176           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->record_number));
     177           0 :                         NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->time_generated));
     178           0 :                         NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->time_written));
     179           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->event_id));
     180           0 :                         NDR_CHECK(ndr_pull_eventlogEventTypes(ndr, NDR_SCALARS, &r->event_type));
     181           0 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->num_of_strings));
     182           0 :                         if (r->num_of_strings > 256) {
     183           0 :                                 return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu16") out of range (%"PRIu16" - %"PRIu16")", (uint16_t)(r->num_of_strings), (uint16_t)(0), (uint16_t)(256));
     184             :                         }
     185           0 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->event_category));
     186           0 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->reserved_flags));
     187           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->closing_record_number));
     188           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->stringoffset));
     189           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_length));
     190           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_offset));
     191           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->data_length));
     192           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->data_offset));
     193           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->source_name_len));
     194             :                         {
     195           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     196           0 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     197           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->source_name));
     198           0 :                                 ndr->flags = _flags_save_string;
     199             :                         }
     200           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->computer_name_len));
     201             :                         {
     202           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     203           0 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     204           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->computer_name));
     205           0 :                                 ndr->flags = _flags_save_string;
     206             :                         }
     207           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sid_padding));
     208           0 :                         NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->sid));
     209           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->strings_len));
     210             :                         {
     211           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     212           0 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     213           0 :                                 size_strings_0 = r->num_of_strings;
     214           0 :                                 NDR_PULL_ALLOC_N(ndr, r->strings, size_strings_0);
     215           0 :                                 _mem_save_strings_0 = NDR_PULL_GET_MEM_CTX(ndr);
     216           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->strings, 0);
     217           0 :                                 for (cntr_strings_0 = 0; cntr_strings_0 < (size_strings_0); cntr_strings_0++) {
     218           0 :                                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->strings[cntr_strings_0]));
     219             :                                 }
     220           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_strings_0, 0);
     221           0 :                                 ndr->flags = _flags_save_string;
     222             :                         }
     223           0 :                         NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->data));
     224           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->padding));
     225           0 :                         NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     226             :                 }
     227           0 :                 if (ndr_flags & NDR_BUFFERS) {
     228           0 :                 }
     229           0 :                 ndr->flags = _flags_save_STRUCT;
     230             :         }
     231           0 :         return NDR_ERR_SUCCESS;
     232             : }
     233             : 
     234           0 : static void ndr_print_flags_eventlog_Record_tdb(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct eventlog_Record_tdb *r)
     235             : {
     236           0 :         ndr_print_eventlog_Record_tdb(ndr, name, r);
     237           0 : }
     238             : 
     239           0 : _PUBLIC_ void ndr_print_eventlog_Record_tdb(struct ndr_print *ndr, const char *name, const struct eventlog_Record_tdb *r)
     240             : {
     241           0 :         uint32_t cntr_strings_0;
     242           0 :         ndr_print_struct(ndr, name, "eventlog_Record_tdb");
     243           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     244             :         {
     245           0 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     246           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN|LIBNDR_PRINT_ARRAY_HEX);
     247           0 :                 ndr->depth++;
     248           0 :                 ndr_print_uint32(ndr, "size", r->size);
     249           0 :                 ndr_print_string(ndr, "reserved", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?"eLfL":r->reserved);
     250           0 :                 ndr_print_uint32(ndr, "record_number", r->record_number);
     251           0 :                 ndr_print_time_t(ndr, "time_generated", r->time_generated);
     252           0 :                 ndr_print_time_t(ndr, "time_written", r->time_written);
     253           0 :                 ndr_print_uint32(ndr, "event_id", r->event_id);
     254           0 :                 ndr_print_eventlogEventTypes(ndr, "event_type", r->event_type);
     255           0 :                 ndr_print_uint16(ndr, "num_of_strings", r->num_of_strings);
     256           0 :                 ndr_print_uint16(ndr, "event_category", r->event_category);
     257           0 :                 ndr_print_uint16(ndr, "reserved_flags", r->reserved_flags);
     258           0 :                 ndr_print_uint32(ndr, "closing_record_number", r->closing_record_number);
     259           0 :                 ndr_print_uint32(ndr, "stringoffset", r->stringoffset);
     260           0 :                 ndr_print_uint32(ndr, "sid_length", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?r->sid.length:r->sid_length);
     261           0 :                 ndr_print_uint32(ndr, "sid_offset", r->sid_offset);
     262           0 :                 ndr_print_uint32(ndr, "data_length", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?r->data.length:r->data_length);
     263           0 :                 ndr_print_uint32(ndr, "data_offset", r->data_offset);
     264           0 :                 ndr_print_uint32(ndr, "source_name_len", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?2 * strlen_m_term(r->source_name):r->source_name_len);
     265             :                 {
     266           0 :                         libndr_flags _flags_save_string = ndr->flags;
     267           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     268           0 :                         ndr_print_string(ndr, "source_name", r->source_name);
     269           0 :                         ndr->flags = _flags_save_string;
     270             :                 }
     271           0 :                 ndr_print_uint32(ndr, "computer_name_len", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?2 * strlen_m_term(r->computer_name):r->computer_name_len);
     272             :                 {
     273           0 :                         libndr_flags _flags_save_string = ndr->flags;
     274           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     275           0 :                         ndr_print_string(ndr, "computer_name", r->computer_name);
     276           0 :                         ndr->flags = _flags_save_string;
     277             :                 }
     278           0 :                 ndr_print_uint32(ndr, "sid_padding", r->sid_padding);
     279           0 :                 ndr_print_DATA_BLOB(ndr, "sid", r->sid);
     280           0 :                 ndr_print_uint32(ndr, "strings_len", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?2 * ndr_size_string_array(r->strings, r->num_of_strings, LIBNDR_FLAG_STR_NULLTERM):r->strings_len);
     281             :                 {
     282           0 :                         libndr_flags _flags_save_string = ndr->flags;
     283           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     284           0 :                         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "strings", (uint32_t)(r->num_of_strings));
     285           0 :                         ndr->depth++;
     286           0 :                         for (cntr_strings_0 = 0; cntr_strings_0 < (r->num_of_strings); cntr_strings_0++) {
     287           0 :                                 ndr_print_string(ndr, "strings", r->strings[cntr_strings_0]);
     288             :                         }
     289           0 :                         ndr->depth--;
     290           0 :                         ndr->flags = _flags_save_string;
     291             :                 }
     292           0 :                 ndr_print_DATA_BLOB(ndr, "data", r->data);
     293           0 :                 ndr_print_uint32(ndr, "padding", r->padding);
     294           0 :                 ndr->depth--;
     295           0 :                 ndr->flags = _flags_save_STRUCT;
     296             :         }
     297             : }
     298             : 
     299           0 : static enum ndr_err_code ndr_push_EVENTLOG_HEADER_FLAGS(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum EVENTLOG_HEADER_FLAGS r)
     300             : {
     301           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
     302           0 :         return NDR_ERR_SUCCESS;
     303             : }
     304             : 
     305           0 : static enum ndr_err_code ndr_pull_EVENTLOG_HEADER_FLAGS(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum EVENTLOG_HEADER_FLAGS *r)
     306             : {
     307           0 :         uint32_t v;
     308           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
     309           0 :         *r = v;
     310           0 :         return NDR_ERR_SUCCESS;
     311             : }
     312             : 
     313           0 : _PUBLIC_ void ndr_print_EVENTLOG_HEADER_FLAGS(struct ndr_print *ndr, const char *name, enum EVENTLOG_HEADER_FLAGS r)
     314             : {
     315           0 :         const char *val = NULL;
     316             : 
     317           0 :         switch (r) {
     318           0 :                 case ELF_LOGFILE_HEADER_DIRTY: val = "ELF_LOGFILE_HEADER_DIRTY"; break;
     319           0 :                 case ELF_LOGFILE_HEADER_WRAP: val = "ELF_LOGFILE_HEADER_WRAP"; break;
     320           0 :                 case ELF_LOGFILE_LOGFULL_WRITTEN: val = "ELF_LOGFILE_LOGFULL_WRITTEN"; break;
     321           0 :                 case ELF_LOGFILE_ARCHIVE_SET: val = "ELF_LOGFILE_ARCHIVE_SET"; break;
     322             :         }
     323           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     324           0 : }
     325             : 
     326           0 : _PUBLIC_ enum ndr_err_code ndr_push_EVENTLOGHEADER(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct EVENTLOGHEADER *r)
     327             : {
     328           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     329           0 :         if (ndr_flags & NDR_SCALARS) {
     330           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     331           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x30));
     332           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, "LfLe", 4, sizeof(uint8_t), CH_DOS));
     333           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 1));
     334           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 1));
     335           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->StartOffset));
     336           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->EndOffset));
     337           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->CurrentRecordNumber));
     338           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->OldestRecordNumber));
     339           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->MaxSize));
     340           0 :                 NDR_CHECK(ndr_push_EVENTLOG_HEADER_FLAGS(ndr, NDR_SCALARS, r->Flags));
     341           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->Retention));
     342           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x30));
     343           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     344             :         }
     345           0 :         if (ndr_flags & NDR_BUFFERS) {
     346           0 :         }
     347           0 :         return NDR_ERR_SUCCESS;
     348             : }
     349             : 
     350           0 : _PUBLIC_ enum ndr_err_code ndr_pull_EVENTLOGHEADER(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct EVENTLOGHEADER *r)
     351             : {
     352           0 :         uint32_t size_Signature_0 = 0;
     353           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     354           0 :         if (ndr_flags & NDR_SCALARS) {
     355           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     356           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->HeaderSize));
     357           0 :                 size_Signature_0 = 4;
     358           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Signature, size_Signature_0, sizeof(uint8_t), CH_DOS));
     359           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->MajorVersion));
     360           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->MinorVersion));
     361           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->StartOffset));
     362           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->EndOffset));
     363           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->CurrentRecordNumber));
     364           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->OldestRecordNumber));
     365           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->MaxSize));
     366           0 :                 NDR_CHECK(ndr_pull_EVENTLOG_HEADER_FLAGS(ndr, NDR_SCALARS, &r->Flags));
     367           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->Retention));
     368           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->EndHeaderSize));
     369           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     370             :         }
     371           0 :         if (ndr_flags & NDR_BUFFERS) {
     372           0 :         }
     373           0 :         return NDR_ERR_SUCCESS;
     374             : }
     375             : 
     376           0 : static void ndr_print_flags_EVENTLOGHEADER(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct EVENTLOGHEADER *r)
     377             : {
     378           0 :         ndr_print_EVENTLOGHEADER(ndr, name, r);
     379           0 : }
     380             : 
     381           0 : _PUBLIC_ void ndr_print_EVENTLOGHEADER(struct ndr_print *ndr, const char *name, const struct EVENTLOGHEADER *r)
     382             : {
     383           0 :         ndr_print_struct(ndr, name, "EVENTLOGHEADER");
     384           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     385           0 :         ndr->depth++;
     386           0 :         ndr_print_uint32(ndr, "HeaderSize", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x30:r->HeaderSize);
     387           0 :         ndr_print_string(ndr, "Signature", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?"LfLe":r->Signature);
     388           0 :         ndr_print_uint32(ndr, "MajorVersion", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?1:r->MajorVersion);
     389           0 :         ndr_print_uint32(ndr, "MinorVersion", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?1:r->MinorVersion);
     390           0 :         ndr_print_uint32(ndr, "StartOffset", r->StartOffset);
     391           0 :         ndr_print_uint32(ndr, "EndOffset", r->EndOffset);
     392           0 :         ndr_print_uint32(ndr, "CurrentRecordNumber", r->CurrentRecordNumber);
     393           0 :         ndr_print_uint32(ndr, "OldestRecordNumber", r->OldestRecordNumber);
     394           0 :         ndr_print_uint32(ndr, "MaxSize", r->MaxSize);
     395           0 :         ndr_print_EVENTLOG_HEADER_FLAGS(ndr, "Flags", r->Flags);
     396           0 :         ndr_print_uint32(ndr, "Retention", r->Retention);
     397           0 :         ndr_print_uint32(ndr, "EndHeaderSize", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x30:r->EndHeaderSize);
     398           0 :         ndr->depth--;
     399             : }
     400             : 
     401           0 : _PUBLIC_ enum ndr_err_code ndr_push_EVENTLOGRECORD(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct EVENTLOGRECORD *r)
     402             : {
     403           0 :         uint32_t cntr_Strings_0;
     404           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     405           0 :         if (ndr_flags & NDR_SCALARS) {
     406           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     407           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->Length));
     408           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, "LfLe", 4, sizeof(uint8_t), CH_DOS));
     409           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->RecordNumber));
     410           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->TimeGenerated));
     411           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->TimeWritten));
     412           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->EventID));
     413           0 :                 NDR_CHECK(ndr_push_eventlogEventTypes(ndr, NDR_SCALARS, r->EventType));
     414           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->NumStrings));
     415           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->EventCategory));
     416           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->ReservedFlags));
     417           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->ClosingRecordNumber));
     418           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 56 + 2 * (strlen_m_term(r->SourceName) + strlen_m_term(r->Computername)) + ndr_size_dom_sid0(&r->UserSid, ndr->flags)));
     419           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_size_dom_sid0(&r->UserSid, ndr->flags)));
     420           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 56 + 2 * (strlen_m_term(r->SourceName) + strlen_m_term(r->Computername))));
     421           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->DataLength));
     422           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 56 + 2 * (strlen_m_term(r->SourceName) + strlen_m_term(r->Computername)) + ndr_size_dom_sid0(&r->UserSid, ndr->flags) + (2 * ndr_size_string_array(r->Strings, r->NumStrings, LIBNDR_FLAG_STR_NULLTERM))));
     423             :                 {
     424           0 :                         libndr_flags _flags_save_string = ndr->flags;
     425           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     426           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->SourceName));
     427           0 :                         ndr->flags = _flags_save_string;
     428             :                 }
     429             :                 {
     430           0 :                         libndr_flags _flags_save_string = ndr->flags;
     431           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     432           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->Computername));
     433           0 :                         ndr->flags = _flags_save_string;
     434             :                 }
     435             :                 {
     436           0 :                         libndr_flags _flags_save_dom_sid0 = ndr->flags;
     437           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
     438             :                         {
     439           0 :                                 struct ndr_push *_ndr_UserSid;
     440           0 :                                 NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_UserSid, 0, ndr_size_dom_sid0(&r->UserSid, ndr->flags)));
     441           0 :                                 NDR_CHECK(ndr_push_dom_sid0(_ndr_UserSid, NDR_SCALARS|NDR_BUFFERS, &r->UserSid));
     442           0 :                                 NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_UserSid, 0, ndr_size_dom_sid0(&r->UserSid, ndr->flags)));
     443             :                         }
     444           0 :                         ndr->flags = _flags_save_dom_sid0;
     445             :                 }
     446             :                 {
     447           0 :                         libndr_flags _flags_save_string = ndr->flags;
     448           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     449           0 :                         for (cntr_Strings_0 = 0; cntr_Strings_0 < (r->NumStrings); cntr_Strings_0++) {
     450           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->Strings[cntr_Strings_0]));
     451             :                         }
     452           0 :                         ndr->flags = _flags_save_string;
     453             :                 }
     454             :                 {
     455           0 :                         libndr_flags _flags_save_uint8 = ndr->flags;
     456           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
     457           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->Data, r->DataLength));
     458           0 :                         ndr->flags = _flags_save_uint8;
     459             :                 }
     460             :                 {
     461           0 :                         libndr_flags _flags_save_string = ndr->flags;
     462           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     463           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->Pad));
     464           0 :                         ndr->flags = _flags_save_string;
     465             :                 }
     466           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->Length));
     467           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     468             :         }
     469           0 :         if (ndr_flags & NDR_BUFFERS) {
     470             :                 {
     471           0 :                         libndr_flags _flags_save_dom_sid0 = ndr->flags;
     472           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
     473           0 :                         ndr->flags = _flags_save_dom_sid0;
     474             :                 }
     475             :         }
     476           0 :         return NDR_ERR_SUCCESS;
     477             : }
     478             : 
     479           0 : _PUBLIC_ enum ndr_err_code ndr_pull_EVENTLOGRECORD(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct EVENTLOGRECORD *r)
     480             : {
     481           0 :         uint32_t size_Reserved_0 = 0;
     482           0 :         uint32_t size_Strings_0 = 0;
     483           0 :         uint32_t cntr_Strings_0;
     484           0 :         TALLOC_CTX *_mem_save_Strings_0 = NULL;
     485           0 :         uint32_t size_Data_0 = 0;
     486           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     487           0 :         if (ndr_flags & NDR_SCALARS) {
     488           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     489           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->Length));
     490           0 :                 size_Reserved_0 = 4;
     491           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Reserved, size_Reserved_0, sizeof(uint8_t), CH_DOS));
     492           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->RecordNumber));
     493           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->TimeGenerated));
     494           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->TimeWritten));
     495           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->EventID));
     496           0 :                 NDR_CHECK(ndr_pull_eventlogEventTypes(ndr, NDR_SCALARS, &r->EventType));
     497           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->NumStrings));
     498           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->EventCategory));
     499           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->ReservedFlags));
     500           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->ClosingRecordNumber));
     501           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->StringOffset));
     502           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->UserSidLength));
     503           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->UserSidOffset));
     504           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->DataLength));
     505           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->DataOffset));
     506             :                 {
     507           0 :                         libndr_flags _flags_save_string = ndr->flags;
     508           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     509           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->SourceName));
     510           0 :                         ndr->flags = _flags_save_string;
     511             :                 }
     512             :                 {
     513           0 :                         libndr_flags _flags_save_string = ndr->flags;
     514           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     515           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->Computername));
     516           0 :                         ndr->flags = _flags_save_string;
     517             :                 }
     518             :                 {
     519           0 :                         libndr_flags _flags_save_dom_sid0 = ndr->flags;
     520           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
     521             :                         {
     522           0 :                                 struct ndr_pull *_ndr_UserSid;
     523           0 :                                 ssize_t sub_size = r->UserSidLength;
     524           0 :                                 NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_UserSid, 0, sub_size));
     525           0 :                                 NDR_CHECK(ndr_pull_dom_sid0(_ndr_UserSid, NDR_SCALARS|NDR_BUFFERS, &r->UserSid));
     526           0 :                                 NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_UserSid, 0, sub_size));
     527             :                         }
     528           0 :                         ndr->flags = _flags_save_dom_sid0;
     529             :                 }
     530             :                 {
     531           0 :                         libndr_flags _flags_save_string = ndr->flags;
     532           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     533           0 :                         size_Strings_0 = r->NumStrings;
     534           0 :                         NDR_PULL_ALLOC_N(ndr, r->Strings, size_Strings_0);
     535           0 :                         _mem_save_Strings_0 = NDR_PULL_GET_MEM_CTX(ndr);
     536           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->Strings, 0);
     537           0 :                         for (cntr_Strings_0 = 0; cntr_Strings_0 < (size_Strings_0); cntr_Strings_0++) {
     538           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->Strings[cntr_Strings_0]));
     539             :                         }
     540           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Strings_0, 0);
     541           0 :                         ndr->flags = _flags_save_string;
     542             :                 }
     543             :                 {
     544           0 :                         libndr_flags _flags_save_uint8 = ndr->flags;
     545           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
     546           0 :                         size_Data_0 = r->DataLength;
     547           0 :                         NDR_PULL_ALLOC_N(ndr, r->Data, size_Data_0);
     548           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->Data, size_Data_0));
     549           0 :                         ndr->flags = _flags_save_uint8;
     550             :                 }
     551             :                 {
     552           0 :                         libndr_flags _flags_save_string = ndr->flags;
     553           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     554           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->Pad));
     555           0 :                         ndr->flags = _flags_save_string;
     556             :                 }
     557           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->Length2));
     558           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     559             :         }
     560           0 :         if (ndr_flags & NDR_BUFFERS) {
     561             :                 {
     562           0 :                         libndr_flags _flags_save_dom_sid0 = ndr->flags;
     563           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
     564           0 :                         ndr->flags = _flags_save_dom_sid0;
     565             :                 }
     566             :         }
     567           0 :         return NDR_ERR_SUCCESS;
     568             : }
     569             : 
     570           0 : static void ndr_print_flags_EVENTLOGRECORD(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct EVENTLOGRECORD *r)
     571             : {
     572           0 :         ndr_print_EVENTLOGRECORD(ndr, name, r);
     573           0 : }
     574             : 
     575           0 : _PUBLIC_ void ndr_print_EVENTLOGRECORD(struct ndr_print *ndr, const char *name, const struct EVENTLOGRECORD *r)
     576             : {
     577           0 :         uint32_t cntr_Strings_0;
     578           0 :         ndr_print_struct(ndr, name, "EVENTLOGRECORD");
     579           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     580           0 :         ndr->depth++;
     581           0 :         ndr_print_uint32(ndr, "Length", r->Length);
     582           0 :         ndr_print_string(ndr, "Reserved", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?"LfLe":r->Reserved);
     583           0 :         ndr_print_uint32(ndr, "RecordNumber", r->RecordNumber);
     584           0 :         ndr_print_time_t(ndr, "TimeGenerated", r->TimeGenerated);
     585           0 :         ndr_print_time_t(ndr, "TimeWritten", r->TimeWritten);
     586           0 :         ndr_print_uint32(ndr, "EventID", r->EventID);
     587           0 :         ndr_print_eventlogEventTypes(ndr, "EventType", r->EventType);
     588           0 :         ndr_print_uint16(ndr, "NumStrings", r->NumStrings);
     589           0 :         ndr_print_uint16(ndr, "EventCategory", r->EventCategory);
     590           0 :         ndr_print_uint16(ndr, "ReservedFlags", r->ReservedFlags);
     591           0 :         ndr_print_uint32(ndr, "ClosingRecordNumber", r->ClosingRecordNumber);
     592           0 :         ndr_print_uint32(ndr, "StringOffset", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?56 + 2 * (strlen_m_term(r->SourceName) + strlen_m_term(r->Computername)) + r->UserSidLength:r->StringOffset);
     593           0 :         ndr_print_uint32(ndr, "UserSidLength", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?ndr_size_dom_sid0(&r->UserSid, ndr->flags):r->UserSidLength);
     594           0 :         ndr_print_uint32(ndr, "UserSidOffset", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?56 + 2 * (strlen_m_term(r->SourceName) + strlen_m_term(r->Computername)):r->UserSidOffset);
     595           0 :         ndr_print_uint32(ndr, "DataLength", r->DataLength);
     596           0 :         ndr_print_uint32(ndr, "DataOffset", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?56 + 2 * (strlen_m_term(r->SourceName) + strlen_m_term(r->Computername)) + r->UserSidLength + (2 * ndr_size_string_array(r->Strings, r->NumStrings, LIBNDR_FLAG_STR_NULLTERM)):r->DataOffset);
     597             :         {
     598           0 :                 libndr_flags _flags_save_string = ndr->flags;
     599           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     600           0 :                 ndr_print_string(ndr, "SourceName", r->SourceName);
     601           0 :                 ndr->flags = _flags_save_string;
     602             :         }
     603             :         {
     604           0 :                 libndr_flags _flags_save_string = ndr->flags;
     605           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     606           0 :                 ndr_print_string(ndr, "Computername", r->Computername);
     607           0 :                 ndr->flags = _flags_save_string;
     608             :         }
     609             :         {
     610           0 :                 libndr_flags _flags_save_dom_sid0 = ndr->flags;
     611           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
     612           0 :                 ndr_print_dom_sid0(ndr, "UserSid", &r->UserSid);
     613           0 :                 ndr->flags = _flags_save_dom_sid0;
     614             :         }
     615             :         {
     616           0 :                 libndr_flags _flags_save_string = ndr->flags;
     617           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     618           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "Strings", (uint32_t)(r->NumStrings));
     619           0 :                 ndr->depth++;
     620           0 :                 for (cntr_Strings_0 = 0; cntr_Strings_0 < (r->NumStrings); cntr_Strings_0++) {
     621           0 :                         ndr_print_string(ndr, "Strings", r->Strings[cntr_Strings_0]);
     622             :                 }
     623           0 :                 ndr->depth--;
     624           0 :                 ndr->flags = _flags_save_string;
     625             :         }
     626             :         {
     627           0 :                 libndr_flags _flags_save_uint8 = ndr->flags;
     628           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
     629           0 :                 ndr_print_array_uint8(ndr, "Data", r->Data, r->DataLength);
     630           0 :                 ndr->flags = _flags_save_uint8;
     631             :         }
     632             :         {
     633           0 :                 libndr_flags _flags_save_string = ndr->flags;
     634           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     635           0 :                 ndr_print_string(ndr, "Pad", r->Pad);
     636           0 :                 ndr->flags = _flags_save_string;
     637             :         }
     638           0 :         ndr_print_uint32(ndr, "Length2", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?r->Length:r->Length2);
     639           0 :         ndr->depth--;
     640             : }
     641             : 
     642           0 : _PUBLIC_ size_t ndr_size_EVENTLOGRECORD(const struct EVENTLOGRECORD *r, libndr_flags flags)
     643             : {
     644           0 :         return ndr_size_struct(r, flags, (ndr_push_flags_fn_t)ndr_push_EVENTLOGRECORD);
     645             : }
     646             : 
     647           0 : _PUBLIC_ enum ndr_err_code ndr_push_EVENTLOGEOF(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct EVENTLOGEOF *r)
     648             : {
     649           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     650           0 :         if (ndr_flags & NDR_SCALARS) {
     651           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     652           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x28));
     653           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x11111111));
     654           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x22222222));
     655           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x33333333));
     656           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x44444444));
     657           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->BeginRecord));
     658           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->EndRecord));
     659           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->CurrentRecordNumber));
     660           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->OldestRecordNumber));
     661           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x28));
     662           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     663             :         }
     664           0 :         if (ndr_flags & NDR_BUFFERS) {
     665           0 :         }
     666           0 :         return NDR_ERR_SUCCESS;
     667             : }
     668             : 
     669           0 : _PUBLIC_ enum ndr_err_code ndr_pull_EVENTLOGEOF(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct EVENTLOGEOF *r)
     670             : {
     671           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     672           0 :         if (ndr_flags & NDR_SCALARS) {
     673           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     674           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->RecordSizeBeginning));
     675           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->One));
     676           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->Two));
     677           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->Three));
     678           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->Four));
     679           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->BeginRecord));
     680           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->EndRecord));
     681           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->CurrentRecordNumber));
     682           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->OldestRecordNumber));
     683           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->RecordSizeEnd));
     684           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     685             :         }
     686           0 :         if (ndr_flags & NDR_BUFFERS) {
     687           0 :         }
     688           0 :         return NDR_ERR_SUCCESS;
     689             : }
     690             : 
     691           0 : static void ndr_print_flags_EVENTLOGEOF(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct EVENTLOGEOF *r)
     692             : {
     693           0 :         ndr_print_EVENTLOGEOF(ndr, name, r);
     694           0 : }
     695             : 
     696           0 : _PUBLIC_ void ndr_print_EVENTLOGEOF(struct ndr_print *ndr, const char *name, const struct EVENTLOGEOF *r)
     697             : {
     698           0 :         ndr_print_struct(ndr, name, "EVENTLOGEOF");
     699           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     700           0 :         ndr->depth++;
     701           0 :         ndr_print_uint32(ndr, "RecordSizeBeginning", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x28:r->RecordSizeBeginning);
     702           0 :         ndr_print_uint32(ndr, "One", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x11111111:r->One);
     703           0 :         ndr_print_uint32(ndr, "Two", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x22222222:r->Two);
     704           0 :         ndr_print_uint32(ndr, "Three", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x33333333:r->Three);
     705           0 :         ndr_print_uint32(ndr, "Four", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x44444444:r->Four);
     706           0 :         ndr_print_uint32(ndr, "BeginRecord", r->BeginRecord);
     707           0 :         ndr_print_uint32(ndr, "EndRecord", r->EndRecord);
     708           0 :         ndr_print_uint32(ndr, "CurrentRecordNumber", r->CurrentRecordNumber);
     709           0 :         ndr_print_uint32(ndr, "OldestRecordNumber", r->OldestRecordNumber);
     710           0 :         ndr_print_uint32(ndr, "RecordSizeEnd", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?0x28:r->RecordSizeEnd);
     711           0 :         ndr->depth--;
     712             : }
     713             : 
     714           0 : _PUBLIC_ enum ndr_err_code ndr_push_EVENTLOG_EVT_FILE(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct EVENTLOG_EVT_FILE *r)
     715             : {
     716           0 :         uint32_t cntr_records_0;
     717           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     718           0 :         if (ndr_flags & NDR_SCALARS) {
     719           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     720           0 :                 NDR_CHECK(ndr_push_EVENTLOGHEADER(ndr, NDR_SCALARS, &r->hdr));
     721           0 :                 for (cntr_records_0 = 0; cntr_records_0 < (r->hdr.CurrentRecordNumber - r->hdr.OldestRecordNumber); cntr_records_0++) {
     722           0 :                         NDR_CHECK(ndr_push_EVENTLOGRECORD(ndr, NDR_SCALARS, &r->records[cntr_records_0]));
     723             :                 }
     724           0 :                 NDR_CHECK(ndr_push_EVENTLOGEOF(ndr, NDR_SCALARS, &r->eof));
     725           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     726             :         }
     727           0 :         if (ndr_flags & NDR_BUFFERS) {
     728           0 :                 for (cntr_records_0 = 0; cntr_records_0 < (r->hdr.CurrentRecordNumber - r->hdr.OldestRecordNumber); cntr_records_0++) {
     729           0 :                         NDR_CHECK(ndr_push_EVENTLOGRECORD(ndr, NDR_BUFFERS, &r->records[cntr_records_0]));
     730             :                 }
     731             :         }
     732           0 :         return NDR_ERR_SUCCESS;
     733             : }
     734             : 
     735           0 : _PUBLIC_ enum ndr_err_code ndr_pull_EVENTLOG_EVT_FILE(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct EVENTLOG_EVT_FILE *r)
     736             : {
     737           0 :         uint32_t size_records_0 = 0;
     738           0 :         uint32_t cntr_records_0;
     739           0 :         TALLOC_CTX *_mem_save_records_0 = NULL;
     740           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     741           0 :         if (ndr_flags & NDR_SCALARS) {
     742           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     743           0 :                 NDR_CHECK(ndr_pull_EVENTLOGHEADER(ndr, NDR_SCALARS, &r->hdr));
     744           0 :                 size_records_0 = r->hdr.CurrentRecordNumber - r->hdr.OldestRecordNumber;
     745           0 :                 NDR_PULL_ALLOC_N(ndr, r->records, size_records_0);
     746           0 :                 _mem_save_records_0 = NDR_PULL_GET_MEM_CTX(ndr);
     747           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->records, 0);
     748           0 :                 for (cntr_records_0 = 0; cntr_records_0 < (size_records_0); cntr_records_0++) {
     749           0 :                         NDR_CHECK(ndr_pull_EVENTLOGRECORD(ndr, NDR_SCALARS, &r->records[cntr_records_0]));
     750             :                 }
     751           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_records_0, 0);
     752           0 :                 NDR_CHECK(ndr_pull_EVENTLOGEOF(ndr, NDR_SCALARS, &r->eof));
     753           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     754             :         }
     755           0 :         if (ndr_flags & NDR_BUFFERS) {
     756           0 :                 size_records_0 = r->hdr.CurrentRecordNumber - r->hdr.OldestRecordNumber;
     757           0 :                 _mem_save_records_0 = NDR_PULL_GET_MEM_CTX(ndr);
     758           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->records, 0);
     759           0 :                 for (cntr_records_0 = 0; cntr_records_0 < (size_records_0); cntr_records_0++) {
     760           0 :                         NDR_CHECK(ndr_pull_EVENTLOGRECORD(ndr, NDR_BUFFERS, &r->records[cntr_records_0]));
     761             :                 }
     762           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_records_0, 0);
     763           0 :                 for (cntr_records_0 = 0; cntr_records_0 < (size_records_0); cntr_records_0++) {
     764             :                 }
     765             :         }
     766           0 :         return NDR_ERR_SUCCESS;
     767             : }
     768             : 
     769           0 : static void ndr_print_flags_EVENTLOG_EVT_FILE(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct EVENTLOG_EVT_FILE *r)
     770             : {
     771           0 :         ndr_print_EVENTLOG_EVT_FILE(ndr, name, r);
     772           0 : }
     773             : 
     774           0 : _PUBLIC_ void ndr_print_EVENTLOG_EVT_FILE(struct ndr_print *ndr, const char *name, const struct EVENTLOG_EVT_FILE *r)
     775             : {
     776           0 :         uint32_t cntr_records_0;
     777           0 :         ndr_print_struct(ndr, name, "EVENTLOG_EVT_FILE");
     778           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     779           0 :         ndr->depth++;
     780           0 :         ndr_print_EVENTLOGHEADER(ndr, "hdr", &r->hdr);
     781           0 :         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "records", (uint32_t)(r->hdr.CurrentRecordNumber - r->hdr.OldestRecordNumber));
     782           0 :         ndr->depth++;
     783           0 :         for (cntr_records_0 = 0; cntr_records_0 < (r->hdr.CurrentRecordNumber - r->hdr.OldestRecordNumber); cntr_records_0++) {
     784           0 :                 ndr_print_EVENTLOGRECORD(ndr, "records", &r->records[cntr_records_0]);
     785             :         }
     786           0 :         ndr->depth--;
     787           0 :         ndr_print_EVENTLOGEOF(ndr, "eof", &r->eof);
     788           0 :         ndr->depth--;
     789             : }
     790             : 
     791           2 : _PUBLIC_ enum ndr_err_code ndr_push_EVENTLOG_FULL_INFORMATION(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct EVENTLOG_FULL_INFORMATION *r)
     792             : {
     793           2 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     794           2 :         if (ndr_flags & NDR_SCALARS) {
     795           2 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     796           2 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->full));
     797           2 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     798             :         }
     799           2 :         if (ndr_flags & NDR_BUFFERS) {
     800           0 :         }
     801           2 :         return NDR_ERR_SUCCESS;
     802             : }
     803             : 
     804           0 : _PUBLIC_ enum ndr_err_code ndr_pull_EVENTLOG_FULL_INFORMATION(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct EVENTLOG_FULL_INFORMATION *r)
     805             : {
     806           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     807           0 :         if (ndr_flags & NDR_SCALARS) {
     808           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     809           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->full));
     810           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     811             :         }
     812           0 :         if (ndr_flags & NDR_BUFFERS) {
     813           0 :         }
     814           0 :         return NDR_ERR_SUCCESS;
     815             : }
     816             : 
     817           0 : static void ndr_print_flags_EVENTLOG_FULL_INFORMATION(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct EVENTLOG_FULL_INFORMATION *r)
     818             : {
     819           0 :         ndr_print_EVENTLOG_FULL_INFORMATION(ndr, name, r);
     820           0 : }
     821             : 
     822           0 : _PUBLIC_ void ndr_print_EVENTLOG_FULL_INFORMATION(struct ndr_print *ndr, const char *name, const struct EVENTLOG_FULL_INFORMATION *r)
     823             : {
     824           0 :         ndr_print_struct(ndr, name, "EVENTLOG_FULL_INFORMATION");
     825           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     826           0 :         ndr->depth++;
     827           0 :         ndr_print_uint32(ndr, "full", r->full);
     828           0 :         ndr->depth--;
     829             : }
     830             : 
     831           0 : static enum ndr_err_code ndr_push_eventlog_ClearEventLogW(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_ClearEventLogW *r)
     832             : {
     833           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     834           0 :         if (flags & NDR_IN) {
     835           0 :                 if (r->in.handle == NULL) {
     836           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     837             :                 }
     838           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
     839           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.backupfile));
     840           0 :                 if (r->in.backupfile) {
     841           0 :                         NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.backupfile));
     842             :                 }
     843             :         }
     844           0 :         if (flags & NDR_OUT) {
     845           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
     846             :         }
     847           0 :         return NDR_ERR_SUCCESS;
     848             : }
     849             : 
     850           0 : static enum ndr_err_code ndr_pull_eventlog_ClearEventLogW(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_ClearEventLogW *r)
     851             : {
     852           0 :         uint32_t _ptr_backupfile;
     853           0 :         TALLOC_CTX *_mem_save_handle_0 = NULL;
     854           0 :         TALLOC_CTX *_mem_save_backupfile_0 = NULL;
     855           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     856           0 :         if (flags & NDR_IN) {
     857           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     858           0 :                         NDR_PULL_ALLOC(ndr, r->in.handle);
     859             :                 }
     860           0 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
     861           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
     862           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
     863           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
     864           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_backupfile));
     865           0 :                 if (_ptr_backupfile) {
     866           0 :                         NDR_PULL_ALLOC(ndr, r->in.backupfile);
     867             :                 } else {
     868           0 :                         r->in.backupfile = NULL;
     869             :                 }
     870           0 :                 if (r->in.backupfile) {
     871           0 :                         _mem_save_backupfile_0 = NDR_PULL_GET_MEM_CTX(ndr);
     872           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.backupfile, 0);
     873           0 :                         NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.backupfile));
     874           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_backupfile_0, 0);
     875             :                 }
     876             :         }
     877           0 :         if (flags & NDR_OUT) {
     878             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     879             :                 if (r->in.handle == NULL) {
     880             :                         NDR_PULL_ALLOC(ndr, r->in.handle);
     881             :                         NDR_ZERO_STRUCTP(r->in.handle);
     882             :                 }
     883             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     884           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
     885             :         }
     886           0 :         return NDR_ERR_SUCCESS;
     887             : }
     888             : 
     889           0 : _PUBLIC_ void ndr_print_eventlog_ClearEventLogW(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_ClearEventLogW *r)
     890             : {
     891           0 :         ndr_print_struct(ndr, name, "eventlog_ClearEventLogW");
     892           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     893           0 :         ndr->depth++;
     894           0 :         if (flags & NDR_SET_VALUES) {
     895           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     896             :         }
     897           0 :         if (flags & NDR_IN) {
     898           0 :                 ndr_print_struct(ndr, "in", "eventlog_ClearEventLogW");
     899           0 :                 ndr->depth++;
     900           0 :                 ndr_print_ptr(ndr, "handle", r->in.handle);
     901           0 :                 ndr->depth++;
     902           0 :                 ndr_print_policy_handle(ndr, "handle", r->in.handle);
     903           0 :                 ndr->depth--;
     904           0 :                 ndr_print_ptr(ndr, "backupfile", r->in.backupfile);
     905           0 :                 ndr->depth++;
     906           0 :                 if (r->in.backupfile) {
     907           0 :                         ndr_print_lsa_String(ndr, "backupfile", r->in.backupfile);
     908             :                 }
     909           0 :                 ndr->depth--;
     910           0 :                 ndr->depth--;
     911             :         }
     912           0 :         if (flags & NDR_OUT) {
     913           0 :                 ndr_print_struct(ndr, "out", "eventlog_ClearEventLogW");
     914           0 :                 ndr->depth++;
     915           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
     916           0 :                 ndr->depth--;
     917             :         }
     918           0 :         ndr->depth--;
     919             : }
     920             : 
     921           0 : static enum ndr_err_code ndr_push_eventlog_BackupEventLogW(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_BackupEventLogW *r)
     922             : {
     923           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     924           0 :         if (flags & NDR_IN) {
     925           0 :                 if (r->in.handle == NULL) {
     926           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     927             :                 }
     928           0 :                 if (r->in.backup_filename == NULL) {
     929           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     930             :                 }
     931           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
     932           0 :                 NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.backup_filename));
     933             :         }
     934           0 :         if (flags & NDR_OUT) {
     935           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
     936             :         }
     937           0 :         return NDR_ERR_SUCCESS;
     938             : }
     939             : 
     940           0 : static enum ndr_err_code ndr_pull_eventlog_BackupEventLogW(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_BackupEventLogW *r)
     941             : {
     942           0 :         TALLOC_CTX *_mem_save_handle_0 = NULL;
     943           0 :         TALLOC_CTX *_mem_save_backup_filename_0 = NULL;
     944           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     945           0 :         if (flags & NDR_IN) {
     946           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     947           0 :                         NDR_PULL_ALLOC(ndr, r->in.handle);
     948             :                 }
     949           0 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
     950           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
     951           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
     952           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
     953           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     954           0 :                         NDR_PULL_ALLOC(ndr, r->in.backup_filename);
     955             :                 }
     956           0 :                 _mem_save_backup_filename_0 = NDR_PULL_GET_MEM_CTX(ndr);
     957           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.backup_filename, LIBNDR_FLAG_REF_ALLOC);
     958           0 :                 NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.backup_filename));
     959           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_backup_filename_0, LIBNDR_FLAG_REF_ALLOC);
     960             :         }
     961           0 :         if (flags & NDR_OUT) {
     962             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     963             :                 if (r->in.handle == NULL) {
     964             :                         NDR_PULL_ALLOC(ndr, r->in.handle);
     965             :                         NDR_ZERO_STRUCTP(r->in.handle);
     966             :                 }
     967             :                 if (r->in.backup_filename == NULL) {
     968             :                         NDR_PULL_ALLOC(ndr, r->in.backup_filename);
     969             :                         NDR_ZERO_STRUCTP(r->in.backup_filename);
     970             :                 }
     971             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     972           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
     973             :         }
     974           0 :         return NDR_ERR_SUCCESS;
     975             : }
     976             : 
     977           0 : _PUBLIC_ void ndr_print_eventlog_BackupEventLogW(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_BackupEventLogW *r)
     978             : {
     979           0 :         ndr_print_struct(ndr, name, "eventlog_BackupEventLogW");
     980           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     981           0 :         ndr->depth++;
     982           0 :         if (flags & NDR_SET_VALUES) {
     983           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     984             :         }
     985           0 :         if (flags & NDR_IN) {
     986           0 :                 ndr_print_struct(ndr, "in", "eventlog_BackupEventLogW");
     987           0 :                 ndr->depth++;
     988           0 :                 ndr_print_ptr(ndr, "handle", r->in.handle);
     989           0 :                 ndr->depth++;
     990           0 :                 ndr_print_policy_handle(ndr, "handle", r->in.handle);
     991           0 :                 ndr->depth--;
     992           0 :                 ndr_print_ptr(ndr, "backup_filename", r->in.backup_filename);
     993           0 :                 ndr->depth++;
     994           0 :                 ndr_print_lsa_String(ndr, "backup_filename", r->in.backup_filename);
     995           0 :                 ndr->depth--;
     996           0 :                 ndr->depth--;
     997             :         }
     998           0 :         if (flags & NDR_OUT) {
     999           0 :                 ndr_print_struct(ndr, "out", "eventlog_BackupEventLogW");
    1000           0 :                 ndr->depth++;
    1001           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    1002           0 :                 ndr->depth--;
    1003             :         }
    1004           0 :         ndr->depth--;
    1005             : }
    1006             : 
    1007          24 : static enum ndr_err_code ndr_push_eventlog_CloseEventLog(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_CloseEventLog *r)
    1008             : {
    1009          24 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1010          24 :         if (flags & NDR_IN) {
    1011          12 :                 if (r->in.handle == NULL) {
    1012           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1013             :                 }
    1014          12 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    1015             :         }
    1016          24 :         if (flags & NDR_OUT) {
    1017          12 :                 if (r->out.handle == NULL) {
    1018           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1019             :                 }
    1020          12 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.handle));
    1021          12 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    1022             :         }
    1023          24 :         return NDR_ERR_SUCCESS;
    1024             : }
    1025             : 
    1026          24 : static enum ndr_err_code ndr_pull_eventlog_CloseEventLog(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_CloseEventLog *r)
    1027             : {
    1028          24 :         TALLOC_CTX *_mem_save_handle_0 = NULL;
    1029          24 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1030          24 :         if (flags & NDR_IN) {
    1031          12 :                 NDR_ZERO_STRUCT(r->out);
    1032             : 
    1033          12 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1034          12 :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    1035             :                 }
    1036          12 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1037          12 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
    1038          12 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    1039          12 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
    1040          12 :                 NDR_PULL_ALLOC(ndr, r->out.handle);
    1041          12 :                 *r->out.handle = *r->in.handle;
    1042             :         }
    1043          24 :         if (flags & NDR_OUT) {
    1044             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1045             :                 if (r->in.handle == NULL) {
    1046             :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    1047             :                         NDR_ZERO_STRUCTP(r->in.handle);
    1048             :                 }
    1049             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1050          12 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1051           0 :                         NDR_PULL_ALLOC(ndr, r->out.handle);
    1052             :                 }
    1053          12 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1054          12 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.handle, LIBNDR_FLAG_REF_ALLOC);
    1055          12 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.handle));
    1056          12 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
    1057          12 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    1058             :         }
    1059          24 :         return NDR_ERR_SUCCESS;
    1060             : }
    1061             : 
    1062           0 : _PUBLIC_ void ndr_print_eventlog_CloseEventLog(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_CloseEventLog *r)
    1063             : {
    1064           0 :         ndr_print_struct(ndr, name, "eventlog_CloseEventLog");
    1065           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1066           0 :         ndr->depth++;
    1067           0 :         if (flags & NDR_SET_VALUES) {
    1068           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1069             :         }
    1070           0 :         if (flags & NDR_IN) {
    1071           0 :                 ndr_print_struct(ndr, "in", "eventlog_CloseEventLog");
    1072           0 :                 ndr->depth++;
    1073           0 :                 ndr_print_ptr(ndr, "handle", r->in.handle);
    1074           0 :                 ndr->depth++;
    1075           0 :                 ndr_print_policy_handle(ndr, "handle", r->in.handle);
    1076           0 :                 ndr->depth--;
    1077           0 :                 ndr->depth--;
    1078             :         }
    1079           0 :         if (flags & NDR_OUT) {
    1080           0 :                 ndr_print_struct(ndr, "out", "eventlog_CloseEventLog");
    1081           0 :                 ndr->depth++;
    1082           0 :                 ndr_print_ptr(ndr, "handle", r->out.handle);
    1083           0 :                 ndr->depth++;
    1084           0 :                 ndr_print_policy_handle(ndr, "handle", r->out.handle);
    1085           0 :                 ndr->depth--;
    1086           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    1087           0 :                 ndr->depth--;
    1088             :         }
    1089           0 :         ndr->depth--;
    1090             : }
    1091             : 
    1092           0 : static enum ndr_err_code ndr_push_eventlog_DeregisterEventSource(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_DeregisterEventSource *r)
    1093             : {
    1094           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1095           0 :         if (flags & NDR_IN) {
    1096           0 :                 if (r->in.handle == NULL) {
    1097           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1098             :                 }
    1099           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    1100             :         }
    1101           0 :         if (flags & NDR_OUT) {
    1102           0 :                 if (r->out.handle == NULL) {
    1103           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1104             :                 }
    1105           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.handle));
    1106           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    1107             :         }
    1108           0 :         return NDR_ERR_SUCCESS;
    1109             : }
    1110             : 
    1111           0 : static enum ndr_err_code ndr_pull_eventlog_DeregisterEventSource(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_DeregisterEventSource *r)
    1112             : {
    1113           0 :         TALLOC_CTX *_mem_save_handle_0 = NULL;
    1114           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1115           0 :         if (flags & NDR_IN) {
    1116           0 :                 NDR_ZERO_STRUCT(r->out);
    1117             : 
    1118           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1119           0 :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    1120             :                 }
    1121           0 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1122           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
    1123           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    1124           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
    1125           0 :                 NDR_PULL_ALLOC(ndr, r->out.handle);
    1126           0 :                 *r->out.handle = *r->in.handle;
    1127             :         }
    1128           0 :         if (flags & NDR_OUT) {
    1129             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1130             :                 if (r->in.handle == NULL) {
    1131             :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    1132             :                         NDR_ZERO_STRUCTP(r->in.handle);
    1133             :                 }
    1134             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1135           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1136           0 :                         NDR_PULL_ALLOC(ndr, r->out.handle);
    1137             :                 }
    1138           0 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1139           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.handle, LIBNDR_FLAG_REF_ALLOC);
    1140           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.handle));
    1141           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
    1142           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    1143             :         }
    1144           0 :         return NDR_ERR_SUCCESS;
    1145             : }
    1146             : 
    1147           0 : _PUBLIC_ void ndr_print_eventlog_DeregisterEventSource(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_DeregisterEventSource *r)
    1148             : {
    1149           0 :         ndr_print_struct(ndr, name, "eventlog_DeregisterEventSource");
    1150           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1151           0 :         ndr->depth++;
    1152           0 :         if (flags & NDR_SET_VALUES) {
    1153           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1154             :         }
    1155           0 :         if (flags & NDR_IN) {
    1156           0 :                 ndr_print_struct(ndr, "in", "eventlog_DeregisterEventSource");
    1157           0 :                 ndr->depth++;
    1158           0 :                 ndr_print_ptr(ndr, "handle", r->in.handle);
    1159           0 :                 ndr->depth++;
    1160           0 :                 ndr_print_policy_handle(ndr, "handle", r->in.handle);
    1161           0 :                 ndr->depth--;
    1162           0 :                 ndr->depth--;
    1163             :         }
    1164           0 :         if (flags & NDR_OUT) {
    1165           0 :                 ndr_print_struct(ndr, "out", "eventlog_DeregisterEventSource");
    1166           0 :                 ndr->depth++;
    1167           0 :                 ndr_print_ptr(ndr, "handle", r->out.handle);
    1168           0 :                 ndr->depth++;
    1169           0 :                 ndr_print_policy_handle(ndr, "handle", r->out.handle);
    1170           0 :                 ndr->depth--;
    1171           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    1172           0 :                 ndr->depth--;
    1173             :         }
    1174           0 :         ndr->depth--;
    1175             : }
    1176             : 
    1177           4 : static enum ndr_err_code ndr_push_eventlog_GetNumRecords(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_GetNumRecords *r)
    1178             : {
    1179           4 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1180           4 :         if (flags & NDR_IN) {
    1181           2 :                 if (r->in.handle == NULL) {
    1182           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1183             :                 }
    1184           2 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    1185             :         }
    1186           4 :         if (flags & NDR_OUT) {
    1187           2 :                 if (r->out.number == NULL) {
    1188           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1189             :                 }
    1190           2 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.number));
    1191           2 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    1192             :         }
    1193           4 :         return NDR_ERR_SUCCESS;
    1194             : }
    1195             : 
    1196           4 : static enum ndr_err_code ndr_pull_eventlog_GetNumRecords(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_GetNumRecords *r)
    1197             : {
    1198           4 :         TALLOC_CTX *_mem_save_handle_0 = NULL;
    1199           4 :         TALLOC_CTX *_mem_save_number_0 = NULL;
    1200           4 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1201           4 :         if (flags & NDR_IN) {
    1202           2 :                 NDR_ZERO_STRUCT(r->out);
    1203             : 
    1204           2 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1205           2 :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    1206             :                 }
    1207           2 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1208           2 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
    1209           2 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    1210           2 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
    1211           2 :                 NDR_PULL_ALLOC(ndr, r->out.number);
    1212           2 :                 NDR_ZERO_STRUCTP(r->out.number);
    1213             :         }
    1214           4 :         if (flags & NDR_OUT) {
    1215             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1216             :                 if (r->in.handle == NULL) {
    1217             :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    1218             :                         NDR_ZERO_STRUCTP(r->in.handle);
    1219             :                 }
    1220             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1221           2 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1222           0 :                         NDR_PULL_ALLOC(ndr, r->out.number);
    1223             :                 }
    1224           2 :                 _mem_save_number_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1225           2 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.number, LIBNDR_FLAG_REF_ALLOC);
    1226           2 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.number));
    1227           2 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_number_0, LIBNDR_FLAG_REF_ALLOC);
    1228           2 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    1229             :         }
    1230           4 :         return NDR_ERR_SUCCESS;
    1231             : }
    1232             : 
    1233           0 : _PUBLIC_ void ndr_print_eventlog_GetNumRecords(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_GetNumRecords *r)
    1234             : {
    1235           0 :         ndr_print_struct(ndr, name, "eventlog_GetNumRecords");
    1236           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1237           0 :         ndr->depth++;
    1238           0 :         if (flags & NDR_SET_VALUES) {
    1239           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1240             :         }
    1241           0 :         if (flags & NDR_IN) {
    1242           0 :                 ndr_print_struct(ndr, "in", "eventlog_GetNumRecords");
    1243           0 :                 ndr->depth++;
    1244           0 :                 ndr_print_ptr(ndr, "handle", r->in.handle);
    1245           0 :                 ndr->depth++;
    1246           0 :                 ndr_print_policy_handle(ndr, "handle", r->in.handle);
    1247           0 :                 ndr->depth--;
    1248           0 :                 ndr->depth--;
    1249             :         }
    1250           0 :         if (flags & NDR_OUT) {
    1251           0 :                 ndr_print_struct(ndr, "out", "eventlog_GetNumRecords");
    1252           0 :                 ndr->depth++;
    1253           0 :                 ndr_print_ptr(ndr, "number", r->out.number);
    1254           0 :                 ndr->depth++;
    1255           0 :                 ndr_print_uint32(ndr, "number", *r->out.number);
    1256           0 :                 ndr->depth--;
    1257           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    1258           0 :                 ndr->depth--;
    1259             :         }
    1260           0 :         ndr->depth--;
    1261             : }
    1262             : 
    1263           0 : static enum ndr_err_code ndr_push_eventlog_GetOldestRecord(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_GetOldestRecord *r)
    1264             : {
    1265           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1266           0 :         if (flags & NDR_IN) {
    1267           0 :                 if (r->in.handle == NULL) {
    1268           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1269             :                 }
    1270           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    1271             :         }
    1272           0 :         if (flags & NDR_OUT) {
    1273           0 :                 if (r->out.oldest_entry == NULL) {
    1274           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1275             :                 }
    1276           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.oldest_entry));
    1277           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    1278             :         }
    1279           0 :         return NDR_ERR_SUCCESS;
    1280             : }
    1281             : 
    1282           0 : static enum ndr_err_code ndr_pull_eventlog_GetOldestRecord(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_GetOldestRecord *r)
    1283             : {
    1284           0 :         TALLOC_CTX *_mem_save_handle_0 = NULL;
    1285           0 :         TALLOC_CTX *_mem_save_oldest_entry_0 = NULL;
    1286           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1287           0 :         if (flags & NDR_IN) {
    1288           0 :                 NDR_ZERO_STRUCT(r->out);
    1289             : 
    1290           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1291           0 :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    1292             :                 }
    1293           0 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1294           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
    1295           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    1296           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
    1297           0 :                 NDR_PULL_ALLOC(ndr, r->out.oldest_entry);
    1298           0 :                 NDR_ZERO_STRUCTP(r->out.oldest_entry);
    1299             :         }
    1300           0 :         if (flags & NDR_OUT) {
    1301             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1302             :                 if (r->in.handle == NULL) {
    1303             :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    1304             :                         NDR_ZERO_STRUCTP(r->in.handle);
    1305             :                 }
    1306             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1307           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1308           0 :                         NDR_PULL_ALLOC(ndr, r->out.oldest_entry);
    1309             :                 }
    1310           0 :                 _mem_save_oldest_entry_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1311           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.oldest_entry, LIBNDR_FLAG_REF_ALLOC);
    1312           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.oldest_entry));
    1313           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_oldest_entry_0, LIBNDR_FLAG_REF_ALLOC);
    1314           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    1315             :         }
    1316           0 :         return NDR_ERR_SUCCESS;
    1317             : }
    1318             : 
    1319           0 : _PUBLIC_ void ndr_print_eventlog_GetOldestRecord(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_GetOldestRecord *r)
    1320             : {
    1321           0 :         ndr_print_struct(ndr, name, "eventlog_GetOldestRecord");
    1322           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1323           0 :         ndr->depth++;
    1324           0 :         if (flags & NDR_SET_VALUES) {
    1325           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1326             :         }
    1327           0 :         if (flags & NDR_IN) {
    1328           0 :                 ndr_print_struct(ndr, "in", "eventlog_GetOldestRecord");
    1329           0 :                 ndr->depth++;
    1330           0 :                 ndr_print_ptr(ndr, "handle", r->in.handle);
    1331           0 :                 ndr->depth++;
    1332           0 :                 ndr_print_policy_handle(ndr, "handle", r->in.handle);
    1333           0 :                 ndr->depth--;
    1334           0 :                 ndr->depth--;
    1335             :         }
    1336           0 :         if (flags & NDR_OUT) {
    1337           0 :                 ndr_print_struct(ndr, "out", "eventlog_GetOldestRecord");
    1338           0 :                 ndr->depth++;
    1339           0 :                 ndr_print_ptr(ndr, "oldest_entry", r->out.oldest_entry);
    1340           0 :                 ndr->depth++;
    1341           0 :                 ndr_print_uint32(ndr, "oldest_entry", *r->out.oldest_entry);
    1342           0 :                 ndr->depth--;
    1343           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    1344           0 :                 ndr->depth--;
    1345             :         }
    1346           0 :         ndr->depth--;
    1347             : }
    1348             : 
    1349           0 : static enum ndr_err_code ndr_push_eventlog_ChangeNotify(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_ChangeNotify *r)
    1350             : {
    1351           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1352           0 :         if (flags & NDR_IN) {
    1353           0 :         }
    1354           0 :         if (flags & NDR_OUT) {
    1355           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    1356             :         }
    1357           0 :         return NDR_ERR_SUCCESS;
    1358             : }
    1359             : 
    1360           0 : static enum ndr_err_code ndr_pull_eventlog_ChangeNotify(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_ChangeNotify *r)
    1361             : {
    1362           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1363           0 :         if (flags & NDR_IN) {
    1364           0 :         }
    1365           0 :         if (flags & NDR_OUT) {
    1366             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1367             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1368           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    1369             :         }
    1370           0 :         return NDR_ERR_SUCCESS;
    1371             : }
    1372             : 
    1373           0 : _PUBLIC_ void ndr_print_eventlog_ChangeNotify(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_ChangeNotify *r)
    1374             : {
    1375           0 :         ndr_print_struct(ndr, name, "eventlog_ChangeNotify");
    1376           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1377           0 :         ndr->depth++;
    1378           0 :         if (flags & NDR_SET_VALUES) {
    1379           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1380             :         }
    1381           0 :         if (flags & NDR_IN) {
    1382           0 :                 ndr_print_struct(ndr, "in", "eventlog_ChangeNotify");
    1383           0 :                 ndr->depth++;
    1384           0 :                 ndr->depth--;
    1385             :         }
    1386           0 :         if (flags & NDR_OUT) {
    1387           0 :                 ndr_print_struct(ndr, "out", "eventlog_ChangeNotify");
    1388           0 :                 ndr->depth++;
    1389           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    1390           0 :                 ndr->depth--;
    1391             :         }
    1392           0 :         ndr->depth--;
    1393             : }
    1394             : 
    1395          48 : static enum ndr_err_code ndr_push_eventlog_OpenEventLogW(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_OpenEventLogW *r)
    1396             : {
    1397          48 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1398          48 :         if (flags & NDR_IN) {
    1399          24 :                 if (r->in.logname == NULL) {
    1400           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1401             :                 }
    1402          24 :                 if (r->in.servername == NULL) {
    1403           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1404             :                 }
    1405          24 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.unknown0));
    1406          24 :                 if (r->in.unknown0) {
    1407          24 :                         NDR_CHECK(ndr_push_eventlog_OpenUnknown0(ndr, NDR_SCALARS, r->in.unknown0));
    1408             :                 }
    1409          24 :                 NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.logname));
    1410          24 :                 NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.servername));
    1411          24 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.major_version));
    1412          24 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.minor_version));
    1413             :         }
    1414          48 :         if (flags & NDR_OUT) {
    1415          24 :                 if (r->out.handle == NULL) {
    1416           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1417             :                 }
    1418          24 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.handle));
    1419          24 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    1420             :         }
    1421          48 :         return NDR_ERR_SUCCESS;
    1422             : }
    1423             : 
    1424          48 : static enum ndr_err_code ndr_pull_eventlog_OpenEventLogW(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_OpenEventLogW *r)
    1425             : {
    1426           0 :         uint32_t _ptr_unknown0;
    1427          48 :         TALLOC_CTX *_mem_save_unknown0_0 = NULL;
    1428          48 :         TALLOC_CTX *_mem_save_logname_0 = NULL;
    1429          48 :         TALLOC_CTX *_mem_save_servername_0 = NULL;
    1430          48 :         TALLOC_CTX *_mem_save_handle_0 = NULL;
    1431          48 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1432          48 :         if (flags & NDR_IN) {
    1433          24 :                 NDR_ZERO_STRUCT(r->out);
    1434             : 
    1435          24 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown0));
    1436          24 :                 if (_ptr_unknown0) {
    1437          24 :                         NDR_PULL_ALLOC(ndr, r->in.unknown0);
    1438             :                 } else {
    1439           0 :                         r->in.unknown0 = NULL;
    1440             :                 }
    1441          24 :                 if (r->in.unknown0) {
    1442          24 :                         _mem_save_unknown0_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1443          24 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.unknown0, 0);
    1444          24 :                         NDR_CHECK(ndr_pull_eventlog_OpenUnknown0(ndr, NDR_SCALARS, r->in.unknown0));
    1445          24 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown0_0, 0);
    1446             :                 }
    1447          24 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1448          24 :                         NDR_PULL_ALLOC(ndr, r->in.logname);
    1449             :                 }
    1450          24 :                 _mem_save_logname_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1451          24 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.logname, LIBNDR_FLAG_REF_ALLOC);
    1452          24 :                 NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.logname));
    1453          24 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_logname_0, LIBNDR_FLAG_REF_ALLOC);
    1454          24 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1455          24 :                         NDR_PULL_ALLOC(ndr, r->in.servername);
    1456             :                 }
    1457          24 :                 _mem_save_servername_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1458          24 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.servername, LIBNDR_FLAG_REF_ALLOC);
    1459          24 :                 NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.servername));
    1460          24 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_servername_0, LIBNDR_FLAG_REF_ALLOC);
    1461          24 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.major_version));
    1462          24 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.minor_version));
    1463          24 :                 NDR_PULL_ALLOC(ndr, r->out.handle);
    1464          24 :                 NDR_ZERO_STRUCTP(r->out.handle);
    1465             :         }
    1466          48 :         if (flags & NDR_OUT) {
    1467             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1468             :                 if (r->in.logname == NULL) {
    1469             :                         NDR_PULL_ALLOC(ndr, r->in.logname);
    1470             :                         NDR_ZERO_STRUCTP(r->in.logname);
    1471             :                 }
    1472             :                 if (r->in.servername == NULL) {
    1473             :                         NDR_PULL_ALLOC(ndr, r->in.servername);
    1474             :                         NDR_ZERO_STRUCTP(r->in.servername);
    1475             :                 }
    1476             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1477          24 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1478           0 :                         NDR_PULL_ALLOC(ndr, r->out.handle);
    1479             :                 }
    1480          24 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1481          24 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.handle, LIBNDR_FLAG_REF_ALLOC);
    1482          24 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.handle));
    1483          24 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
    1484          24 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    1485             :         }
    1486          48 :         return NDR_ERR_SUCCESS;
    1487             : }
    1488             : 
    1489           0 : _PUBLIC_ void ndr_print_eventlog_OpenEventLogW(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_OpenEventLogW *r)
    1490             : {
    1491           0 :         ndr_print_struct(ndr, name, "eventlog_OpenEventLogW");
    1492           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1493           0 :         ndr->depth++;
    1494           0 :         if (flags & NDR_SET_VALUES) {
    1495           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1496             :         }
    1497           0 :         if (flags & NDR_IN) {
    1498           0 :                 ndr_print_struct(ndr, "in", "eventlog_OpenEventLogW");
    1499           0 :                 ndr->depth++;
    1500           0 :                 ndr_print_ptr(ndr, "unknown0", r->in.unknown0);
    1501           0 :                 ndr->depth++;
    1502           0 :                 if (r->in.unknown0) {
    1503           0 :                         ndr_print_eventlog_OpenUnknown0(ndr, "unknown0", r->in.unknown0);
    1504             :                 }
    1505           0 :                 ndr->depth--;
    1506           0 :                 ndr_print_ptr(ndr, "logname", r->in.logname);
    1507           0 :                 ndr->depth++;
    1508           0 :                 ndr_print_lsa_String(ndr, "logname", r->in.logname);
    1509           0 :                 ndr->depth--;
    1510           0 :                 ndr_print_ptr(ndr, "servername", r->in.servername);
    1511           0 :                 ndr->depth++;
    1512           0 :                 ndr_print_lsa_String(ndr, "servername", r->in.servername);
    1513           0 :                 ndr->depth--;
    1514           0 :                 ndr_print_uint32(ndr, "major_version", r->in.major_version);
    1515           0 :                 ndr_print_uint32(ndr, "minor_version", r->in.minor_version);
    1516           0 :                 ndr->depth--;
    1517             :         }
    1518           0 :         if (flags & NDR_OUT) {
    1519           0 :                 ndr_print_struct(ndr, "out", "eventlog_OpenEventLogW");
    1520           0 :                 ndr->depth++;
    1521           0 :                 ndr_print_ptr(ndr, "handle", r->out.handle);
    1522           0 :                 ndr->depth++;
    1523           0 :                 ndr_print_policy_handle(ndr, "handle", r->out.handle);
    1524           0 :                 ndr->depth--;
    1525           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    1526           0 :                 ndr->depth--;
    1527             :         }
    1528           0 :         ndr->depth--;
    1529             : }
    1530             : 
    1531           0 : static enum ndr_err_code ndr_push_eventlog_RegisterEventSourceW(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_RegisterEventSourceW *r)
    1532             : {
    1533           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1534           0 :         if (flags & NDR_IN) {
    1535           0 :                 if (r->in.module_name == NULL) {
    1536           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1537             :                 }
    1538           0 :                 if (r->in.reg_module_name == NULL) {
    1539           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1540             :                 }
    1541           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.unknown0));
    1542           0 :                 if (r->in.unknown0) {
    1543           0 :                         NDR_CHECK(ndr_push_eventlog_OpenUnknown0(ndr, NDR_SCALARS, r->in.unknown0));
    1544             :                 }
    1545           0 :                 NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.module_name));
    1546           0 :                 NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.reg_module_name));
    1547           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.major_version));
    1548           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.minor_version));
    1549             :         }
    1550           0 :         if (flags & NDR_OUT) {
    1551           0 :                 if (r->out.log_handle == NULL) {
    1552           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1553             :                 }
    1554           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.log_handle));
    1555           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    1556             :         }
    1557           0 :         return NDR_ERR_SUCCESS;
    1558             : }
    1559             : 
    1560           0 : static enum ndr_err_code ndr_pull_eventlog_RegisterEventSourceW(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_RegisterEventSourceW *r)
    1561             : {
    1562           0 :         uint32_t _ptr_unknown0;
    1563           0 :         TALLOC_CTX *_mem_save_unknown0_0 = NULL;
    1564           0 :         TALLOC_CTX *_mem_save_module_name_0 = NULL;
    1565           0 :         TALLOC_CTX *_mem_save_reg_module_name_0 = NULL;
    1566           0 :         TALLOC_CTX *_mem_save_log_handle_0 = NULL;
    1567           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1568           0 :         if (flags & NDR_IN) {
    1569           0 :                 NDR_ZERO_STRUCT(r->out);
    1570             : 
    1571           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown0));
    1572           0 :                 if (_ptr_unknown0) {
    1573           0 :                         NDR_PULL_ALLOC(ndr, r->in.unknown0);
    1574             :                 } else {
    1575           0 :                         r->in.unknown0 = NULL;
    1576             :                 }
    1577           0 :                 if (r->in.unknown0) {
    1578           0 :                         _mem_save_unknown0_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1579           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.unknown0, 0);
    1580           0 :                         NDR_CHECK(ndr_pull_eventlog_OpenUnknown0(ndr, NDR_SCALARS, r->in.unknown0));
    1581           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown0_0, 0);
    1582             :                 }
    1583           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1584           0 :                         NDR_PULL_ALLOC(ndr, r->in.module_name);
    1585             :                 }
    1586           0 :                 _mem_save_module_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1587           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.module_name, LIBNDR_FLAG_REF_ALLOC);
    1588           0 :                 NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.module_name));
    1589           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_module_name_0, LIBNDR_FLAG_REF_ALLOC);
    1590           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1591           0 :                         NDR_PULL_ALLOC(ndr, r->in.reg_module_name);
    1592             :                 }
    1593           0 :                 _mem_save_reg_module_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1594           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.reg_module_name, LIBNDR_FLAG_REF_ALLOC);
    1595           0 :                 NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.reg_module_name));
    1596           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_reg_module_name_0, LIBNDR_FLAG_REF_ALLOC);
    1597           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.major_version));
    1598           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.minor_version));
    1599           0 :                 NDR_PULL_ALLOC(ndr, r->out.log_handle);
    1600           0 :                 NDR_ZERO_STRUCTP(r->out.log_handle);
    1601             :         }
    1602           0 :         if (flags & NDR_OUT) {
    1603             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1604             :                 if (r->in.module_name == NULL) {
    1605             :                         NDR_PULL_ALLOC(ndr, r->in.module_name);
    1606             :                         NDR_ZERO_STRUCTP(r->in.module_name);
    1607             :                 }
    1608             :                 if (r->in.reg_module_name == NULL) {
    1609             :                         NDR_PULL_ALLOC(ndr, r->in.reg_module_name);
    1610             :                         NDR_ZERO_STRUCTP(r->in.reg_module_name);
    1611             :                 }
    1612             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1613           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1614           0 :                         NDR_PULL_ALLOC(ndr, r->out.log_handle);
    1615             :                 }
    1616           0 :                 _mem_save_log_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1617           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.log_handle, LIBNDR_FLAG_REF_ALLOC);
    1618           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.log_handle));
    1619           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_log_handle_0, LIBNDR_FLAG_REF_ALLOC);
    1620           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    1621             :         }
    1622           0 :         return NDR_ERR_SUCCESS;
    1623             : }
    1624             : 
    1625           0 : _PUBLIC_ void ndr_print_eventlog_RegisterEventSourceW(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_RegisterEventSourceW *r)
    1626             : {
    1627           0 :         ndr_print_struct(ndr, name, "eventlog_RegisterEventSourceW");
    1628           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1629           0 :         ndr->depth++;
    1630           0 :         if (flags & NDR_SET_VALUES) {
    1631           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1632             :         }
    1633           0 :         if (flags & NDR_IN) {
    1634           0 :                 ndr_print_struct(ndr, "in", "eventlog_RegisterEventSourceW");
    1635           0 :                 ndr->depth++;
    1636           0 :                 ndr_print_ptr(ndr, "unknown0", r->in.unknown0);
    1637           0 :                 ndr->depth++;
    1638           0 :                 if (r->in.unknown0) {
    1639           0 :                         ndr_print_eventlog_OpenUnknown0(ndr, "unknown0", r->in.unknown0);
    1640             :                 }
    1641           0 :                 ndr->depth--;
    1642           0 :                 ndr_print_ptr(ndr, "module_name", r->in.module_name);
    1643           0 :                 ndr->depth++;
    1644           0 :                 ndr_print_lsa_String(ndr, "module_name", r->in.module_name);
    1645           0 :                 ndr->depth--;
    1646           0 :                 ndr_print_ptr(ndr, "reg_module_name", r->in.reg_module_name);
    1647           0 :                 ndr->depth++;
    1648           0 :                 ndr_print_lsa_String(ndr, "reg_module_name", r->in.reg_module_name);
    1649           0 :                 ndr->depth--;
    1650           0 :                 ndr_print_uint32(ndr, "major_version", r->in.major_version);
    1651           0 :                 ndr_print_uint32(ndr, "minor_version", r->in.minor_version);
    1652           0 :                 ndr->depth--;
    1653             :         }
    1654           0 :         if (flags & NDR_OUT) {
    1655           0 :                 ndr_print_struct(ndr, "out", "eventlog_RegisterEventSourceW");
    1656           0 :                 ndr->depth++;
    1657           0 :                 ndr_print_ptr(ndr, "log_handle", r->out.log_handle);
    1658           0 :                 ndr->depth++;
    1659           0 :                 ndr_print_policy_handle(ndr, "log_handle", r->out.log_handle);
    1660           0 :                 ndr->depth--;
    1661           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    1662           0 :                 ndr->depth--;
    1663             :         }
    1664           0 :         ndr->depth--;
    1665             : }
    1666             : 
    1667           0 : static enum ndr_err_code ndr_push_eventlog_OpenBackupEventLogW(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_OpenBackupEventLogW *r)
    1668             : {
    1669           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1670           0 :         if (flags & NDR_IN) {
    1671           0 :                 if (r->in.backup_logname == NULL) {
    1672           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1673             :                 }
    1674           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.unknown0));
    1675           0 :                 if (r->in.unknown0) {
    1676           0 :                         NDR_CHECK(ndr_push_eventlog_OpenUnknown0(ndr, NDR_SCALARS, r->in.unknown0));
    1677             :                 }
    1678           0 :                 NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.backup_logname));
    1679           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.major_version));
    1680           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.minor_version));
    1681             :         }
    1682           0 :         if (flags & NDR_OUT) {
    1683           0 :                 if (r->out.handle == NULL) {
    1684           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1685             :                 }
    1686           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.handle));
    1687           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    1688             :         }
    1689           0 :         return NDR_ERR_SUCCESS;
    1690             : }
    1691             : 
    1692           0 : static enum ndr_err_code ndr_pull_eventlog_OpenBackupEventLogW(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_OpenBackupEventLogW *r)
    1693             : {
    1694           0 :         uint32_t _ptr_unknown0;
    1695           0 :         TALLOC_CTX *_mem_save_unknown0_0 = NULL;
    1696           0 :         TALLOC_CTX *_mem_save_backup_logname_0 = NULL;
    1697           0 :         TALLOC_CTX *_mem_save_handle_0 = NULL;
    1698           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1699           0 :         if (flags & NDR_IN) {
    1700           0 :                 NDR_ZERO_STRUCT(r->out);
    1701             : 
    1702           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_unknown0));
    1703           0 :                 if (_ptr_unknown0) {
    1704           0 :                         NDR_PULL_ALLOC(ndr, r->in.unknown0);
    1705             :                 } else {
    1706           0 :                         r->in.unknown0 = NULL;
    1707             :                 }
    1708           0 :                 if (r->in.unknown0) {
    1709           0 :                         _mem_save_unknown0_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1710           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.unknown0, 0);
    1711           0 :                         NDR_CHECK(ndr_pull_eventlog_OpenUnknown0(ndr, NDR_SCALARS, r->in.unknown0));
    1712           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unknown0_0, 0);
    1713             :                 }
    1714           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1715           0 :                         NDR_PULL_ALLOC(ndr, r->in.backup_logname);
    1716             :                 }
    1717           0 :                 _mem_save_backup_logname_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1718           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.backup_logname, LIBNDR_FLAG_REF_ALLOC);
    1719           0 :                 NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.backup_logname));
    1720           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_backup_logname_0, LIBNDR_FLAG_REF_ALLOC);
    1721           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.major_version));
    1722           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.minor_version));
    1723           0 :                 NDR_PULL_ALLOC(ndr, r->out.handle);
    1724           0 :                 NDR_ZERO_STRUCTP(r->out.handle);
    1725             :         }
    1726           0 :         if (flags & NDR_OUT) {
    1727             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1728             :                 if (r->in.backup_logname == NULL) {
    1729             :                         NDR_PULL_ALLOC(ndr, r->in.backup_logname);
    1730             :                         NDR_ZERO_STRUCTP(r->in.backup_logname);
    1731             :                 }
    1732             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1733           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1734           0 :                         NDR_PULL_ALLOC(ndr, r->out.handle);
    1735             :                 }
    1736           0 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1737           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.handle, LIBNDR_FLAG_REF_ALLOC);
    1738           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.handle));
    1739           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
    1740           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    1741             :         }
    1742           0 :         return NDR_ERR_SUCCESS;
    1743             : }
    1744             : 
    1745           0 : _PUBLIC_ void ndr_print_eventlog_OpenBackupEventLogW(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_OpenBackupEventLogW *r)
    1746             : {
    1747           0 :         ndr_print_struct(ndr, name, "eventlog_OpenBackupEventLogW");
    1748           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1749           0 :         ndr->depth++;
    1750           0 :         if (flags & NDR_SET_VALUES) {
    1751           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1752             :         }
    1753           0 :         if (flags & NDR_IN) {
    1754           0 :                 ndr_print_struct(ndr, "in", "eventlog_OpenBackupEventLogW");
    1755           0 :                 ndr->depth++;
    1756           0 :                 ndr_print_ptr(ndr, "unknown0", r->in.unknown0);
    1757           0 :                 ndr->depth++;
    1758           0 :                 if (r->in.unknown0) {
    1759           0 :                         ndr_print_eventlog_OpenUnknown0(ndr, "unknown0", r->in.unknown0);
    1760             :                 }
    1761           0 :                 ndr->depth--;
    1762           0 :                 ndr_print_ptr(ndr, "backup_logname", r->in.backup_logname);
    1763           0 :                 ndr->depth++;
    1764           0 :                 ndr_print_lsa_String(ndr, "backup_logname", r->in.backup_logname);
    1765           0 :                 ndr->depth--;
    1766           0 :                 ndr_print_uint32(ndr, "major_version", r->in.major_version);
    1767           0 :                 ndr_print_uint32(ndr, "minor_version", r->in.minor_version);
    1768           0 :                 ndr->depth--;
    1769             :         }
    1770           0 :         if (flags & NDR_OUT) {
    1771           0 :                 ndr_print_struct(ndr, "out", "eventlog_OpenBackupEventLogW");
    1772           0 :                 ndr->depth++;
    1773           0 :                 ndr_print_ptr(ndr, "handle", r->out.handle);
    1774           0 :                 ndr->depth++;
    1775           0 :                 ndr_print_policy_handle(ndr, "handle", r->out.handle);
    1776           0 :                 ndr->depth--;
    1777           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    1778           0 :                 ndr->depth--;
    1779             :         }
    1780           0 :         ndr->depth--;
    1781             : }
    1782             : 
    1783           8 : static enum ndr_err_code ndr_push_eventlog_ReadEventLogW(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_ReadEventLogW *r)
    1784             : {
    1785           8 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1786           8 :         if (flags & NDR_IN) {
    1787           4 :                 if (r->in.handle == NULL) {
    1788           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1789             :                 }
    1790           4 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    1791           4 :                 NDR_CHECK(ndr_push_eventlogReadFlags(ndr, NDR_SCALARS, r->in.flags));
    1792           4 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.offset));
    1793           4 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.number_of_bytes));
    1794             :         }
    1795           8 :         if (flags & NDR_OUT) {
    1796           4 :                 if (r->out.data == NULL) {
    1797           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1798             :                 }
    1799           4 :                 if (r->out.sent_size == NULL) {
    1800           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1801             :                 }
    1802           4 :                 if (r->out.real_size == NULL) {
    1803           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1804             :                 }
    1805           4 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.number_of_bytes));
    1806           4 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.data, r->in.number_of_bytes));
    1807           4 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.sent_size));
    1808           4 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.real_size));
    1809           4 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    1810             :         }
    1811           8 :         return NDR_ERR_SUCCESS;
    1812             : }
    1813             : 
    1814           8 : static enum ndr_err_code ndr_pull_eventlog_ReadEventLogW(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_ReadEventLogW *r)
    1815             : {
    1816           8 :         uint32_t size_data_1 = 0;
    1817           8 :         TALLOC_CTX *_mem_save_handle_0 = NULL;
    1818           8 :         TALLOC_CTX *_mem_save_sent_size_0 = NULL;
    1819           8 :         TALLOC_CTX *_mem_save_real_size_0 = NULL;
    1820           8 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1821           8 :         if (flags & NDR_IN) {
    1822           4 :                 NDR_ZERO_STRUCT(r->out);
    1823             : 
    1824           4 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1825           4 :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    1826             :                 }
    1827           4 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1828           4 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
    1829           4 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    1830           4 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
    1831           4 :                 NDR_CHECK(ndr_pull_eventlogReadFlags(ndr, NDR_SCALARS, &r->in.flags));
    1832           4 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.offset));
    1833           4 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.number_of_bytes));
    1834           4 :                 if (r->in.number_of_bytes > 524287) {
    1835           0 :                         return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.number_of_bytes), (uint32_t)(0), (uint32_t)(524287));
    1836             :                 }
    1837           4 :                 NDR_PULL_ALLOC_N(ndr, r->out.data, r->in.number_of_bytes);
    1838           4 :                 memset(r->out.data, 0, (r->in.number_of_bytes) * sizeof(*r->out.data));
    1839           4 :                 NDR_PULL_ALLOC(ndr, r->out.sent_size);
    1840           4 :                 NDR_ZERO_STRUCTP(r->out.sent_size);
    1841           4 :                 NDR_PULL_ALLOC(ndr, r->out.real_size);
    1842           4 :                 NDR_ZERO_STRUCTP(r->out.real_size);
    1843             :         }
    1844           8 :         if (flags & NDR_OUT) {
    1845             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1846             :                 if (r->in.handle == NULL) {
    1847             :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    1848             :                         NDR_ZERO_STRUCTP(r->in.handle);
    1849             :                 }
    1850             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1851           4 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.data));
    1852           4 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.data, &size_data_1));
    1853           4 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1854           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.data, size_data_1);
    1855             :                 }
    1856           4 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.data, size_data_1));
    1857           4 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1858           0 :                         NDR_PULL_ALLOC(ndr, r->out.sent_size);
    1859             :                 }
    1860           4 :                 _mem_save_sent_size_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1861           4 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.sent_size, LIBNDR_FLAG_REF_ALLOC);
    1862           4 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.sent_size));
    1863           4 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sent_size_0, LIBNDR_FLAG_REF_ALLOC);
    1864           4 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1865           0 :                         NDR_PULL_ALLOC(ndr, r->out.real_size);
    1866             :                 }
    1867           4 :                 _mem_save_real_size_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1868           4 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.real_size, LIBNDR_FLAG_REF_ALLOC);
    1869           4 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.real_size));
    1870           4 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_real_size_0, LIBNDR_FLAG_REF_ALLOC);
    1871           4 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    1872           4 :                 if (r->out.data) {
    1873           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.data, r->in.number_of_bytes));
    1874             :                 }
    1875             :         }
    1876           8 :         return NDR_ERR_SUCCESS;
    1877             : }
    1878             : 
    1879           0 : _PUBLIC_ void ndr_print_eventlog_ReadEventLogW(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_ReadEventLogW *r)
    1880             : {
    1881           0 :         ndr_print_struct(ndr, name, "eventlog_ReadEventLogW");
    1882           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1883           0 :         ndr->depth++;
    1884           0 :         if (flags & NDR_SET_VALUES) {
    1885           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1886             :         }
    1887           0 :         if (flags & NDR_IN) {
    1888           0 :                 ndr_print_struct(ndr, "in", "eventlog_ReadEventLogW");
    1889           0 :                 ndr->depth++;
    1890           0 :                 ndr_print_ptr(ndr, "handle", r->in.handle);
    1891           0 :                 ndr->depth++;
    1892           0 :                 ndr_print_policy_handle(ndr, "handle", r->in.handle);
    1893           0 :                 ndr->depth--;
    1894           0 :                 ndr_print_eventlogReadFlags(ndr, "flags", r->in.flags);
    1895           0 :                 ndr_print_uint32(ndr, "offset", r->in.offset);
    1896           0 :                 ndr_print_uint32(ndr, "number_of_bytes", r->in.number_of_bytes);
    1897           0 :                 ndr->depth--;
    1898             :         }
    1899           0 :         if (flags & NDR_OUT) {
    1900           0 :                 ndr_print_struct(ndr, "out", "eventlog_ReadEventLogW");
    1901           0 :                 ndr->depth++;
    1902           0 :                 ndr_print_ptr(ndr, "data", r->out.data);
    1903           0 :                 ndr->depth++;
    1904           0 :                 ndr_print_array_uint8(ndr, "data", r->out.data, r->in.number_of_bytes);
    1905           0 :                 ndr->depth--;
    1906           0 :                 ndr_print_ptr(ndr, "sent_size", r->out.sent_size);
    1907           0 :                 ndr->depth++;
    1908           0 :                 ndr_print_uint32(ndr, "sent_size", *r->out.sent_size);
    1909           0 :                 ndr->depth--;
    1910           0 :                 ndr_print_ptr(ndr, "real_size", r->out.real_size);
    1911           0 :                 ndr->depth++;
    1912           0 :                 ndr_print_uint32(ndr, "real_size", *r->out.real_size);
    1913           0 :                 ndr->depth--;
    1914           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    1915           0 :                 ndr->depth--;
    1916             :         }
    1917           0 :         ndr->depth--;
    1918             : }
    1919             : 
    1920           4 : static enum ndr_err_code ndr_push_eventlog_ReportEventW(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_ReportEventW *r)
    1921             : {
    1922           0 :         uint32_t cntr_strings_1;
    1923           4 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1924           4 :         if (flags & NDR_IN) {
    1925           2 :                 if (r->in.handle == NULL) {
    1926           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1927             :                 }
    1928           2 :                 if (r->in.servername == NULL) {
    1929           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1930             :                 }
    1931           2 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    1932           2 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->in.timestamp));
    1933           2 :                 NDR_CHECK(ndr_push_eventlogEventTypes(ndr, NDR_SCALARS, r->in.event_type));
    1934           2 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.event_category));
    1935           2 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.event_id));
    1936           2 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.num_of_strings));
    1937           2 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.data_size));
    1938           2 :                 NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.servername));
    1939           2 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.user_sid));
    1940           2 :                 if (r->in.user_sid) {
    1941           0 :                         NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, r->in.user_sid));
    1942             :                 }
    1943           2 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.strings));
    1944           2 :                 if (r->in.strings) {
    1945           2 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.num_of_strings));
    1946           4 :                         for (cntr_strings_1 = 0; cntr_strings_1 < (r->in.num_of_strings); cntr_strings_1++) {
    1947           0 :                         }
    1948           4 :                         for (cntr_strings_1 = 0; cntr_strings_1 < (r->in.num_of_strings); cntr_strings_1++) {
    1949           2 :                                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.strings[cntr_strings_1]));
    1950           2 :                                 if (r->in.strings[cntr_strings_1]) {
    1951           2 :                                         NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.strings[cntr_strings_1]));
    1952             :                                 }
    1953             :                         }
    1954             :                 }
    1955           2 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.data));
    1956           2 :                 if (r->in.data) {
    1957           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.data_size));
    1958           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.data, r->in.data_size));
    1959             :                 }
    1960           2 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.flags));
    1961           2 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.record_number));
    1962           2 :                 if (r->in.record_number) {
    1963           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.record_number));
    1964             :                 }
    1965           2 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.time_written));
    1966           2 :                 if (r->in.time_written) {
    1967           2 :                         NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, *r->in.time_written));
    1968             :                 }
    1969             :         }
    1970           4 :         if (flags & NDR_OUT) {
    1971           2 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.record_number));
    1972           2 :                 if (r->out.record_number) {
    1973           2 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.record_number));
    1974             :                 }
    1975           2 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.time_written));
    1976           2 :                 if (r->out.time_written) {
    1977           2 :                         NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, *r->out.time_written));
    1978             :                 }
    1979           2 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    1980             :         }
    1981           4 :         return NDR_ERR_SUCCESS;
    1982             : }
    1983             : 
    1984           4 : static enum ndr_err_code ndr_pull_eventlog_ReportEventW(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_ReportEventW *r)
    1985             : {
    1986           0 :         uint32_t _ptr_user_sid;
    1987           0 :         uint32_t _ptr_strings;
    1988           4 :         uint32_t size_strings_1 = 0;
    1989           0 :         uint32_t cntr_strings_1;
    1990           0 :         uint32_t _ptr_data;
    1991           4 :         uint32_t size_data_1 = 0;
    1992           0 :         uint32_t _ptr_record_number;
    1993           0 :         uint32_t _ptr_time_written;
    1994           4 :         TALLOC_CTX *_mem_save_handle_0 = NULL;
    1995           4 :         TALLOC_CTX *_mem_save_servername_0 = NULL;
    1996           4 :         TALLOC_CTX *_mem_save_user_sid_0 = NULL;
    1997           4 :         TALLOC_CTX *_mem_save_strings_0 = NULL;
    1998           4 :         TALLOC_CTX *_mem_save_strings_1 = NULL;
    1999           4 :         TALLOC_CTX *_mem_save_strings_2 = NULL;
    2000           4 :         TALLOC_CTX *_mem_save_data_0 = NULL;
    2001           4 :         TALLOC_CTX *_mem_save_record_number_0 = NULL;
    2002           4 :         TALLOC_CTX *_mem_save_time_written_0 = NULL;
    2003           4 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2004           4 :         if (flags & NDR_IN) {
    2005           2 :                 NDR_ZERO_STRUCT(r->out);
    2006             : 
    2007           2 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2008           2 :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    2009             :                 }
    2010           2 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2011           2 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
    2012           2 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    2013           2 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
    2014           2 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->in.timestamp));
    2015           2 :                 NDR_CHECK(ndr_pull_eventlogEventTypes(ndr, NDR_SCALARS, &r->in.event_type));
    2016           2 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.event_category));
    2017           2 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.event_id));
    2018           2 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.num_of_strings));
    2019           2 :                 if (r->in.num_of_strings > 256) {
    2020           0 :                         return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu16") out of range (%"PRIu16" - %"PRIu16")", (uint16_t)(r->in.num_of_strings), (uint16_t)(0), (uint16_t)(256));
    2021             :                 }
    2022           2 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.data_size));
    2023           2 :                 if (r->in.data_size > 262143) {
    2024           0 :                         return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.data_size), (uint32_t)(0), (uint32_t)(262143));
    2025             :                 }
    2026           2 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2027           2 :                         NDR_PULL_ALLOC(ndr, r->in.servername);
    2028             :                 }
    2029           2 :                 _mem_save_servername_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2030           2 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.servername, LIBNDR_FLAG_REF_ALLOC);
    2031           2 :                 NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.servername));
    2032           2 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_servername_0, LIBNDR_FLAG_REF_ALLOC);
    2033           2 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_user_sid));
    2034           2 :                 if (_ptr_user_sid) {
    2035           0 :                         NDR_PULL_ALLOC(ndr, r->in.user_sid);
    2036             :                 } else {
    2037           2 :                         r->in.user_sid = NULL;
    2038             :                 }
    2039           2 :                 if (r->in.user_sid) {
    2040           0 :                         _mem_save_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2041           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.user_sid, 0);
    2042           0 :                         NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS, r->in.user_sid));
    2043           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_user_sid_0, 0);
    2044             :                 }
    2045           2 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_strings));
    2046           2 :                 if (_ptr_strings) {
    2047           2 :                         NDR_PULL_ALLOC(ndr, r->in.strings);
    2048             :                 } else {
    2049           0 :                         r->in.strings = NULL;
    2050             :                 }
    2051           2 :                 if (r->in.strings) {
    2052           2 :                         _mem_save_strings_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2053           2 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.strings, 0);
    2054           2 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.strings));
    2055           2 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.strings, &size_strings_1));
    2056           2 :                         NDR_PULL_ALLOC_N(ndr, r->in.strings, size_strings_1);
    2057           2 :                         _mem_save_strings_1 = NDR_PULL_GET_MEM_CTX(ndr);
    2058           2 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.strings, 0);
    2059           4 :                         for (cntr_strings_1 = 0; cntr_strings_1 < (size_strings_1); cntr_strings_1++) {
    2060           0 :                         }
    2061           4 :                         for (cntr_strings_1 = 0; cntr_strings_1 < (size_strings_1); cntr_strings_1++) {
    2062           2 :                                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_strings));
    2063           2 :                                 if (_ptr_strings) {
    2064           2 :                                         NDR_PULL_ALLOC(ndr, r->in.strings[cntr_strings_1]);
    2065             :                                 } else {
    2066           0 :                                         r->in.strings[cntr_strings_1] = NULL;
    2067             :                                 }
    2068           2 :                                 if (r->in.strings[cntr_strings_1]) {
    2069           2 :                                         _mem_save_strings_2 = NDR_PULL_GET_MEM_CTX(ndr);
    2070           2 :                                         NDR_PULL_SET_MEM_CTX(ndr, r->in.strings[cntr_strings_1], 0);
    2071           2 :                                         NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.strings[cntr_strings_1]));
    2072           2 :                                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_strings_2, 0);
    2073             :                                 }
    2074             :                         }
    2075           2 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_strings_1, 0);
    2076           2 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_strings_0, 0);
    2077             :                 }
    2078           2 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data));
    2079           2 :                 if (_ptr_data) {
    2080           0 :                         NDR_PULL_ALLOC(ndr, r->in.data);
    2081             :                 } else {
    2082           2 :                         r->in.data = NULL;
    2083             :                 }
    2084           2 :                 if (r->in.data) {
    2085           0 :                         _mem_save_data_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2086           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.data, 0);
    2087           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.data));
    2088           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.data, &size_data_1));
    2089           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.data, size_data_1);
    2090           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.data, size_data_1));
    2091           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_0, 0);
    2092             :                 }
    2093           2 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.flags));
    2094           2 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_record_number));
    2095           2 :                 if (_ptr_record_number) {
    2096           2 :                         NDR_PULL_ALLOC(ndr, r->in.record_number);
    2097             :                 } else {
    2098           0 :                         r->in.record_number = NULL;
    2099             :                 }
    2100           2 :                 if (r->in.record_number) {
    2101           2 :                         _mem_save_record_number_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2102           2 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.record_number, 0);
    2103           2 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.record_number));
    2104           2 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_record_number_0, 0);
    2105             :                 }
    2106           2 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_time_written));
    2107           2 :                 if (_ptr_time_written) {
    2108           2 :                         NDR_PULL_ALLOC(ndr, r->in.time_written);
    2109             :                 } else {
    2110           0 :                         r->in.time_written = NULL;
    2111             :                 }
    2112           2 :                 if (r->in.time_written) {
    2113           2 :                         _mem_save_time_written_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2114           2 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.time_written, 0);
    2115           2 :                         NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, r->in.time_written));
    2116           2 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_time_written_0, 0);
    2117             :                 }
    2118           2 :                 if (r->in.strings) {
    2119           2 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.strings, r->in.num_of_strings));
    2120             :                 }
    2121           4 :                 for (cntr_strings_1 = 0; cntr_strings_1 < (size_strings_1); cntr_strings_1++) {
    2122           0 :                 }
    2123           2 :                 if (r->in.data) {
    2124           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.data, r->in.data_size));
    2125             :                 }
    2126             :         }
    2127           4 :         if (flags & NDR_OUT) {
    2128             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2129             :                 if (r->in.handle == NULL) {
    2130             :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    2131             :                         NDR_ZERO_STRUCTP(r->in.handle);
    2132             :                 }
    2133             :                 if (r->in.servername == NULL) {
    2134             :                         NDR_PULL_ALLOC(ndr, r->in.servername);
    2135             :                         NDR_ZERO_STRUCTP(r->in.servername);
    2136             :                 }
    2137             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2138           2 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_record_number));
    2139           2 :                 if (_ptr_record_number) {
    2140           2 :                         NDR_PULL_ALLOC(ndr, r->out.record_number);
    2141             :                 } else {
    2142           0 :                         r->out.record_number = NULL;
    2143             :                 }
    2144           2 :                 if (r->out.record_number) {
    2145           2 :                         _mem_save_record_number_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2146           2 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.record_number, 0);
    2147           2 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.record_number));
    2148           2 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_record_number_0, 0);
    2149             :                 }
    2150           2 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_time_written));
    2151           2 :                 if (_ptr_time_written) {
    2152           2 :                         NDR_PULL_ALLOC(ndr, r->out.time_written);
    2153             :                 } else {
    2154           0 :                         r->out.time_written = NULL;
    2155             :                 }
    2156           2 :                 if (r->out.time_written) {
    2157           2 :                         _mem_save_time_written_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2158           2 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.time_written, 0);
    2159           2 :                         NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, r->out.time_written));
    2160           2 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_time_written_0, 0);
    2161             :                 }
    2162           2 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    2163             :         }
    2164           4 :         return NDR_ERR_SUCCESS;
    2165             : }
    2166             : 
    2167           0 : _PUBLIC_ void ndr_print_eventlog_ReportEventW(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_ReportEventW *r)
    2168             : {
    2169           0 :         uint32_t cntr_strings_1;
    2170           0 :         ndr_print_struct(ndr, name, "eventlog_ReportEventW");
    2171           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2172           0 :         ndr->depth++;
    2173           0 :         if (flags & NDR_SET_VALUES) {
    2174           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2175             :         }
    2176           0 :         if (flags & NDR_IN) {
    2177           0 :                 ndr_print_struct(ndr, "in", "eventlog_ReportEventW");
    2178           0 :                 ndr->depth++;
    2179           0 :                 ndr_print_ptr(ndr, "handle", r->in.handle);
    2180           0 :                 ndr->depth++;
    2181           0 :                 ndr_print_policy_handle(ndr, "handle", r->in.handle);
    2182           0 :                 ndr->depth--;
    2183           0 :                 ndr_print_time_t(ndr, "timestamp", r->in.timestamp);
    2184           0 :                 ndr_print_eventlogEventTypes(ndr, "event_type", r->in.event_type);
    2185           0 :                 ndr_print_uint16(ndr, "event_category", r->in.event_category);
    2186           0 :                 ndr_print_uint32(ndr, "event_id", r->in.event_id);
    2187           0 :                 ndr_print_uint16(ndr, "num_of_strings", r->in.num_of_strings);
    2188           0 :                 ndr_print_uint32(ndr, "data_size", r->in.data_size);
    2189           0 :                 ndr_print_ptr(ndr, "servername", r->in.servername);
    2190           0 :                 ndr->depth++;
    2191           0 :                 ndr_print_lsa_String(ndr, "servername", r->in.servername);
    2192           0 :                 ndr->depth--;
    2193           0 :                 ndr_print_ptr(ndr, "user_sid", r->in.user_sid);
    2194           0 :                 ndr->depth++;
    2195           0 :                 if (r->in.user_sid) {
    2196           0 :                         ndr_print_dom_sid(ndr, "user_sid", r->in.user_sid);
    2197             :                 }
    2198           0 :                 ndr->depth--;
    2199           0 :                 ndr_print_ptr(ndr, "strings", r->in.strings);
    2200           0 :                 ndr->depth++;
    2201           0 :                 if (r->in.strings) {
    2202           0 :                         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "strings", (uint32_t)(r->in.num_of_strings));
    2203           0 :                         ndr->depth++;
    2204           0 :                         for (cntr_strings_1 = 0; cntr_strings_1 < (r->in.num_of_strings); cntr_strings_1++) {
    2205           0 :                                 ndr_print_ptr(ndr, "strings", r->in.strings[cntr_strings_1]);
    2206           0 :                                 ndr->depth++;
    2207           0 :                                 if (r->in.strings[cntr_strings_1]) {
    2208           0 :                                         ndr_print_lsa_String(ndr, "strings", r->in.strings[cntr_strings_1]);
    2209             :                                 }
    2210           0 :                                 ndr->depth--;
    2211             :                         }
    2212           0 :                         ndr->depth--;
    2213             :                 }
    2214           0 :                 ndr->depth--;
    2215           0 :                 ndr_print_ptr(ndr, "data", r->in.data);
    2216           0 :                 ndr->depth++;
    2217           0 :                 if (r->in.data) {
    2218           0 :                         ndr_print_array_uint8(ndr, "data", r->in.data, r->in.data_size);
    2219             :                 }
    2220           0 :                 ndr->depth--;
    2221           0 :                 ndr_print_uint16(ndr, "flags", r->in.flags);
    2222           0 :                 ndr_print_ptr(ndr, "record_number", r->in.record_number);
    2223           0 :                 ndr->depth++;
    2224           0 :                 if (r->in.record_number) {
    2225           0 :                         ndr_print_uint32(ndr, "record_number", *r->in.record_number);
    2226             :                 }
    2227           0 :                 ndr->depth--;
    2228           0 :                 ndr_print_ptr(ndr, "time_written", r->in.time_written);
    2229           0 :                 ndr->depth++;
    2230           0 :                 if (r->in.time_written) {
    2231           0 :                         ndr_print_time_t(ndr, "time_written", *r->in.time_written);
    2232             :                 }
    2233           0 :                 ndr->depth--;
    2234           0 :                 ndr->depth--;
    2235             :         }
    2236           0 :         if (flags & NDR_OUT) {
    2237           0 :                 ndr_print_struct(ndr, "out", "eventlog_ReportEventW");
    2238           0 :                 ndr->depth++;
    2239           0 :                 ndr_print_ptr(ndr, "record_number", r->out.record_number);
    2240           0 :                 ndr->depth++;
    2241           0 :                 if (r->out.record_number) {
    2242           0 :                         ndr_print_uint32(ndr, "record_number", *r->out.record_number);
    2243             :                 }
    2244           0 :                 ndr->depth--;
    2245           0 :                 ndr_print_ptr(ndr, "time_written", r->out.time_written);
    2246           0 :                 ndr->depth++;
    2247           0 :                 if (r->out.time_written) {
    2248           0 :                         ndr_print_time_t(ndr, "time_written", *r->out.time_written);
    2249             :                 }
    2250           0 :                 ndr->depth--;
    2251           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    2252           0 :                 ndr->depth--;
    2253             :         }
    2254           0 :         ndr->depth--;
    2255             : }
    2256             : 
    2257           0 : static enum ndr_err_code ndr_push_eventlog_ClearEventLogA(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_ClearEventLogA *r)
    2258             : {
    2259           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2260           0 :         if (flags & NDR_IN) {
    2261           0 :         }
    2262           0 :         if (flags & NDR_OUT) {
    2263           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    2264             :         }
    2265           0 :         return NDR_ERR_SUCCESS;
    2266             : }
    2267             : 
    2268           0 : static enum ndr_err_code ndr_pull_eventlog_ClearEventLogA(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_ClearEventLogA *r)
    2269             : {
    2270           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2271           0 :         if (flags & NDR_IN) {
    2272           0 :         }
    2273           0 :         if (flags & NDR_OUT) {
    2274             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2275             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2276           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    2277             :         }
    2278           0 :         return NDR_ERR_SUCCESS;
    2279             : }
    2280             : 
    2281           0 : _PUBLIC_ void ndr_print_eventlog_ClearEventLogA(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_ClearEventLogA *r)
    2282             : {
    2283           0 :         ndr_print_struct(ndr, name, "eventlog_ClearEventLogA");
    2284           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2285           0 :         ndr->depth++;
    2286           0 :         if (flags & NDR_SET_VALUES) {
    2287           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2288             :         }
    2289           0 :         if (flags & NDR_IN) {
    2290           0 :                 ndr_print_struct(ndr, "in", "eventlog_ClearEventLogA");
    2291           0 :                 ndr->depth++;
    2292           0 :                 ndr->depth--;
    2293             :         }
    2294           0 :         if (flags & NDR_OUT) {
    2295           0 :                 ndr_print_struct(ndr, "out", "eventlog_ClearEventLogA");
    2296           0 :                 ndr->depth++;
    2297           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    2298           0 :                 ndr->depth--;
    2299             :         }
    2300           0 :         ndr->depth--;
    2301             : }
    2302             : 
    2303           0 : static enum ndr_err_code ndr_push_eventlog_BackupEventLogA(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_BackupEventLogA *r)
    2304             : {
    2305           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2306           0 :         if (flags & NDR_IN) {
    2307           0 :         }
    2308           0 :         if (flags & NDR_OUT) {
    2309           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    2310             :         }
    2311           0 :         return NDR_ERR_SUCCESS;
    2312             : }
    2313             : 
    2314           0 : static enum ndr_err_code ndr_pull_eventlog_BackupEventLogA(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_BackupEventLogA *r)
    2315             : {
    2316           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2317           0 :         if (flags & NDR_IN) {
    2318           0 :         }
    2319           0 :         if (flags & NDR_OUT) {
    2320             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2321             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2322           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    2323             :         }
    2324           0 :         return NDR_ERR_SUCCESS;
    2325             : }
    2326             : 
    2327           0 : _PUBLIC_ void ndr_print_eventlog_BackupEventLogA(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_BackupEventLogA *r)
    2328             : {
    2329           0 :         ndr_print_struct(ndr, name, "eventlog_BackupEventLogA");
    2330           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2331           0 :         ndr->depth++;
    2332           0 :         if (flags & NDR_SET_VALUES) {
    2333           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2334             :         }
    2335           0 :         if (flags & NDR_IN) {
    2336           0 :                 ndr_print_struct(ndr, "in", "eventlog_BackupEventLogA");
    2337           0 :                 ndr->depth++;
    2338           0 :                 ndr->depth--;
    2339             :         }
    2340           0 :         if (flags & NDR_OUT) {
    2341           0 :                 ndr_print_struct(ndr, "out", "eventlog_BackupEventLogA");
    2342           0 :                 ndr->depth++;
    2343           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    2344           0 :                 ndr->depth--;
    2345             :         }
    2346           0 :         ndr->depth--;
    2347             : }
    2348             : 
    2349           0 : static enum ndr_err_code ndr_push_eventlog_OpenEventLogA(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_OpenEventLogA *r)
    2350             : {
    2351           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2352           0 :         if (flags & NDR_IN) {
    2353           0 :         }
    2354           0 :         if (flags & NDR_OUT) {
    2355           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    2356             :         }
    2357           0 :         return NDR_ERR_SUCCESS;
    2358             : }
    2359             : 
    2360           0 : static enum ndr_err_code ndr_pull_eventlog_OpenEventLogA(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_OpenEventLogA *r)
    2361             : {
    2362           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2363           0 :         if (flags & NDR_IN) {
    2364           0 :         }
    2365           0 :         if (flags & NDR_OUT) {
    2366             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2367             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2368           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    2369             :         }
    2370           0 :         return NDR_ERR_SUCCESS;
    2371             : }
    2372             : 
    2373           0 : _PUBLIC_ void ndr_print_eventlog_OpenEventLogA(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_OpenEventLogA *r)
    2374             : {
    2375           0 :         ndr_print_struct(ndr, name, "eventlog_OpenEventLogA");
    2376           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2377           0 :         ndr->depth++;
    2378           0 :         if (flags & NDR_SET_VALUES) {
    2379           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2380             :         }
    2381           0 :         if (flags & NDR_IN) {
    2382           0 :                 ndr_print_struct(ndr, "in", "eventlog_OpenEventLogA");
    2383           0 :                 ndr->depth++;
    2384           0 :                 ndr->depth--;
    2385             :         }
    2386           0 :         if (flags & NDR_OUT) {
    2387           0 :                 ndr_print_struct(ndr, "out", "eventlog_OpenEventLogA");
    2388           0 :                 ndr->depth++;
    2389           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    2390           0 :                 ndr->depth--;
    2391             :         }
    2392           0 :         ndr->depth--;
    2393             : }
    2394             : 
    2395           0 : static enum ndr_err_code ndr_push_eventlog_RegisterEventSourceA(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_RegisterEventSourceA *r)
    2396             : {
    2397           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2398           0 :         if (flags & NDR_IN) {
    2399           0 :         }
    2400           0 :         if (flags & NDR_OUT) {
    2401           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    2402             :         }
    2403           0 :         return NDR_ERR_SUCCESS;
    2404             : }
    2405             : 
    2406           0 : static enum ndr_err_code ndr_pull_eventlog_RegisterEventSourceA(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_RegisterEventSourceA *r)
    2407             : {
    2408           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2409           0 :         if (flags & NDR_IN) {
    2410           0 :         }
    2411           0 :         if (flags & NDR_OUT) {
    2412             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2413             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2414           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    2415             :         }
    2416           0 :         return NDR_ERR_SUCCESS;
    2417             : }
    2418             : 
    2419           0 : _PUBLIC_ void ndr_print_eventlog_RegisterEventSourceA(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_RegisterEventSourceA *r)
    2420             : {
    2421           0 :         ndr_print_struct(ndr, name, "eventlog_RegisterEventSourceA");
    2422           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2423           0 :         ndr->depth++;
    2424           0 :         if (flags & NDR_SET_VALUES) {
    2425           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2426             :         }
    2427           0 :         if (flags & NDR_IN) {
    2428           0 :                 ndr_print_struct(ndr, "in", "eventlog_RegisterEventSourceA");
    2429           0 :                 ndr->depth++;
    2430           0 :                 ndr->depth--;
    2431             :         }
    2432           0 :         if (flags & NDR_OUT) {
    2433           0 :                 ndr_print_struct(ndr, "out", "eventlog_RegisterEventSourceA");
    2434           0 :                 ndr->depth++;
    2435           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    2436           0 :                 ndr->depth--;
    2437             :         }
    2438           0 :         ndr->depth--;
    2439             : }
    2440             : 
    2441           0 : static enum ndr_err_code ndr_push_eventlog_OpenBackupEventLogA(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_OpenBackupEventLogA *r)
    2442             : {
    2443           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2444           0 :         if (flags & NDR_IN) {
    2445           0 :         }
    2446           0 :         if (flags & NDR_OUT) {
    2447           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    2448             :         }
    2449           0 :         return NDR_ERR_SUCCESS;
    2450             : }
    2451             : 
    2452           0 : static enum ndr_err_code ndr_pull_eventlog_OpenBackupEventLogA(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_OpenBackupEventLogA *r)
    2453             : {
    2454           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2455           0 :         if (flags & NDR_IN) {
    2456           0 :         }
    2457           0 :         if (flags & NDR_OUT) {
    2458             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2459             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2460           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    2461             :         }
    2462           0 :         return NDR_ERR_SUCCESS;
    2463             : }
    2464             : 
    2465           0 : _PUBLIC_ void ndr_print_eventlog_OpenBackupEventLogA(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_OpenBackupEventLogA *r)
    2466             : {
    2467           0 :         ndr_print_struct(ndr, name, "eventlog_OpenBackupEventLogA");
    2468           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2469           0 :         ndr->depth++;
    2470           0 :         if (flags & NDR_SET_VALUES) {
    2471           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2472             :         }
    2473           0 :         if (flags & NDR_IN) {
    2474           0 :                 ndr_print_struct(ndr, "in", "eventlog_OpenBackupEventLogA");
    2475           0 :                 ndr->depth++;
    2476           0 :                 ndr->depth--;
    2477             :         }
    2478           0 :         if (flags & NDR_OUT) {
    2479           0 :                 ndr_print_struct(ndr, "out", "eventlog_OpenBackupEventLogA");
    2480           0 :                 ndr->depth++;
    2481           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    2482           0 :                 ndr->depth--;
    2483             :         }
    2484           0 :         ndr->depth--;
    2485             : }
    2486             : 
    2487           0 : static enum ndr_err_code ndr_push_eventlog_ReadEventLogA(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_ReadEventLogA *r)
    2488             : {
    2489           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2490           0 :         if (flags & NDR_IN) {
    2491           0 :         }
    2492           0 :         if (flags & NDR_OUT) {
    2493           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    2494             :         }
    2495           0 :         return NDR_ERR_SUCCESS;
    2496             : }
    2497             : 
    2498           0 : static enum ndr_err_code ndr_pull_eventlog_ReadEventLogA(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_ReadEventLogA *r)
    2499             : {
    2500           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2501           0 :         if (flags & NDR_IN) {
    2502           0 :         }
    2503           0 :         if (flags & NDR_OUT) {
    2504             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2505             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2506           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    2507             :         }
    2508           0 :         return NDR_ERR_SUCCESS;
    2509             : }
    2510             : 
    2511           0 : _PUBLIC_ void ndr_print_eventlog_ReadEventLogA(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_ReadEventLogA *r)
    2512             : {
    2513           0 :         ndr_print_struct(ndr, name, "eventlog_ReadEventLogA");
    2514           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2515           0 :         ndr->depth++;
    2516           0 :         if (flags & NDR_SET_VALUES) {
    2517           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2518             :         }
    2519           0 :         if (flags & NDR_IN) {
    2520           0 :                 ndr_print_struct(ndr, "in", "eventlog_ReadEventLogA");
    2521           0 :                 ndr->depth++;
    2522           0 :                 ndr->depth--;
    2523             :         }
    2524           0 :         if (flags & NDR_OUT) {
    2525           0 :                 ndr_print_struct(ndr, "out", "eventlog_ReadEventLogA");
    2526           0 :                 ndr->depth++;
    2527           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    2528           0 :                 ndr->depth--;
    2529             :         }
    2530           0 :         ndr->depth--;
    2531             : }
    2532             : 
    2533           0 : static enum ndr_err_code ndr_push_eventlog_ReportEventA(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_ReportEventA *r)
    2534             : {
    2535           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2536           0 :         if (flags & NDR_IN) {
    2537           0 :         }
    2538           0 :         if (flags & NDR_OUT) {
    2539           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    2540             :         }
    2541           0 :         return NDR_ERR_SUCCESS;
    2542             : }
    2543             : 
    2544           0 : static enum ndr_err_code ndr_pull_eventlog_ReportEventA(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_ReportEventA *r)
    2545             : {
    2546           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2547           0 :         if (flags & NDR_IN) {
    2548           0 :         }
    2549           0 :         if (flags & NDR_OUT) {
    2550             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2551             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2552           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    2553             :         }
    2554           0 :         return NDR_ERR_SUCCESS;
    2555             : }
    2556             : 
    2557           0 : _PUBLIC_ void ndr_print_eventlog_ReportEventA(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_ReportEventA *r)
    2558             : {
    2559           0 :         ndr_print_struct(ndr, name, "eventlog_ReportEventA");
    2560           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2561           0 :         ndr->depth++;
    2562           0 :         if (flags & NDR_SET_VALUES) {
    2563           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2564             :         }
    2565           0 :         if (flags & NDR_IN) {
    2566           0 :                 ndr_print_struct(ndr, "in", "eventlog_ReportEventA");
    2567           0 :                 ndr->depth++;
    2568           0 :                 ndr->depth--;
    2569             :         }
    2570           0 :         if (flags & NDR_OUT) {
    2571           0 :                 ndr_print_struct(ndr, "out", "eventlog_ReportEventA");
    2572           0 :                 ndr->depth++;
    2573           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    2574           0 :                 ndr->depth--;
    2575             :         }
    2576           0 :         ndr->depth--;
    2577             : }
    2578             : 
    2579           0 : static enum ndr_err_code ndr_push_eventlog_RegisterClusterSvc(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_RegisterClusterSvc *r)
    2580             : {
    2581           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2582           0 :         if (flags & NDR_IN) {
    2583           0 :         }
    2584           0 :         if (flags & NDR_OUT) {
    2585           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    2586             :         }
    2587           0 :         return NDR_ERR_SUCCESS;
    2588             : }
    2589             : 
    2590           0 : static enum ndr_err_code ndr_pull_eventlog_RegisterClusterSvc(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_RegisterClusterSvc *r)
    2591             : {
    2592           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2593           0 :         if (flags & NDR_IN) {
    2594           0 :         }
    2595           0 :         if (flags & NDR_OUT) {
    2596             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2597             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2598           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    2599             :         }
    2600           0 :         return NDR_ERR_SUCCESS;
    2601             : }
    2602             : 
    2603           0 : _PUBLIC_ void ndr_print_eventlog_RegisterClusterSvc(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_RegisterClusterSvc *r)
    2604             : {
    2605           0 :         ndr_print_struct(ndr, name, "eventlog_RegisterClusterSvc");
    2606           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2607           0 :         ndr->depth++;
    2608           0 :         if (flags & NDR_SET_VALUES) {
    2609           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2610             :         }
    2611           0 :         if (flags & NDR_IN) {
    2612           0 :                 ndr_print_struct(ndr, "in", "eventlog_RegisterClusterSvc");
    2613           0 :                 ndr->depth++;
    2614           0 :                 ndr->depth--;
    2615             :         }
    2616           0 :         if (flags & NDR_OUT) {
    2617           0 :                 ndr_print_struct(ndr, "out", "eventlog_RegisterClusterSvc");
    2618           0 :                 ndr->depth++;
    2619           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    2620           0 :                 ndr->depth--;
    2621             :         }
    2622           0 :         ndr->depth--;
    2623             : }
    2624             : 
    2625           0 : static enum ndr_err_code ndr_push_eventlog_DeregisterClusterSvc(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_DeregisterClusterSvc *r)
    2626             : {
    2627           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2628           0 :         if (flags & NDR_IN) {
    2629           0 :         }
    2630           0 :         if (flags & NDR_OUT) {
    2631           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    2632             :         }
    2633           0 :         return NDR_ERR_SUCCESS;
    2634             : }
    2635             : 
    2636           0 : static enum ndr_err_code ndr_pull_eventlog_DeregisterClusterSvc(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_DeregisterClusterSvc *r)
    2637             : {
    2638           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2639           0 :         if (flags & NDR_IN) {
    2640           0 :         }
    2641           0 :         if (flags & NDR_OUT) {
    2642             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2643             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2644           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    2645             :         }
    2646           0 :         return NDR_ERR_SUCCESS;
    2647             : }
    2648             : 
    2649           0 : _PUBLIC_ void ndr_print_eventlog_DeregisterClusterSvc(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_DeregisterClusterSvc *r)
    2650             : {
    2651           0 :         ndr_print_struct(ndr, name, "eventlog_DeregisterClusterSvc");
    2652           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2653           0 :         ndr->depth++;
    2654           0 :         if (flags & NDR_SET_VALUES) {
    2655           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2656             :         }
    2657           0 :         if (flags & NDR_IN) {
    2658           0 :                 ndr_print_struct(ndr, "in", "eventlog_DeregisterClusterSvc");
    2659           0 :                 ndr->depth++;
    2660           0 :                 ndr->depth--;
    2661             :         }
    2662           0 :         if (flags & NDR_OUT) {
    2663           0 :                 ndr_print_struct(ndr, "out", "eventlog_DeregisterClusterSvc");
    2664           0 :                 ndr->depth++;
    2665           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    2666           0 :                 ndr->depth--;
    2667             :         }
    2668           0 :         ndr->depth--;
    2669             : }
    2670             : 
    2671           0 : static enum ndr_err_code ndr_push_eventlog_WriteClusterEvents(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_WriteClusterEvents *r)
    2672             : {
    2673           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2674           0 :         if (flags & NDR_IN) {
    2675           0 :         }
    2676           0 :         if (flags & NDR_OUT) {
    2677           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    2678             :         }
    2679           0 :         return NDR_ERR_SUCCESS;
    2680             : }
    2681             : 
    2682           0 : static enum ndr_err_code ndr_pull_eventlog_WriteClusterEvents(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_WriteClusterEvents *r)
    2683             : {
    2684           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2685           0 :         if (flags & NDR_IN) {
    2686           0 :         }
    2687           0 :         if (flags & NDR_OUT) {
    2688             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2689             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2690           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    2691             :         }
    2692           0 :         return NDR_ERR_SUCCESS;
    2693             : }
    2694             : 
    2695           0 : _PUBLIC_ void ndr_print_eventlog_WriteClusterEvents(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_WriteClusterEvents *r)
    2696             : {
    2697           0 :         ndr_print_struct(ndr, name, "eventlog_WriteClusterEvents");
    2698           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2699           0 :         ndr->depth++;
    2700           0 :         if (flags & NDR_SET_VALUES) {
    2701           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2702             :         }
    2703           0 :         if (flags & NDR_IN) {
    2704           0 :                 ndr_print_struct(ndr, "in", "eventlog_WriteClusterEvents");
    2705           0 :                 ndr->depth++;
    2706           0 :                 ndr->depth--;
    2707             :         }
    2708           0 :         if (flags & NDR_OUT) {
    2709           0 :                 ndr_print_struct(ndr, "out", "eventlog_WriteClusterEvents");
    2710           0 :                 ndr->depth++;
    2711           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    2712           0 :                 ndr->depth--;
    2713             :         }
    2714           0 :         ndr->depth--;
    2715             : }
    2716             : 
    2717          12 : static enum ndr_err_code ndr_push_eventlog_GetLogInformation(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_GetLogInformation *r)
    2718             : {
    2719          12 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2720          12 :         if (flags & NDR_IN) {
    2721           6 :                 if (r->in.handle == NULL) {
    2722           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2723             :                 }
    2724           6 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    2725           6 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.level));
    2726           6 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.buf_size));
    2727             :         }
    2728          12 :         if (flags & NDR_OUT) {
    2729           6 :                 if (r->out.buffer == NULL) {
    2730           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2731             :                 }
    2732           6 :                 if (r->out.bytes_needed == NULL) {
    2733           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2734             :                 }
    2735           6 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.buf_size));
    2736           6 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.buffer, r->in.buf_size));
    2737           6 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.bytes_needed));
    2738           6 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    2739             :         }
    2740          12 :         return NDR_ERR_SUCCESS;
    2741             : }
    2742             : 
    2743          12 : static enum ndr_err_code ndr_pull_eventlog_GetLogInformation(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_GetLogInformation *r)
    2744             : {
    2745          12 :         uint32_t size_buffer_1 = 0;
    2746          12 :         TALLOC_CTX *_mem_save_handle_0 = NULL;
    2747          12 :         TALLOC_CTX *_mem_save_bytes_needed_0 = NULL;
    2748          12 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2749          12 :         if (flags & NDR_IN) {
    2750           6 :                 NDR_ZERO_STRUCT(r->out);
    2751             : 
    2752           6 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2753           6 :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    2754             :                 }
    2755           6 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2756           6 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
    2757           6 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    2758           6 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
    2759           6 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.level));
    2760           6 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.buf_size));
    2761           6 :                 if (r->in.buf_size > 1024) {
    2762           0 :                         return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.buf_size), (uint32_t)(0), (uint32_t)(1024));
    2763             :                 }
    2764           6 :                 NDR_PULL_ALLOC_N(ndr, r->out.buffer, r->in.buf_size);
    2765           6 :                 memset(r->out.buffer, 0, (r->in.buf_size) * sizeof(*r->out.buffer));
    2766           6 :                 NDR_PULL_ALLOC(ndr, r->out.bytes_needed);
    2767           6 :                 NDR_ZERO_STRUCTP(r->out.bytes_needed);
    2768             :         }
    2769          12 :         if (flags & NDR_OUT) {
    2770             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2771             :                 if (r->in.handle == NULL) {
    2772             :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    2773             :                         NDR_ZERO_STRUCTP(r->in.handle);
    2774             :                 }
    2775             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2776           6 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.buffer));
    2777           6 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.buffer, &size_buffer_1));
    2778           6 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2779           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.buffer, size_buffer_1);
    2780             :                 }
    2781           6 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.buffer, size_buffer_1));
    2782           6 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2783           0 :                         NDR_PULL_ALLOC(ndr, r->out.bytes_needed);
    2784             :                 }
    2785           6 :                 _mem_save_bytes_needed_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2786           6 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.bytes_needed, LIBNDR_FLAG_REF_ALLOC);
    2787           6 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.bytes_needed));
    2788           6 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_bytes_needed_0, LIBNDR_FLAG_REF_ALLOC);
    2789           6 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    2790           6 :                 if (r->out.buffer) {
    2791           2 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.buffer, r->in.buf_size));
    2792             :                 }
    2793             :         }
    2794          12 :         return NDR_ERR_SUCCESS;
    2795             : }
    2796             : 
    2797           0 : _PUBLIC_ void ndr_print_eventlog_GetLogInformation(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_GetLogInformation *r)
    2798             : {
    2799           0 :         ndr_print_struct(ndr, name, "eventlog_GetLogInformation");
    2800           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2801           0 :         ndr->depth++;
    2802           0 :         if (flags & NDR_SET_VALUES) {
    2803           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2804             :         }
    2805           0 :         if (flags & NDR_IN) {
    2806           0 :                 ndr_print_struct(ndr, "in", "eventlog_GetLogInformation");
    2807           0 :                 ndr->depth++;
    2808           0 :                 ndr_print_ptr(ndr, "handle", r->in.handle);
    2809           0 :                 ndr->depth++;
    2810           0 :                 ndr_print_policy_handle(ndr, "handle", r->in.handle);
    2811           0 :                 ndr->depth--;
    2812           0 :                 ndr_print_uint32(ndr, "level", r->in.level);
    2813           0 :                 ndr_print_uint32(ndr, "buf_size", r->in.buf_size);
    2814           0 :                 ndr->depth--;
    2815             :         }
    2816           0 :         if (flags & NDR_OUT) {
    2817           0 :                 ndr_print_struct(ndr, "out", "eventlog_GetLogInformation");
    2818           0 :                 ndr->depth++;
    2819           0 :                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
    2820           0 :                 ndr->depth++;
    2821           0 :                 ndr_print_array_uint8(ndr, "buffer", r->out.buffer, r->in.buf_size);
    2822           0 :                 ndr->depth--;
    2823           0 :                 ndr_print_ptr(ndr, "bytes_needed", r->out.bytes_needed);
    2824           0 :                 ndr->depth++;
    2825           0 :                 ndr_print_uint32(ndr, "bytes_needed", *r->out.bytes_needed);
    2826           0 :                 ndr->depth--;
    2827           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    2828           0 :                 ndr->depth--;
    2829             :         }
    2830           0 :         ndr->depth--;
    2831             : }
    2832             : 
    2833           4 : static enum ndr_err_code ndr_push_eventlog_FlushEventLog(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_FlushEventLog *r)
    2834             : {
    2835           4 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2836           4 :         if (flags & NDR_IN) {
    2837           2 :                 if (r->in.handle == NULL) {
    2838           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2839             :                 }
    2840           2 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    2841             :         }
    2842           4 :         if (flags & NDR_OUT) {
    2843           2 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    2844             :         }
    2845           4 :         return NDR_ERR_SUCCESS;
    2846             : }
    2847             : 
    2848           4 : static enum ndr_err_code ndr_pull_eventlog_FlushEventLog(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_FlushEventLog *r)
    2849             : {
    2850           4 :         TALLOC_CTX *_mem_save_handle_0 = NULL;
    2851           4 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2852           4 :         if (flags & NDR_IN) {
    2853           2 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2854           2 :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    2855             :                 }
    2856           2 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2857           2 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
    2858           2 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    2859           2 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
    2860             :         }
    2861           4 :         if (flags & NDR_OUT) {
    2862             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2863             :                 if (r->in.handle == NULL) {
    2864             :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    2865             :                         NDR_ZERO_STRUCTP(r->in.handle);
    2866             :                 }
    2867             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2868           2 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    2869             :         }
    2870           4 :         return NDR_ERR_SUCCESS;
    2871             : }
    2872             : 
    2873           0 : _PUBLIC_ void ndr_print_eventlog_FlushEventLog(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_FlushEventLog *r)
    2874             : {
    2875           0 :         ndr_print_struct(ndr, name, "eventlog_FlushEventLog");
    2876           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2877           0 :         ndr->depth++;
    2878           0 :         if (flags & NDR_SET_VALUES) {
    2879           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2880             :         }
    2881           0 :         if (flags & NDR_IN) {
    2882           0 :                 ndr_print_struct(ndr, "in", "eventlog_FlushEventLog");
    2883           0 :                 ndr->depth++;
    2884           0 :                 ndr_print_ptr(ndr, "handle", r->in.handle);
    2885           0 :                 ndr->depth++;
    2886           0 :                 ndr_print_policy_handle(ndr, "handle", r->in.handle);
    2887           0 :                 ndr->depth--;
    2888           0 :                 ndr->depth--;
    2889             :         }
    2890           0 :         if (flags & NDR_OUT) {
    2891           0 :                 ndr_print_struct(ndr, "out", "eventlog_FlushEventLog");
    2892           0 :                 ndr->depth++;
    2893           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    2894           0 :                 ndr->depth--;
    2895             :         }
    2896           0 :         ndr->depth--;
    2897             : }
    2898             : 
    2899           0 : static enum ndr_err_code ndr_push_eventlog_ReportEventAndSourceW(struct ndr_push *ndr, ndr_flags_type flags, const struct eventlog_ReportEventAndSourceW *r)
    2900             : {
    2901           0 :         uint32_t cntr_strings_1;
    2902           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2903           0 :         if (flags & NDR_IN) {
    2904           0 :                 if (r->in.handle == NULL) {
    2905           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2906             :                 }
    2907           0 :                 if (r->in.sourcename == NULL) {
    2908           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2909             :                 }
    2910           0 :                 if (r->in.servername == NULL) {
    2911           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2912             :                 }
    2913           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    2914           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->in.timestamp));
    2915           0 :                 NDR_CHECK(ndr_push_eventlogEventTypes(ndr, NDR_SCALARS, r->in.event_type));
    2916           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.event_category));
    2917           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.event_id));
    2918           0 :                 NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sourcename));
    2919           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.num_of_strings));
    2920           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.data_size));
    2921           0 :                 NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.servername));
    2922           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.user_sid));
    2923           0 :                 if (r->in.user_sid) {
    2924           0 :                         NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, r->in.user_sid));
    2925             :                 }
    2926           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.strings));
    2927           0 :                 if (r->in.strings) {
    2928           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.num_of_strings));
    2929           0 :                         for (cntr_strings_1 = 0; cntr_strings_1 < (r->in.num_of_strings); cntr_strings_1++) {
    2930           0 :                         }
    2931           0 :                         for (cntr_strings_1 = 0; cntr_strings_1 < (r->in.num_of_strings); cntr_strings_1++) {
    2932           0 :                                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.strings[cntr_strings_1]));
    2933           0 :                                 if (r->in.strings[cntr_strings_1]) {
    2934           0 :                                         NDR_CHECK(ndr_push_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.strings[cntr_strings_1]));
    2935             :                                 }
    2936             :                         }
    2937             :                 }
    2938           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.data));
    2939           0 :                 if (r->in.data) {
    2940           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.data_size));
    2941           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.data, r->in.data_size));
    2942             :                 }
    2943           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.flags));
    2944           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.record_number));
    2945           0 :                 if (r->in.record_number) {
    2946           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.record_number));
    2947             :                 }
    2948           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.time_written));
    2949           0 :                 if (r->in.time_written) {
    2950           0 :                         NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, *r->in.time_written));
    2951             :                 }
    2952             :         }
    2953           0 :         if (flags & NDR_OUT) {
    2954           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.record_number));
    2955           0 :                 if (r->out.record_number) {
    2956           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.record_number));
    2957             :                 }
    2958           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.time_written));
    2959           0 :                 if (r->out.time_written) {
    2960           0 :                         NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, *r->out.time_written));
    2961             :                 }
    2962           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
    2963             :         }
    2964           0 :         return NDR_ERR_SUCCESS;
    2965             : }
    2966             : 
    2967           0 : static enum ndr_err_code ndr_pull_eventlog_ReportEventAndSourceW(struct ndr_pull *ndr, ndr_flags_type flags, struct eventlog_ReportEventAndSourceW *r)
    2968             : {
    2969           0 :         uint32_t _ptr_user_sid;
    2970           0 :         uint32_t _ptr_strings;
    2971           0 :         uint32_t size_strings_1 = 0;
    2972           0 :         uint32_t cntr_strings_1;
    2973           0 :         uint32_t _ptr_data;
    2974           0 :         uint32_t size_data_1 = 0;
    2975           0 :         uint32_t _ptr_record_number;
    2976           0 :         uint32_t _ptr_time_written;
    2977           0 :         TALLOC_CTX *_mem_save_handle_0 = NULL;
    2978           0 :         TALLOC_CTX *_mem_save_sourcename_0 = NULL;
    2979           0 :         TALLOC_CTX *_mem_save_servername_0 = NULL;
    2980           0 :         TALLOC_CTX *_mem_save_user_sid_0 = NULL;
    2981           0 :         TALLOC_CTX *_mem_save_strings_0 = NULL;
    2982           0 :         TALLOC_CTX *_mem_save_strings_1 = NULL;
    2983           0 :         TALLOC_CTX *_mem_save_strings_2 = NULL;
    2984           0 :         TALLOC_CTX *_mem_save_data_0 = NULL;
    2985           0 :         TALLOC_CTX *_mem_save_record_number_0 = NULL;
    2986           0 :         TALLOC_CTX *_mem_save_time_written_0 = NULL;
    2987           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2988           0 :         if (flags & NDR_IN) {
    2989           0 :                 NDR_ZERO_STRUCT(r->out);
    2990             : 
    2991           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2992           0 :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    2993             :                 }
    2994           0 :                 _mem_save_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2995           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.handle, LIBNDR_FLAG_REF_ALLOC);
    2996           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.handle));
    2997           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_handle_0, LIBNDR_FLAG_REF_ALLOC);
    2998           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->in.timestamp));
    2999           0 :                 NDR_CHECK(ndr_pull_eventlogEventTypes(ndr, NDR_SCALARS, &r->in.event_type));
    3000           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.event_category));
    3001           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.event_id));
    3002           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3003           0 :                         NDR_PULL_ALLOC(ndr, r->in.sourcename);
    3004             :                 }
    3005           0 :                 _mem_save_sourcename_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3006           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.sourcename, LIBNDR_FLAG_REF_ALLOC);
    3007           0 :                 NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sourcename));
    3008           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sourcename_0, LIBNDR_FLAG_REF_ALLOC);
    3009           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.num_of_strings));
    3010           0 :                 if (r->in.num_of_strings > 256) {
    3011           0 :                         return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu16") out of range (%"PRIu16" - %"PRIu16")", (uint16_t)(r->in.num_of_strings), (uint16_t)(0), (uint16_t)(256));
    3012             :                 }
    3013           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.data_size));
    3014           0 :                 if (r->in.data_size > 262143) {
    3015           0 :                         return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.data_size), (uint32_t)(0), (uint32_t)(262143));
    3016             :                 }
    3017           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3018           0 :                         NDR_PULL_ALLOC(ndr, r->in.servername);
    3019             :                 }
    3020           0 :                 _mem_save_servername_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3021           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.servername, LIBNDR_FLAG_REF_ALLOC);
    3022           0 :                 NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.servername));
    3023           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_servername_0, LIBNDR_FLAG_REF_ALLOC);
    3024           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_user_sid));
    3025           0 :                 if (_ptr_user_sid) {
    3026           0 :                         NDR_PULL_ALLOC(ndr, r->in.user_sid);
    3027             :                 } else {
    3028           0 :                         r->in.user_sid = NULL;
    3029             :                 }
    3030           0 :                 if (r->in.user_sid) {
    3031           0 :                         _mem_save_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3032           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.user_sid, 0);
    3033           0 :                         NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS, r->in.user_sid));
    3034           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_user_sid_0, 0);
    3035             :                 }
    3036           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_strings));
    3037           0 :                 if (_ptr_strings) {
    3038           0 :                         NDR_PULL_ALLOC(ndr, r->in.strings);
    3039             :                 } else {
    3040           0 :                         r->in.strings = NULL;
    3041             :                 }
    3042           0 :                 if (r->in.strings) {
    3043           0 :                         _mem_save_strings_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3044           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.strings, 0);
    3045           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.strings));
    3046           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.strings, &size_strings_1));
    3047           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.strings, size_strings_1);
    3048           0 :                         _mem_save_strings_1 = NDR_PULL_GET_MEM_CTX(ndr);
    3049           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.strings, 0);
    3050           0 :                         for (cntr_strings_1 = 0; cntr_strings_1 < (size_strings_1); cntr_strings_1++) {
    3051           0 :                         }
    3052           0 :                         for (cntr_strings_1 = 0; cntr_strings_1 < (size_strings_1); cntr_strings_1++) {
    3053           0 :                                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_strings));
    3054           0 :                                 if (_ptr_strings) {
    3055           0 :                                         NDR_PULL_ALLOC(ndr, r->in.strings[cntr_strings_1]);
    3056             :                                 } else {
    3057           0 :                                         r->in.strings[cntr_strings_1] = NULL;
    3058             :                                 }
    3059           0 :                                 if (r->in.strings[cntr_strings_1]) {
    3060           0 :                                         _mem_save_strings_2 = NDR_PULL_GET_MEM_CTX(ndr);
    3061           0 :                                         NDR_PULL_SET_MEM_CTX(ndr, r->in.strings[cntr_strings_1], 0);
    3062           0 :                                         NDR_CHECK(ndr_pull_lsa_String(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.strings[cntr_strings_1]));
    3063           0 :                                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_strings_2, 0);
    3064             :                                 }
    3065             :                         }
    3066           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_strings_1, 0);
    3067           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_strings_0, 0);
    3068             :                 }
    3069           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data));
    3070           0 :                 if (_ptr_data) {
    3071           0 :                         NDR_PULL_ALLOC(ndr, r->in.data);
    3072             :                 } else {
    3073           0 :                         r->in.data = NULL;
    3074             :                 }
    3075           0 :                 if (r->in.data) {
    3076           0 :                         _mem_save_data_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3077           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.data, 0);
    3078           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.data));
    3079           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.data, &size_data_1));
    3080           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.data, size_data_1);
    3081           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.data, size_data_1));
    3082           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_0, 0);
    3083             :                 }
    3084           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.flags));
    3085           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_record_number));
    3086           0 :                 if (_ptr_record_number) {
    3087           0 :                         NDR_PULL_ALLOC(ndr, r->in.record_number);
    3088             :                 } else {
    3089           0 :                         r->in.record_number = NULL;
    3090             :                 }
    3091           0 :                 if (r->in.record_number) {
    3092           0 :                         _mem_save_record_number_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3093           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.record_number, 0);
    3094           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.record_number));
    3095           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_record_number_0, 0);
    3096             :                 }
    3097           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_time_written));
    3098           0 :                 if (_ptr_time_written) {
    3099           0 :                         NDR_PULL_ALLOC(ndr, r->in.time_written);
    3100             :                 } else {
    3101           0 :                         r->in.time_written = NULL;
    3102             :                 }
    3103           0 :                 if (r->in.time_written) {
    3104           0 :                         _mem_save_time_written_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3105           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.time_written, 0);
    3106           0 :                         NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, r->in.time_written));
    3107           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_time_written_0, 0);
    3108             :                 }
    3109           0 :                 if (r->in.strings) {
    3110           0 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.strings, r->in.num_of_strings));
    3111             :                 }
    3112           0 :                 for (cntr_strings_1 = 0; cntr_strings_1 < (size_strings_1); cntr_strings_1++) {
    3113           0 :                 }
    3114           0 :                 if (r->in.data) {
    3115           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.data, r->in.data_size));
    3116             :                 }
    3117             :         }
    3118           0 :         if (flags & NDR_OUT) {
    3119             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3120             :                 if (r->in.handle == NULL) {
    3121             :                         NDR_PULL_ALLOC(ndr, r->in.handle);
    3122             :                         NDR_ZERO_STRUCTP(r->in.handle);
    3123             :                 }
    3124             :                 if (r->in.sourcename == NULL) {
    3125             :                         NDR_PULL_ALLOC(ndr, r->in.sourcename);
    3126             :                         NDR_ZERO_STRUCTP(r->in.sourcename);
    3127             :                 }
    3128             :                 if (r->in.servername == NULL) {
    3129             :                         NDR_PULL_ALLOC(ndr, r->in.servername);
    3130             :                         NDR_ZERO_STRUCTP(r->in.servername);
    3131             :                 }
    3132             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3133           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_record_number));
    3134           0 :                 if (_ptr_record_number) {
    3135           0 :                         NDR_PULL_ALLOC(ndr, r->out.record_number);
    3136             :                 } else {
    3137           0 :                         r->out.record_number = NULL;
    3138             :                 }
    3139           0 :                 if (r->out.record_number) {
    3140           0 :                         _mem_save_record_number_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3141           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.record_number, 0);
    3142           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.record_number));
    3143           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_record_number_0, 0);
    3144             :                 }
    3145           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_time_written));
    3146           0 :                 if (_ptr_time_written) {
    3147           0 :                         NDR_PULL_ALLOC(ndr, r->out.time_written);
    3148             :                 } else {
    3149           0 :                         r->out.time_written = NULL;
    3150             :                 }
    3151           0 :                 if (r->out.time_written) {
    3152           0 :                         _mem_save_time_written_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3153           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.time_written, 0);
    3154           0 :                         NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, r->out.time_written));
    3155           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_time_written_0, 0);
    3156             :                 }
    3157           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
    3158             :         }
    3159           0 :         return NDR_ERR_SUCCESS;
    3160             : }
    3161             : 
    3162           0 : _PUBLIC_ void ndr_print_eventlog_ReportEventAndSourceW(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct eventlog_ReportEventAndSourceW *r)
    3163             : {
    3164           0 :         uint32_t cntr_strings_1;
    3165           0 :         ndr_print_struct(ndr, name, "eventlog_ReportEventAndSourceW");
    3166           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3167           0 :         ndr->depth++;
    3168           0 :         if (flags & NDR_SET_VALUES) {
    3169           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3170             :         }
    3171           0 :         if (flags & NDR_IN) {
    3172           0 :                 ndr_print_struct(ndr, "in", "eventlog_ReportEventAndSourceW");
    3173           0 :                 ndr->depth++;
    3174           0 :                 ndr_print_ptr(ndr, "handle", r->in.handle);
    3175           0 :                 ndr->depth++;
    3176           0 :                 ndr_print_policy_handle(ndr, "handle", r->in.handle);
    3177           0 :                 ndr->depth--;
    3178           0 :                 ndr_print_time_t(ndr, "timestamp", r->in.timestamp);
    3179           0 :                 ndr_print_eventlogEventTypes(ndr, "event_type", r->in.event_type);
    3180           0 :                 ndr_print_uint16(ndr, "event_category", r->in.event_category);
    3181           0 :                 ndr_print_uint32(ndr, "event_id", r->in.event_id);
    3182           0 :                 ndr_print_ptr(ndr, "sourcename", r->in.sourcename);
    3183           0 :                 ndr->depth++;
    3184           0 :                 ndr_print_lsa_String(ndr, "sourcename", r->in.sourcename);
    3185           0 :                 ndr->depth--;
    3186           0 :                 ndr_print_uint16(ndr, "num_of_strings", r->in.num_of_strings);
    3187           0 :                 ndr_print_uint32(ndr, "data_size", r->in.data_size);
    3188           0 :                 ndr_print_ptr(ndr, "servername", r->in.servername);
    3189           0 :                 ndr->depth++;
    3190           0 :                 ndr_print_lsa_String(ndr, "servername", r->in.servername);
    3191           0 :                 ndr->depth--;
    3192           0 :                 ndr_print_ptr(ndr, "user_sid", r->in.user_sid);
    3193           0 :                 ndr->depth++;
    3194           0 :                 if (r->in.user_sid) {
    3195           0 :                         ndr_print_dom_sid(ndr, "user_sid", r->in.user_sid);
    3196             :                 }
    3197           0 :                 ndr->depth--;
    3198           0 :                 ndr_print_ptr(ndr, "strings", r->in.strings);
    3199           0 :                 ndr->depth++;
    3200           0 :                 if (r->in.strings) {
    3201           0 :                         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "strings", (uint32_t)(r->in.num_of_strings));
    3202           0 :                         ndr->depth++;
    3203           0 :                         for (cntr_strings_1 = 0; cntr_strings_1 < (r->in.num_of_strings); cntr_strings_1++) {
    3204           0 :                                 ndr_print_ptr(ndr, "strings", r->in.strings[cntr_strings_1]);
    3205           0 :                                 ndr->depth++;
    3206           0 :                                 if (r->in.strings[cntr_strings_1]) {
    3207           0 :                                         ndr_print_lsa_String(ndr, "strings", r->in.strings[cntr_strings_1]);
    3208             :                                 }
    3209           0 :                                 ndr->depth--;
    3210             :                         }
    3211           0 :                         ndr->depth--;
    3212             :                 }
    3213           0 :                 ndr->depth--;
    3214           0 :                 ndr_print_ptr(ndr, "data", r->in.data);
    3215           0 :                 ndr->depth++;
    3216           0 :                 if (r->in.data) {
    3217           0 :                         ndr_print_array_uint8(ndr, "data", r->in.data, r->in.data_size);
    3218             :                 }
    3219           0 :                 ndr->depth--;
    3220           0 :                 ndr_print_uint16(ndr, "flags", r->in.flags);
    3221           0 :                 ndr_print_ptr(ndr, "record_number", r->in.record_number);
    3222           0 :                 ndr->depth++;
    3223           0 :                 if (r->in.record_number) {
    3224           0 :                         ndr_print_uint32(ndr, "record_number", *r->in.record_number);
    3225             :                 }
    3226           0 :                 ndr->depth--;
    3227           0 :                 ndr_print_ptr(ndr, "time_written", r->in.time_written);
    3228           0 :                 ndr->depth++;
    3229           0 :                 if (r->in.time_written) {
    3230           0 :                         ndr_print_time_t(ndr, "time_written", *r->in.time_written);
    3231             :                 }
    3232           0 :                 ndr->depth--;
    3233           0 :                 ndr->depth--;
    3234             :         }
    3235           0 :         if (flags & NDR_OUT) {
    3236           0 :                 ndr_print_struct(ndr, "out", "eventlog_ReportEventAndSourceW");
    3237           0 :                 ndr->depth++;
    3238           0 :                 ndr_print_ptr(ndr, "record_number", r->out.record_number);
    3239           0 :                 ndr->depth++;
    3240           0 :                 if (r->out.record_number) {
    3241           0 :                         ndr_print_uint32(ndr, "record_number", *r->out.record_number);
    3242             :                 }
    3243           0 :                 ndr->depth--;
    3244           0 :                 ndr_print_ptr(ndr, "time_written", r->out.time_written);
    3245           0 :                 ndr->depth++;
    3246           0 :                 if (r->out.time_written) {
    3247           0 :                         ndr_print_time_t(ndr, "time_written", *r->out.time_written);
    3248             :                 }
    3249           0 :                 ndr->depth--;
    3250           0 :                 ndr_print_NTSTATUS(ndr, "result", r->out.result);
    3251           0 :                 ndr->depth--;
    3252             :         }
    3253           0 :         ndr->depth--;
    3254             : }
    3255             : 
    3256             : #ifndef SKIP_NDR_TABLE_eventlog
    3257             : static const struct ndr_interface_public_struct eventlog_public_structs[] = {
    3258             :         {
    3259             :                 .name = "eventlog_Record_tdb",
    3260             :                 .struct_size = sizeof(struct eventlog_Record_tdb ),
    3261             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_eventlog_Record_tdb,
    3262             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_eventlog_Record_tdb,
    3263             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_eventlog_Record_tdb,
    3264             :         },
    3265             :         {
    3266             :                 .name = "EVENTLOGHEADER",
    3267             :                 .struct_size = sizeof(struct EVENTLOGHEADER ),
    3268             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_EVENTLOGHEADER,
    3269             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_EVENTLOGHEADER,
    3270             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_EVENTLOGHEADER,
    3271             :         },
    3272             :         {
    3273             :                 .name = "EVENTLOGRECORD",
    3274             :                 .struct_size = sizeof(struct EVENTLOGRECORD ),
    3275             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_EVENTLOGRECORD,
    3276             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_EVENTLOGRECORD,
    3277             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_EVENTLOGRECORD,
    3278             :         },
    3279             :         {
    3280             :                 .name = "EVENTLOGEOF",
    3281             :                 .struct_size = sizeof(struct EVENTLOGEOF ),
    3282             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_EVENTLOGEOF,
    3283             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_EVENTLOGEOF,
    3284             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_EVENTLOGEOF,
    3285             :         },
    3286             :         {
    3287             :                 .name = "EVENTLOG_EVT_FILE",
    3288             :                 .struct_size = sizeof(struct EVENTLOG_EVT_FILE ),
    3289             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_EVENTLOG_EVT_FILE,
    3290             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_EVENTLOG_EVT_FILE,
    3291             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_EVENTLOG_EVT_FILE,
    3292             :         },
    3293             :         {
    3294             :                 .name = "EVENTLOG_FULL_INFORMATION",
    3295             :                 .struct_size = sizeof(struct EVENTLOG_FULL_INFORMATION ),
    3296             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_EVENTLOG_FULL_INFORMATION,
    3297             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_EVENTLOG_FULL_INFORMATION,
    3298             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_EVENTLOG_FULL_INFORMATION,
    3299             :         },
    3300             :         { .name = NULL }
    3301             : };
    3302             : 
    3303             : static const struct ndr_interface_call eventlog_calls[] = {
    3304             :         {
    3305             :                 "eventlog_ClearEventLogW",
    3306             :                 sizeof(struct eventlog_ClearEventLogW),
    3307             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_ClearEventLogW,
    3308             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_ClearEventLogW,
    3309             :                 (ndr_print_function_t) ndr_print_eventlog_ClearEventLogW,
    3310             :                 { 0, NULL },
    3311             :                 { 0, NULL },
    3312             :         },
    3313             :         {
    3314             :                 "eventlog_BackupEventLogW",
    3315             :                 sizeof(struct eventlog_BackupEventLogW),
    3316             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_BackupEventLogW,
    3317             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_BackupEventLogW,
    3318             :                 (ndr_print_function_t) ndr_print_eventlog_BackupEventLogW,
    3319             :                 { 0, NULL },
    3320             :                 { 0, NULL },
    3321             :         },
    3322             :         {
    3323             :                 "eventlog_CloseEventLog",
    3324             :                 sizeof(struct eventlog_CloseEventLog),
    3325             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_CloseEventLog,
    3326             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_CloseEventLog,
    3327             :                 (ndr_print_function_t) ndr_print_eventlog_CloseEventLog,
    3328             :                 { 0, NULL },
    3329             :                 { 0, NULL },
    3330             :         },
    3331             :         {
    3332             :                 "eventlog_DeregisterEventSource",
    3333             :                 sizeof(struct eventlog_DeregisterEventSource),
    3334             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_DeregisterEventSource,
    3335             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_DeregisterEventSource,
    3336             :                 (ndr_print_function_t) ndr_print_eventlog_DeregisterEventSource,
    3337             :                 { 0, NULL },
    3338             :                 { 0, NULL },
    3339             :         },
    3340             :         {
    3341             :                 "eventlog_GetNumRecords",
    3342             :                 sizeof(struct eventlog_GetNumRecords),
    3343             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_GetNumRecords,
    3344             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_GetNumRecords,
    3345             :                 (ndr_print_function_t) ndr_print_eventlog_GetNumRecords,
    3346             :                 { 0, NULL },
    3347             :                 { 0, NULL },
    3348             :         },
    3349             :         {
    3350             :                 "eventlog_GetOldestRecord",
    3351             :                 sizeof(struct eventlog_GetOldestRecord),
    3352             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_GetOldestRecord,
    3353             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_GetOldestRecord,
    3354             :                 (ndr_print_function_t) ndr_print_eventlog_GetOldestRecord,
    3355             :                 { 0, NULL },
    3356             :                 { 0, NULL },
    3357             :         },
    3358             :         {
    3359             :                 "eventlog_ChangeNotify",
    3360             :                 sizeof(struct eventlog_ChangeNotify),
    3361             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_ChangeNotify,
    3362             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_ChangeNotify,
    3363             :                 (ndr_print_function_t) ndr_print_eventlog_ChangeNotify,
    3364             :                 { 0, NULL },
    3365             :                 { 0, NULL },
    3366             :         },
    3367             :         {
    3368             :                 "eventlog_OpenEventLogW",
    3369             :                 sizeof(struct eventlog_OpenEventLogW),
    3370             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_OpenEventLogW,
    3371             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_OpenEventLogW,
    3372             :                 (ndr_print_function_t) ndr_print_eventlog_OpenEventLogW,
    3373             :                 { 0, NULL },
    3374             :                 { 0, NULL },
    3375             :         },
    3376             :         {
    3377             :                 "eventlog_RegisterEventSourceW",
    3378             :                 sizeof(struct eventlog_RegisterEventSourceW),
    3379             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_RegisterEventSourceW,
    3380             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_RegisterEventSourceW,
    3381             :                 (ndr_print_function_t) ndr_print_eventlog_RegisterEventSourceW,
    3382             :                 { 0, NULL },
    3383             :                 { 0, NULL },
    3384             :         },
    3385             :         {
    3386             :                 "eventlog_OpenBackupEventLogW",
    3387             :                 sizeof(struct eventlog_OpenBackupEventLogW),
    3388             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_OpenBackupEventLogW,
    3389             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_OpenBackupEventLogW,
    3390             :                 (ndr_print_function_t) ndr_print_eventlog_OpenBackupEventLogW,
    3391             :                 { 0, NULL },
    3392             :                 { 0, NULL },
    3393             :         },
    3394             :         {
    3395             :                 "eventlog_ReadEventLogW",
    3396             :                 sizeof(struct eventlog_ReadEventLogW),
    3397             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_ReadEventLogW,
    3398             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_ReadEventLogW,
    3399             :                 (ndr_print_function_t) ndr_print_eventlog_ReadEventLogW,
    3400             :                 { 0, NULL },
    3401             :                 { 0, NULL },
    3402             :         },
    3403             :         {
    3404             :                 "eventlog_ReportEventW",
    3405             :                 sizeof(struct eventlog_ReportEventW),
    3406             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_ReportEventW,
    3407             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_ReportEventW,
    3408             :                 (ndr_print_function_t) ndr_print_eventlog_ReportEventW,
    3409             :                 { 0, NULL },
    3410             :                 { 0, NULL },
    3411             :         },
    3412             :         {
    3413             :                 "eventlog_ClearEventLogA",
    3414             :                 sizeof(struct eventlog_ClearEventLogA),
    3415             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_ClearEventLogA,
    3416             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_ClearEventLogA,
    3417             :                 (ndr_print_function_t) ndr_print_eventlog_ClearEventLogA,
    3418             :                 { 0, NULL },
    3419             :                 { 0, NULL },
    3420             :         },
    3421             :         {
    3422             :                 "eventlog_BackupEventLogA",
    3423             :                 sizeof(struct eventlog_BackupEventLogA),
    3424             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_BackupEventLogA,
    3425             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_BackupEventLogA,
    3426             :                 (ndr_print_function_t) ndr_print_eventlog_BackupEventLogA,
    3427             :                 { 0, NULL },
    3428             :                 { 0, NULL },
    3429             :         },
    3430             :         {
    3431             :                 "eventlog_OpenEventLogA",
    3432             :                 sizeof(struct eventlog_OpenEventLogA),
    3433             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_OpenEventLogA,
    3434             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_OpenEventLogA,
    3435             :                 (ndr_print_function_t) ndr_print_eventlog_OpenEventLogA,
    3436             :                 { 0, NULL },
    3437             :                 { 0, NULL },
    3438             :         },
    3439             :         {
    3440             :                 "eventlog_RegisterEventSourceA",
    3441             :                 sizeof(struct eventlog_RegisterEventSourceA),
    3442             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_RegisterEventSourceA,
    3443             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_RegisterEventSourceA,
    3444             :                 (ndr_print_function_t) ndr_print_eventlog_RegisterEventSourceA,
    3445             :                 { 0, NULL },
    3446             :                 { 0, NULL },
    3447             :         },
    3448             :         {
    3449             :                 "eventlog_OpenBackupEventLogA",
    3450             :                 sizeof(struct eventlog_OpenBackupEventLogA),
    3451             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_OpenBackupEventLogA,
    3452             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_OpenBackupEventLogA,
    3453             :                 (ndr_print_function_t) ndr_print_eventlog_OpenBackupEventLogA,
    3454             :                 { 0, NULL },
    3455             :                 { 0, NULL },
    3456             :         },
    3457             :         {
    3458             :                 "eventlog_ReadEventLogA",
    3459             :                 sizeof(struct eventlog_ReadEventLogA),
    3460             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_ReadEventLogA,
    3461             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_ReadEventLogA,
    3462             :                 (ndr_print_function_t) ndr_print_eventlog_ReadEventLogA,
    3463             :                 { 0, NULL },
    3464             :                 { 0, NULL },
    3465             :         },
    3466             :         {
    3467             :                 "eventlog_ReportEventA",
    3468             :                 sizeof(struct eventlog_ReportEventA),
    3469             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_ReportEventA,
    3470             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_ReportEventA,
    3471             :                 (ndr_print_function_t) ndr_print_eventlog_ReportEventA,
    3472             :                 { 0, NULL },
    3473             :                 { 0, NULL },
    3474             :         },
    3475             :         {
    3476             :                 "eventlog_RegisterClusterSvc",
    3477             :                 sizeof(struct eventlog_RegisterClusterSvc),
    3478             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_RegisterClusterSvc,
    3479             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_RegisterClusterSvc,
    3480             :                 (ndr_print_function_t) ndr_print_eventlog_RegisterClusterSvc,
    3481             :                 { 0, NULL },
    3482             :                 { 0, NULL },
    3483             :         },
    3484             :         {
    3485             :                 "eventlog_DeregisterClusterSvc",
    3486             :                 sizeof(struct eventlog_DeregisterClusterSvc),
    3487             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_DeregisterClusterSvc,
    3488             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_DeregisterClusterSvc,
    3489             :                 (ndr_print_function_t) ndr_print_eventlog_DeregisterClusterSvc,
    3490             :                 { 0, NULL },
    3491             :                 { 0, NULL },
    3492             :         },
    3493             :         {
    3494             :                 "eventlog_WriteClusterEvents",
    3495             :                 sizeof(struct eventlog_WriteClusterEvents),
    3496             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_WriteClusterEvents,
    3497             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_WriteClusterEvents,
    3498             :                 (ndr_print_function_t) ndr_print_eventlog_WriteClusterEvents,
    3499             :                 { 0, NULL },
    3500             :                 { 0, NULL },
    3501             :         },
    3502             :         {
    3503             :                 "eventlog_GetLogInformation",
    3504             :                 sizeof(struct eventlog_GetLogInformation),
    3505             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_GetLogInformation,
    3506             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_GetLogInformation,
    3507             :                 (ndr_print_function_t) ndr_print_eventlog_GetLogInformation,
    3508             :                 { 0, NULL },
    3509             :                 { 0, NULL },
    3510             :         },
    3511             :         {
    3512             :                 "eventlog_FlushEventLog",
    3513             :                 sizeof(struct eventlog_FlushEventLog),
    3514             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_FlushEventLog,
    3515             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_FlushEventLog,
    3516             :                 (ndr_print_function_t) ndr_print_eventlog_FlushEventLog,
    3517             :                 { 0, NULL },
    3518             :                 { 0, NULL },
    3519             :         },
    3520             :         {
    3521             :                 "eventlog_ReportEventAndSourceW",
    3522             :                 sizeof(struct eventlog_ReportEventAndSourceW),
    3523             :                 (ndr_push_flags_fn_t) ndr_push_eventlog_ReportEventAndSourceW,
    3524             :                 (ndr_pull_flags_fn_t) ndr_pull_eventlog_ReportEventAndSourceW,
    3525             :                 (ndr_print_function_t) ndr_print_eventlog_ReportEventAndSourceW,
    3526             :                 { 0, NULL },
    3527             :                 { 0, NULL },
    3528             :         },
    3529             :         { .name = NULL }
    3530             : };
    3531             : 
    3532             : static const char * const eventlog_endpoint_strings[] = {
    3533             :         "ncacn_np:[\\pipe\\eventlog]", 
    3534             : };
    3535             : 
    3536             : static const struct ndr_interface_string_array eventlog_endpoints = {
    3537             :         .count  = 1,
    3538             :         .names  = eventlog_endpoint_strings
    3539             : };
    3540             : 
    3541             : static const char * const eventlog_authservice_strings[] = {
    3542             :         "host", 
    3543             : };
    3544             : 
    3545             : static const struct ndr_interface_string_array eventlog_authservices = {
    3546             :         .count  = 1,
    3547             :         .names  = eventlog_authservice_strings
    3548             : };
    3549             : 
    3550             : 
    3551             : const struct ndr_interface_table ndr_table_eventlog = {
    3552             :         .name           = "eventlog",
    3553             :         .syntax_id      = {
    3554             :                 {0x82273fdc,0xe32a,0x18c3,{0x3f,0x78},{0x82,0x79,0x29,0xdc,0x23,0xea}},
    3555             :                 NDR_EVENTLOG_VERSION
    3556             :         },
    3557             :         .helpstring     = NDR_EVENTLOG_HELPSTRING,
    3558             :         .num_calls      = 25,
    3559             :         .calls          = eventlog_calls,
    3560             :         .num_public_structs     = 6,
    3561             :         .public_structs         = eventlog_public_structs,
    3562             :         .endpoints      = &eventlog_endpoints,
    3563             :         .authservices   = &eventlog_authservices
    3564             : };
    3565             : 
    3566             : #endif /* SKIP_NDR_TABLE_eventlog */

Generated by: LCOV version 1.14