LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_oxidresolver.c (source / functions) Hit Total Coverage
Test: coverage report for abartlet/fix-coverage dd10fb34 Lines: 66 562 11.7 %
Date: 2021-09-23 10:06:22 Functions: 4 21 19.0 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/librpc/gen_ndr/ndr_oxidresolver.h"
       5             : 
       6             : #include "librpc/gen_ndr/ndr_misc.h"
       7             : #include "librpc/gen_ndr/ndr_orpc.h"
       8           0 : static enum ndr_err_code ndr_push_COMINFO(struct ndr_push *ndr, int ndr_flags, const struct COMINFO *r)
       9             : {
      10           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      11           0 :         if (ndr_flags & NDR_SCALARS) {
      12           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
      13           0 :                 NDR_CHECK(ndr_push_COMVERSION(ndr, NDR_SCALARS, &r->version));
      14           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->unknown1));
      15           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
      16             :         }
      17           0 :         if (ndr_flags & NDR_BUFFERS) {
      18             :         }
      19           0 :         return NDR_ERR_SUCCESS;
      20             : }
      21             : 
      22           0 : static enum ndr_err_code ndr_pull_COMINFO(struct ndr_pull *ndr, int ndr_flags, struct COMINFO *r)
      23             : {
      24           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      25           0 :         if (ndr_flags & NDR_SCALARS) {
      26           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
      27           0 :                 NDR_CHECK(ndr_pull_COMVERSION(ndr, NDR_SCALARS, &r->version));
      28           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->unknown1));
      29           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
      30             :         }
      31           0 :         if (ndr_flags & NDR_BUFFERS) {
      32             :         }
      33           0 :         return NDR_ERR_SUCCESS;
      34             : }
      35             : 
      36           0 : _PUBLIC_ void ndr_print_COMINFO(struct ndr_print *ndr, const char *name, const struct COMINFO *r)
      37             : {
      38           0 :         ndr_print_struct(ndr, name, "COMINFO");
      39           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
      40           0 :         ndr->depth++;
      41           0 :         ndr_print_COMVERSION(ndr, "version", &r->version);
      42           0 :         ndr_print_uint32(ndr, "unknown1", r->unknown1);
      43           0 :         ndr->depth--;
      44             : }
      45             : 
      46           0 : static enum ndr_err_code ndr_push_ResolveOxid(struct ndr_push *ndr, int flags, const struct ResolveOxid *r)
      47             : {
      48             :         uint32_t cntr_arRequestedProtseqs_0;
      49           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
      50           0 :         if (flags & NDR_IN) {
      51           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.pOxid));
      52           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.cRequestedProtseqs));
      53           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cRequestedProtseqs));
      54           0 :                 for (cntr_arRequestedProtseqs_0 = 0; cntr_arRequestedProtseqs_0 < (r->in.cRequestedProtseqs); cntr_arRequestedProtseqs_0++) {
      55           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.arRequestedProtseqs[cntr_arRequestedProtseqs_0]));
      56             :                 }
      57             :         }
      58           0 :         if (flags & NDR_OUT) {
      59           0 :                 if (r->out.ppdsaOxidBindings == NULL) {
      60           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
      61             :                 }
      62           0 :                 if (r->out.pipidRemUnknown == NULL) {
      63           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
      64             :                 }
      65           0 :                 if (r->out.pAuthnHint == NULL) {
      66           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
      67             :                 }
      68           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppdsaOxidBindings));
      69           0 :                 if (*r->out.ppdsaOxidBindings) {
      70           0 :                         NDR_CHECK(ndr_push_DUALSTRINGARRAY(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppdsaOxidBindings));
      71             :                 }
      72           0 :                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->out.pipidRemUnknown));
      73           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.pAuthnHint));
      74           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
      75             :         }
      76           0 :         return NDR_ERR_SUCCESS;
      77             : }
      78             : 
      79           1 : static enum ndr_err_code ndr_pull_ResolveOxid(struct ndr_pull *ndr, int flags, struct ResolveOxid *r)
      80             : {
      81           1 :         uint32_t size_arRequestedProtseqs_0 = 0;
      82             :         uint32_t cntr_arRequestedProtseqs_0;
      83             :         uint32_t _ptr_ppdsaOxidBindings;
      84           1 :         TALLOC_CTX *_mem_save_arRequestedProtseqs_0 = NULL;
      85           1 :         TALLOC_CTX *_mem_save_ppdsaOxidBindings_0 = NULL;
      86           1 :         TALLOC_CTX *_mem_save_ppdsaOxidBindings_1 = NULL;
      87           1 :         TALLOC_CTX *_mem_save_pipidRemUnknown_0 = NULL;
      88           1 :         TALLOC_CTX *_mem_save_pAuthnHint_0 = NULL;
      89           1 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
      90           1 :         if (flags & NDR_IN) {
      91           0 :                 NDR_ZERO_STRUCT(r->out);
      92             : 
      93           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.pOxid));
      94           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.cRequestedProtseqs));
      95           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.arRequestedProtseqs));
      96           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.arRequestedProtseqs, &size_arRequestedProtseqs_0));
      97           0 :                 NDR_PULL_ALLOC_N(ndr, r->in.arRequestedProtseqs, size_arRequestedProtseqs_0);
      98           0 :                 _mem_save_arRequestedProtseqs_0 = NDR_PULL_GET_MEM_CTX(ndr);
      99           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.arRequestedProtseqs, 0);
     100           0 :                 for (cntr_arRequestedProtseqs_0 = 0; cntr_arRequestedProtseqs_0 < (size_arRequestedProtseqs_0); cntr_arRequestedProtseqs_0++) {
     101           0 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.arRequestedProtseqs[cntr_arRequestedProtseqs_0]));
     102             :                 }
     103           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_arRequestedProtseqs_0, 0);
     104           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppdsaOxidBindings);
     105           0 :                 NDR_ZERO_STRUCTP(r->out.ppdsaOxidBindings);
     106           0 :                 NDR_PULL_ALLOC(ndr, r->out.pipidRemUnknown);
     107           0 :                 NDR_ZERO_STRUCTP(r->out.pipidRemUnknown);
     108           0 :                 NDR_PULL_ALLOC(ndr, r->out.pAuthnHint);
     109           0 :                 NDR_ZERO_STRUCTP(r->out.pAuthnHint);
     110           0 :                 if (r->in.arRequestedProtseqs) {
     111           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.arRequestedProtseqs, r->in.cRequestedProtseqs));
     112             :                 }
     113             :         }
     114           1 :         if (flags & NDR_OUT) {
     115             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     116             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     117           1 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     118           1 :                         NDR_PULL_ALLOC(ndr, r->out.ppdsaOxidBindings);
     119             :                 }
     120           1 :                 _mem_save_ppdsaOxidBindings_0 = NDR_PULL_GET_MEM_CTX(ndr);
     121           1 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppdsaOxidBindings, LIBNDR_FLAG_REF_ALLOC);
     122           1 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppdsaOxidBindings));
     123           1 :                 if (_ptr_ppdsaOxidBindings) {
     124           1 :                         NDR_PULL_ALLOC(ndr, *r->out.ppdsaOxidBindings);
     125             :                 } else {
     126           0 :                         *r->out.ppdsaOxidBindings = NULL;
     127             :                 }
     128           1 :                 if (*r->out.ppdsaOxidBindings) {
     129           1 :                         _mem_save_ppdsaOxidBindings_1 = NDR_PULL_GET_MEM_CTX(ndr);
     130           1 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppdsaOxidBindings, 0);
     131           1 :                         NDR_CHECK(ndr_pull_DUALSTRINGARRAY(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppdsaOxidBindings));
     132           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppdsaOxidBindings_1, 0);
     133             :                 }
     134           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppdsaOxidBindings_0, LIBNDR_FLAG_REF_ALLOC);
     135           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     136           0 :                         NDR_PULL_ALLOC(ndr, r->out.pipidRemUnknown);
     137             :                 }
     138           0 :                 _mem_save_pipidRemUnknown_0 = NDR_PULL_GET_MEM_CTX(ndr);
     139           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pipidRemUnknown, LIBNDR_FLAG_REF_ALLOC);
     140           0 :                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->out.pipidRemUnknown));
     141           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pipidRemUnknown_0, LIBNDR_FLAG_REF_ALLOC);
     142           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     143           0 :                         NDR_PULL_ALLOC(ndr, r->out.pAuthnHint);
     144             :                 }
     145           0 :                 _mem_save_pAuthnHint_0 = NDR_PULL_GET_MEM_CTX(ndr);
     146           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pAuthnHint, LIBNDR_FLAG_REF_ALLOC);
     147           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.pAuthnHint));
     148           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pAuthnHint_0, LIBNDR_FLAG_REF_ALLOC);
     149           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     150             :         }
     151           0 :         return NDR_ERR_SUCCESS;
     152             : }
     153             : 
     154           0 : _PUBLIC_ void ndr_print_ResolveOxid(struct ndr_print *ndr, const char *name, int flags, const struct ResolveOxid *r)
     155             : {
     156             :         uint32_t cntr_arRequestedProtseqs_0;
     157           0 :         ndr_print_struct(ndr, name, "ResolveOxid");
     158           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     159           0 :         ndr->depth++;
     160           0 :         if (flags & NDR_SET_VALUES) {
     161           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     162             :         }
     163           0 :         if (flags & NDR_IN) {
     164           0 :                 ndr_print_struct(ndr, "in", "ResolveOxid");
     165           0 :                 ndr->depth++;
     166           0 :                 ndr_print_hyper(ndr, "pOxid", r->in.pOxid);
     167           0 :                 ndr_print_uint16(ndr, "cRequestedProtseqs", r->in.cRequestedProtseqs);
     168           0 :                 ndr->print(ndr, "%s: ARRAY(%d)", "arRequestedProtseqs", (int)r->in.cRequestedProtseqs);
     169           0 :                 ndr->depth++;
     170           0 :                 for (cntr_arRequestedProtseqs_0 = 0; cntr_arRequestedProtseqs_0 < (r->in.cRequestedProtseqs); cntr_arRequestedProtseqs_0++) {
     171           0 :                         ndr_print_uint16(ndr, "arRequestedProtseqs", r->in.arRequestedProtseqs[cntr_arRequestedProtseqs_0]);
     172             :                 }
     173           0 :                 ndr->depth--;
     174           0 :                 ndr->depth--;
     175             :         }
     176           0 :         if (flags & NDR_OUT) {
     177           0 :                 ndr_print_struct(ndr, "out", "ResolveOxid");
     178           0 :                 ndr->depth++;
     179           0 :                 ndr_print_ptr(ndr, "ppdsaOxidBindings", r->out.ppdsaOxidBindings);
     180           0 :                 ndr->depth++;
     181           0 :                 ndr_print_ptr(ndr, "ppdsaOxidBindings", *r->out.ppdsaOxidBindings);
     182           0 :                 ndr->depth++;
     183           0 :                 if (*r->out.ppdsaOxidBindings) {
     184           0 :                         ndr_print_DUALSTRINGARRAY(ndr, "ppdsaOxidBindings", *r->out.ppdsaOxidBindings);
     185             :                 }
     186           0 :                 ndr->depth--;
     187           0 :                 ndr->depth--;
     188           0 :                 ndr_print_ptr(ndr, "pipidRemUnknown", r->out.pipidRemUnknown);
     189           0 :                 ndr->depth++;
     190           0 :                 ndr_print_GUID(ndr, "pipidRemUnknown", r->out.pipidRemUnknown);
     191           0 :                 ndr->depth--;
     192           0 :                 ndr_print_ptr(ndr, "pAuthnHint", r->out.pAuthnHint);
     193           0 :                 ndr->depth++;
     194           0 :                 ndr_print_uint32(ndr, "pAuthnHint", *r->out.pAuthnHint);
     195           0 :                 ndr->depth--;
     196           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     197           0 :                 ndr->depth--;
     198             :         }
     199           0 :         ndr->depth--;
     200             : }
     201             : 
     202           0 : static enum ndr_err_code ndr_push_SimplePing(struct ndr_push *ndr, int flags, const struct SimplePing *r)
     203             : {
     204           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     205           0 :         if (flags & NDR_IN) {
     206           0 :                 if (r->in.SetId == NULL) {
     207           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     208             :                 }
     209           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, *r->in.SetId));
     210             :         }
     211           0 :         if (flags & NDR_OUT) {
     212           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     213             :         }
     214           0 :         return NDR_ERR_SUCCESS;
     215             : }
     216             : 
     217           0 : static enum ndr_err_code ndr_pull_SimplePing(struct ndr_pull *ndr, int flags, struct SimplePing *r)
     218             : {
     219           0 :         TALLOC_CTX *_mem_save_SetId_0 = NULL;
     220           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     221           0 :         if (flags & NDR_IN) {
     222           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     223           0 :                         NDR_PULL_ALLOC(ndr, r->in.SetId);
     224             :                 }
     225           0 :                 _mem_save_SetId_0 = NDR_PULL_GET_MEM_CTX(ndr);
     226           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.SetId, LIBNDR_FLAG_REF_ALLOC);
     227           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, r->in.SetId));
     228           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_SetId_0, LIBNDR_FLAG_REF_ALLOC);
     229             :         }
     230           0 :         if (flags & NDR_OUT) {
     231             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     232             :                 if (r->in.SetId == NULL) {
     233             :                         NDR_PULL_ALLOC(ndr, r->in.SetId);
     234             :                         NDR_ZERO_STRUCTP(r->in.SetId);
     235             :                 }
     236             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     237           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     238             :         }
     239           0 :         return NDR_ERR_SUCCESS;
     240             : }
     241             : 
     242           0 : _PUBLIC_ void ndr_print_SimplePing(struct ndr_print *ndr, const char *name, int flags, const struct SimplePing *r)
     243             : {
     244           0 :         ndr_print_struct(ndr, name, "SimplePing");
     245           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     246           0 :         ndr->depth++;
     247           0 :         if (flags & NDR_SET_VALUES) {
     248           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     249             :         }
     250           0 :         if (flags & NDR_IN) {
     251           0 :                 ndr_print_struct(ndr, "in", "SimplePing");
     252           0 :                 ndr->depth++;
     253           0 :                 ndr_print_ptr(ndr, "SetId", r->in.SetId);
     254           0 :                 ndr->depth++;
     255           0 :                 ndr_print_hyper(ndr, "SetId", *r->in.SetId);
     256           0 :                 ndr->depth--;
     257           0 :                 ndr->depth--;
     258             :         }
     259           0 :         if (flags & NDR_OUT) {
     260           0 :                 ndr_print_struct(ndr, "out", "SimplePing");
     261           0 :                 ndr->depth++;
     262           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     263           0 :                 ndr->depth--;
     264             :         }
     265           0 :         ndr->depth--;
     266             : }
     267             : 
     268           0 : static enum ndr_err_code ndr_push_ComplexPing(struct ndr_push *ndr, int flags, const struct ComplexPing *r)
     269             : {
     270             :         uint32_t cntr_AddToSet_0;
     271             :         uint32_t cntr_DelFromSet_0;
     272           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     273           0 :         if (flags & NDR_IN) {
     274           0 :                 if (r->in.SetId == NULL) {
     275           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     276             :                 }
     277           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, *r->in.SetId));
     278           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.SequenceNum));
     279           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.cAddToSet));
     280           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.cDelFromSet));
     281           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cAddToSet));
     282           0 :                 for (cntr_AddToSet_0 = 0; cntr_AddToSet_0 < (r->in.cAddToSet); cntr_AddToSet_0++) {
     283           0 :                         NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->in.AddToSet[cntr_AddToSet_0]));
     284             :                 }
     285           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cDelFromSet));
     286           0 :                 for (cntr_DelFromSet_0 = 0; cntr_DelFromSet_0 < (r->in.cDelFromSet); cntr_DelFromSet_0++) {
     287           0 :                         NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->in.DelFromSet[cntr_DelFromSet_0]));
     288             :                 }
     289             :         }
     290           0 :         if (flags & NDR_OUT) {
     291           0 :                 if (r->out.SetId == NULL) {
     292           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     293             :                 }
     294           0 :                 if (r->out.PingBackoffFactor == NULL) {
     295           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     296             :                 }
     297           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, *r->out.SetId));
     298           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.PingBackoffFactor));
     299           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     300             :         }
     301           0 :         return NDR_ERR_SUCCESS;
     302             : }
     303             : 
     304           0 : static enum ndr_err_code ndr_pull_ComplexPing(struct ndr_pull *ndr, int flags, struct ComplexPing *r)
     305             : {
     306           0 :         uint32_t size_AddToSet_0 = 0;
     307             :         uint32_t cntr_AddToSet_0;
     308           0 :         uint32_t size_DelFromSet_0 = 0;
     309             :         uint32_t cntr_DelFromSet_0;
     310           0 :         TALLOC_CTX *_mem_save_SetId_0 = NULL;
     311           0 :         TALLOC_CTX *_mem_save_AddToSet_0 = NULL;
     312           0 :         TALLOC_CTX *_mem_save_DelFromSet_0 = NULL;
     313           0 :         TALLOC_CTX *_mem_save_PingBackoffFactor_0 = NULL;
     314           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     315           0 :         if (flags & NDR_IN) {
     316           0 :                 NDR_ZERO_STRUCT(r->out);
     317             : 
     318           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     319           0 :                         NDR_PULL_ALLOC(ndr, r->in.SetId);
     320             :                 }
     321           0 :                 _mem_save_SetId_0 = NDR_PULL_GET_MEM_CTX(ndr);
     322           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.SetId, LIBNDR_FLAG_REF_ALLOC);
     323           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, r->in.SetId));
     324           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_SetId_0, LIBNDR_FLAG_REF_ALLOC);
     325           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.SequenceNum));
     326           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.cAddToSet));
     327           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.cDelFromSet));
     328           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.AddToSet));
     329           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.AddToSet, &size_AddToSet_0));
     330           0 :                 NDR_PULL_ALLOC_N(ndr, r->in.AddToSet, size_AddToSet_0);
     331           0 :                 _mem_save_AddToSet_0 = NDR_PULL_GET_MEM_CTX(ndr);
     332           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.AddToSet, 0);
     333           0 :                 for (cntr_AddToSet_0 = 0; cntr_AddToSet_0 < (size_AddToSet_0); cntr_AddToSet_0++) {
     334           0 :                         NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->in.AddToSet[cntr_AddToSet_0]));
     335             :                 }
     336           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_AddToSet_0, 0);
     337           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.DelFromSet));
     338           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.DelFromSet, &size_DelFromSet_0));
     339           0 :                 NDR_PULL_ALLOC_N(ndr, r->in.DelFromSet, size_DelFromSet_0);
     340           0 :                 _mem_save_DelFromSet_0 = NDR_PULL_GET_MEM_CTX(ndr);
     341           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.DelFromSet, 0);
     342           0 :                 for (cntr_DelFromSet_0 = 0; cntr_DelFromSet_0 < (size_DelFromSet_0); cntr_DelFromSet_0++) {
     343           0 :                         NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->in.DelFromSet[cntr_DelFromSet_0]));
     344             :                 }
     345           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_DelFromSet_0, 0);
     346           0 :                 NDR_PULL_ALLOC(ndr, r->out.SetId);
     347           0 :                 *r->out.SetId = *r->in.SetId;
     348           0 :                 NDR_PULL_ALLOC(ndr, r->out.PingBackoffFactor);
     349           0 :                 NDR_ZERO_STRUCTP(r->out.PingBackoffFactor);
     350           0 :                 if (r->in.AddToSet) {
     351           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.AddToSet, r->in.cAddToSet));
     352             :                 }
     353           0 :                 if (r->in.DelFromSet) {
     354           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.DelFromSet, r->in.cDelFromSet));
     355             :                 }
     356             :         }
     357           0 :         if (flags & NDR_OUT) {
     358             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     359             :                 if (r->in.SetId == NULL) {
     360             :                         NDR_PULL_ALLOC(ndr, r->in.SetId);
     361             :                         NDR_ZERO_STRUCTP(r->in.SetId);
     362             :                 }
     363             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     364           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     365           0 :                         NDR_PULL_ALLOC(ndr, r->out.SetId);
     366             :                 }
     367           0 :                 _mem_save_SetId_0 = NDR_PULL_GET_MEM_CTX(ndr);
     368           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.SetId, LIBNDR_FLAG_REF_ALLOC);
     369           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, r->out.SetId));
     370           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_SetId_0, LIBNDR_FLAG_REF_ALLOC);
     371           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     372           0 :                         NDR_PULL_ALLOC(ndr, r->out.PingBackoffFactor);
     373             :                 }
     374           0 :                 _mem_save_PingBackoffFactor_0 = NDR_PULL_GET_MEM_CTX(ndr);
     375           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.PingBackoffFactor, LIBNDR_FLAG_REF_ALLOC);
     376           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.PingBackoffFactor));
     377           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PingBackoffFactor_0, LIBNDR_FLAG_REF_ALLOC);
     378           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     379             :         }
     380           0 :         return NDR_ERR_SUCCESS;
     381             : }
     382             : 
     383           0 : _PUBLIC_ void ndr_print_ComplexPing(struct ndr_print *ndr, const char *name, int flags, const struct ComplexPing *r)
     384             : {
     385             :         uint32_t cntr_AddToSet_0;
     386             :         uint32_t cntr_DelFromSet_0;
     387           0 :         ndr_print_struct(ndr, name, "ComplexPing");
     388           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     389           0 :         ndr->depth++;
     390           0 :         if (flags & NDR_SET_VALUES) {
     391           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     392             :         }
     393           0 :         if (flags & NDR_IN) {
     394           0 :                 ndr_print_struct(ndr, "in", "ComplexPing");
     395           0 :                 ndr->depth++;
     396           0 :                 ndr_print_ptr(ndr, "SetId", r->in.SetId);
     397           0 :                 ndr->depth++;
     398           0 :                 ndr_print_hyper(ndr, "SetId", *r->in.SetId);
     399           0 :                 ndr->depth--;
     400           0 :                 ndr_print_uint16(ndr, "SequenceNum", r->in.SequenceNum);
     401           0 :                 ndr_print_uint16(ndr, "cAddToSet", r->in.cAddToSet);
     402           0 :                 ndr_print_uint16(ndr, "cDelFromSet", r->in.cDelFromSet);
     403           0 :                 ndr->print(ndr, "%s: ARRAY(%d)", "AddToSet", (int)r->in.cAddToSet);
     404           0 :                 ndr->depth++;
     405           0 :                 for (cntr_AddToSet_0 = 0; cntr_AddToSet_0 < (r->in.cAddToSet); cntr_AddToSet_0++) {
     406           0 :                         ndr_print_GUID(ndr, "AddToSet", &r->in.AddToSet[cntr_AddToSet_0]);
     407             :                 }
     408           0 :                 ndr->depth--;
     409           0 :                 ndr->print(ndr, "%s: ARRAY(%d)", "DelFromSet", (int)r->in.cDelFromSet);
     410           0 :                 ndr->depth++;
     411           0 :                 for (cntr_DelFromSet_0 = 0; cntr_DelFromSet_0 < (r->in.cDelFromSet); cntr_DelFromSet_0++) {
     412           0 :                         ndr_print_GUID(ndr, "DelFromSet", &r->in.DelFromSet[cntr_DelFromSet_0]);
     413             :                 }
     414           0 :                 ndr->depth--;
     415           0 :                 ndr->depth--;
     416             :         }
     417           0 :         if (flags & NDR_OUT) {
     418           0 :                 ndr_print_struct(ndr, "out", "ComplexPing");
     419           0 :                 ndr->depth++;
     420           0 :                 ndr_print_ptr(ndr, "SetId", r->out.SetId);
     421           0 :                 ndr->depth++;
     422           0 :                 ndr_print_hyper(ndr, "SetId", *r->out.SetId);
     423           0 :                 ndr->depth--;
     424           0 :                 ndr_print_ptr(ndr, "PingBackoffFactor", r->out.PingBackoffFactor);
     425           0 :                 ndr->depth++;
     426           0 :                 ndr_print_uint16(ndr, "PingBackoffFactor", *r->out.PingBackoffFactor);
     427           0 :                 ndr->depth--;
     428           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     429           0 :                 ndr->depth--;
     430             :         }
     431           0 :         ndr->depth--;
     432             : }
     433             : 
     434           0 : static enum ndr_err_code ndr_push_ServerAlive(struct ndr_push *ndr, int flags, const struct ServerAlive *r)
     435             : {
     436           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     437           0 :         if (flags & NDR_IN) {
     438             :         }
     439           0 :         if (flags & NDR_OUT) {
     440           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     441             :         }
     442           0 :         return NDR_ERR_SUCCESS;
     443             : }
     444             : 
     445           1 : static enum ndr_err_code ndr_pull_ServerAlive(struct ndr_pull *ndr, int flags, struct ServerAlive *r)
     446             : {
     447           1 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     448           0 :         if (flags & NDR_IN) {
     449             :         }
     450           1 :         if (flags & NDR_OUT) {
     451             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     452             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     453           1 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     454             :         }
     455           0 :         return NDR_ERR_SUCCESS;
     456             : }
     457             : 
     458           1 : _PUBLIC_ void ndr_print_ServerAlive(struct ndr_print *ndr, const char *name, int flags, const struct ServerAlive *r)
     459             : {
     460           1 :         ndr_print_struct(ndr, name, "ServerAlive");
     461           1 :         if (r == NULL) { ndr_print_null(ndr); return; }
     462           1 :         ndr->depth++;
     463           1 :         if (flags & NDR_SET_VALUES) {
     464           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     465             :         }
     466           1 :         if (flags & NDR_IN) {
     467           0 :                 ndr_print_struct(ndr, "in", "ServerAlive");
     468           0 :                 ndr->depth++;
     469           0 :                 ndr->depth--;
     470             :         }
     471           1 :         if (flags & NDR_OUT) {
     472           1 :                 ndr_print_struct(ndr, "out", "ServerAlive");
     473           1 :                 ndr->depth++;
     474           1 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     475           1 :                 ndr->depth--;
     476             :         }
     477           1 :         ndr->depth--;
     478             : }
     479             : 
     480           0 : static enum ndr_err_code ndr_push_ResolveOxid2(struct ndr_push *ndr, int flags, const struct ResolveOxid2 *r)
     481             : {
     482             :         uint32_t cntr_arRequestedProtseqs_0;
     483           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     484           0 :         if (flags & NDR_IN) {
     485           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.pOxid));
     486           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.cRequestedProtseqs));
     487           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cRequestedProtseqs));
     488           0 :                 for (cntr_arRequestedProtseqs_0 = 0; cntr_arRequestedProtseqs_0 < (r->in.cRequestedProtseqs); cntr_arRequestedProtseqs_0++) {
     489           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.arRequestedProtseqs[cntr_arRequestedProtseqs_0]));
     490             :                 }
     491             :         }
     492           0 :         if (flags & NDR_OUT) {
     493           0 :                 if (r->out.pdsaOxidBindings == NULL) {
     494           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     495             :                 }
     496           0 :                 if (r->out.ipidRemUnknown == NULL) {
     497           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     498             :                 }
     499           0 :                 if (r->out.AuthnHint == NULL) {
     500           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     501             :                 }
     502           0 :                 if (r->out.ComVersion == NULL) {
     503           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     504             :                 }
     505           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.pdsaOxidBindings));
     506           0 :                 if (*r->out.pdsaOxidBindings) {
     507           0 :                         NDR_CHECK(ndr_push_DUALSTRINGARRAY(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.pdsaOxidBindings));
     508             :                 }
     509           0 :                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->out.ipidRemUnknown));
     510           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.AuthnHint));
     511           0 :                 NDR_CHECK(ndr_push_COMVERSION(ndr, NDR_SCALARS, r->out.ComVersion));
     512           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     513             :         }
     514           0 :         return NDR_ERR_SUCCESS;
     515             : }
     516             : 
     517           1 : static enum ndr_err_code ndr_pull_ResolveOxid2(struct ndr_pull *ndr, int flags, struct ResolveOxid2 *r)
     518             : {
     519           1 :         uint32_t size_arRequestedProtseqs_0 = 0;
     520             :         uint32_t cntr_arRequestedProtseqs_0;
     521             :         uint32_t _ptr_pdsaOxidBindings;
     522           1 :         TALLOC_CTX *_mem_save_arRequestedProtseqs_0 = NULL;
     523           1 :         TALLOC_CTX *_mem_save_pdsaOxidBindings_0 = NULL;
     524           1 :         TALLOC_CTX *_mem_save_pdsaOxidBindings_1 = NULL;
     525           1 :         TALLOC_CTX *_mem_save_ipidRemUnknown_0 = NULL;
     526           1 :         TALLOC_CTX *_mem_save_AuthnHint_0 = NULL;
     527           1 :         TALLOC_CTX *_mem_save_ComVersion_0 = NULL;
     528           1 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     529           1 :         if (flags & NDR_IN) {
     530           0 :                 NDR_ZERO_STRUCT(r->out);
     531             : 
     532           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.pOxid));
     533           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.cRequestedProtseqs));
     534           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.arRequestedProtseqs));
     535           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.arRequestedProtseqs, &size_arRequestedProtseqs_0));
     536           0 :                 NDR_PULL_ALLOC_N(ndr, r->in.arRequestedProtseqs, size_arRequestedProtseqs_0);
     537           0 :                 _mem_save_arRequestedProtseqs_0 = NDR_PULL_GET_MEM_CTX(ndr);
     538           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.arRequestedProtseqs, 0);
     539           0 :                 for (cntr_arRequestedProtseqs_0 = 0; cntr_arRequestedProtseqs_0 < (size_arRequestedProtseqs_0); cntr_arRequestedProtseqs_0++) {
     540           0 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.arRequestedProtseqs[cntr_arRequestedProtseqs_0]));
     541             :                 }
     542           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_arRequestedProtseqs_0, 0);
     543           0 :                 NDR_PULL_ALLOC(ndr, r->out.pdsaOxidBindings);
     544           0 :                 NDR_ZERO_STRUCTP(r->out.pdsaOxidBindings);
     545           0 :                 NDR_PULL_ALLOC(ndr, r->out.ipidRemUnknown);
     546           0 :                 NDR_ZERO_STRUCTP(r->out.ipidRemUnknown);
     547           0 :                 NDR_PULL_ALLOC(ndr, r->out.AuthnHint);
     548           0 :                 NDR_ZERO_STRUCTP(r->out.AuthnHint);
     549           0 :                 NDR_PULL_ALLOC(ndr, r->out.ComVersion);
     550           0 :                 NDR_ZERO_STRUCTP(r->out.ComVersion);
     551           0 :                 if (r->in.arRequestedProtseqs) {
     552           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.arRequestedProtseqs, r->in.cRequestedProtseqs));
     553             :                 }
     554             :         }
     555           1 :         if (flags & NDR_OUT) {
     556             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     557             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     558           1 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     559           1 :                         NDR_PULL_ALLOC(ndr, r->out.pdsaOxidBindings);
     560             :                 }
     561           1 :                 _mem_save_pdsaOxidBindings_0 = NDR_PULL_GET_MEM_CTX(ndr);
     562           1 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pdsaOxidBindings, LIBNDR_FLAG_REF_ALLOC);
     563           1 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pdsaOxidBindings));
     564           1 :                 if (_ptr_pdsaOxidBindings) {
     565           1 :                         NDR_PULL_ALLOC(ndr, *r->out.pdsaOxidBindings);
     566             :                 } else {
     567           0 :                         *r->out.pdsaOxidBindings = NULL;
     568             :                 }
     569           1 :                 if (*r->out.pdsaOxidBindings) {
     570           1 :                         _mem_save_pdsaOxidBindings_1 = NDR_PULL_GET_MEM_CTX(ndr);
     571           1 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.pdsaOxidBindings, 0);
     572           1 :                         NDR_CHECK(ndr_pull_DUALSTRINGARRAY(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.pdsaOxidBindings));
     573           1 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pdsaOxidBindings_1, 0);
     574             :                 }
     575           1 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pdsaOxidBindings_0, LIBNDR_FLAG_REF_ALLOC);
     576           1 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     577           1 :                         NDR_PULL_ALLOC(ndr, r->out.ipidRemUnknown);
     578             :                 }
     579           1 :                 _mem_save_ipidRemUnknown_0 = NDR_PULL_GET_MEM_CTX(ndr);
     580           1 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ipidRemUnknown, LIBNDR_FLAG_REF_ALLOC);
     581           1 :                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->out.ipidRemUnknown));
     582           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ipidRemUnknown_0, LIBNDR_FLAG_REF_ALLOC);
     583           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     584           0 :                         NDR_PULL_ALLOC(ndr, r->out.AuthnHint);
     585             :                 }
     586           0 :                 _mem_save_AuthnHint_0 = NDR_PULL_GET_MEM_CTX(ndr);
     587           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.AuthnHint, LIBNDR_FLAG_REF_ALLOC);
     588           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.AuthnHint));
     589           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_AuthnHint_0, LIBNDR_FLAG_REF_ALLOC);
     590           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     591           0 :                         NDR_PULL_ALLOC(ndr, r->out.ComVersion);
     592             :                 }
     593           0 :                 _mem_save_ComVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
     594           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ComVersion, LIBNDR_FLAG_REF_ALLOC);
     595           0 :                 NDR_CHECK(ndr_pull_COMVERSION(ndr, NDR_SCALARS, r->out.ComVersion));
     596           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ComVersion_0, LIBNDR_FLAG_REF_ALLOC);
     597           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     598             :         }
     599           0 :         return NDR_ERR_SUCCESS;
     600             : }
     601             : 
     602           0 : _PUBLIC_ void ndr_print_ResolveOxid2(struct ndr_print *ndr, const char *name, int flags, const struct ResolveOxid2 *r)
     603             : {
     604             :         uint32_t cntr_arRequestedProtseqs_0;
     605           0 :         ndr_print_struct(ndr, name, "ResolveOxid2");
     606           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     607           0 :         ndr->depth++;
     608           0 :         if (flags & NDR_SET_VALUES) {
     609           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     610             :         }
     611           0 :         if (flags & NDR_IN) {
     612           0 :                 ndr_print_struct(ndr, "in", "ResolveOxid2");
     613           0 :                 ndr->depth++;
     614           0 :                 ndr_print_hyper(ndr, "pOxid", r->in.pOxid);
     615           0 :                 ndr_print_uint16(ndr, "cRequestedProtseqs", r->in.cRequestedProtseqs);
     616           0 :                 ndr->print(ndr, "%s: ARRAY(%d)", "arRequestedProtseqs", (int)r->in.cRequestedProtseqs);
     617           0 :                 ndr->depth++;
     618           0 :                 for (cntr_arRequestedProtseqs_0 = 0; cntr_arRequestedProtseqs_0 < (r->in.cRequestedProtseqs); cntr_arRequestedProtseqs_0++) {
     619           0 :                         ndr_print_uint16(ndr, "arRequestedProtseqs", r->in.arRequestedProtseqs[cntr_arRequestedProtseqs_0]);
     620             :                 }
     621           0 :                 ndr->depth--;
     622           0 :                 ndr->depth--;
     623             :         }
     624           0 :         if (flags & NDR_OUT) {
     625           0 :                 ndr_print_struct(ndr, "out", "ResolveOxid2");
     626           0 :                 ndr->depth++;
     627           0 :                 ndr_print_ptr(ndr, "pdsaOxidBindings", r->out.pdsaOxidBindings);
     628           0 :                 ndr->depth++;
     629           0 :                 ndr_print_ptr(ndr, "pdsaOxidBindings", *r->out.pdsaOxidBindings);
     630           0 :                 ndr->depth++;
     631           0 :                 if (*r->out.pdsaOxidBindings) {
     632           0 :                         ndr_print_DUALSTRINGARRAY(ndr, "pdsaOxidBindings", *r->out.pdsaOxidBindings);
     633             :                 }
     634           0 :                 ndr->depth--;
     635           0 :                 ndr->depth--;
     636           0 :                 ndr_print_ptr(ndr, "ipidRemUnknown", r->out.ipidRemUnknown);
     637           0 :                 ndr->depth++;
     638           0 :                 ndr_print_GUID(ndr, "ipidRemUnknown", r->out.ipidRemUnknown);
     639           0 :                 ndr->depth--;
     640           0 :                 ndr_print_ptr(ndr, "AuthnHint", r->out.AuthnHint);
     641           0 :                 ndr->depth++;
     642           0 :                 ndr_print_uint32(ndr, "AuthnHint", *r->out.AuthnHint);
     643           0 :                 ndr->depth--;
     644           0 :                 ndr_print_ptr(ndr, "ComVersion", r->out.ComVersion);
     645           0 :                 ndr->depth++;
     646           0 :                 ndr_print_COMVERSION(ndr, "ComVersion", r->out.ComVersion);
     647           0 :                 ndr->depth--;
     648           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     649           0 :                 ndr->depth--;
     650             :         }
     651           0 :         ndr->depth--;
     652             : }
     653             : 
     654           0 : static enum ndr_err_code ndr_push_ServerAlive2(struct ndr_push *ndr, int flags, const struct ServerAlive2 *r)
     655             : {
     656           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     657           0 :         if (flags & NDR_IN) {
     658             :         }
     659           0 :         if (flags & NDR_OUT) {
     660           0 :                 if (r->out.info == NULL) {
     661           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     662             :                 }
     663           0 :                 if (r->out.dualstring == NULL) {
     664           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     665             :                 }
     666           0 :                 if (r->out.pReserved == NULL) {
     667           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     668             :                 }
     669           0 :                 NDR_CHECK(ndr_push_COMINFO(ndr, NDR_SCALARS, r->out.info));
     670           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.dualstring));
     671           0 :                 if (*r->out.dualstring) {
     672           0 :                         NDR_CHECK(ndr_push_DUALSTRINGARRAY(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.dualstring));
     673             :                 }
     674           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->out.pReserved));
     675           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     676             :         }
     677           0 :         return NDR_ERR_SUCCESS;
     678             : }
     679             : 
     680           0 : static enum ndr_err_code ndr_pull_ServerAlive2(struct ndr_pull *ndr, int flags, struct ServerAlive2 *r)
     681             : {
     682             :         uint32_t _ptr_dualstring;
     683           0 :         TALLOC_CTX *_mem_save_info_0 = NULL;
     684           0 :         TALLOC_CTX *_mem_save_dualstring_0 = NULL;
     685           0 :         TALLOC_CTX *_mem_save_dualstring_1 = NULL;
     686           0 :         TALLOC_CTX *_mem_save_pReserved_0 = NULL;
     687           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     688           0 :         if (flags & NDR_IN) {
     689           0 :                 NDR_ZERO_STRUCT(r->out);
     690             : 
     691           0 :                 NDR_PULL_ALLOC(ndr, r->out.info);
     692           0 :                 NDR_ZERO_STRUCTP(r->out.info);
     693           0 :                 NDR_PULL_ALLOC(ndr, r->out.dualstring);
     694           0 :                 NDR_ZERO_STRUCTP(r->out.dualstring);
     695           0 :                 NDR_PULL_ALLOC(ndr, r->out.pReserved);
     696           0 :                 NDR_ZERO_STRUCTP(r->out.pReserved);
     697             :         }
     698           0 :         if (flags & NDR_OUT) {
     699             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     700             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     701           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     702           0 :                         NDR_PULL_ALLOC(ndr, r->out.info);
     703             :                 }
     704           0 :                 _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
     705           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.info, LIBNDR_FLAG_REF_ALLOC);
     706           0 :                 NDR_CHECK(ndr_pull_COMINFO(ndr, NDR_SCALARS, r->out.info));
     707           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
     708           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     709           0 :                         NDR_PULL_ALLOC(ndr, r->out.dualstring);
     710             :                 }
     711           0 :                 _mem_save_dualstring_0 = NDR_PULL_GET_MEM_CTX(ndr);
     712           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.dualstring, LIBNDR_FLAG_REF_ALLOC);
     713           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_dualstring));
     714           0 :                 if (_ptr_dualstring) {
     715           0 :                         NDR_PULL_ALLOC(ndr, *r->out.dualstring);
     716             :                 } else {
     717           0 :                         *r->out.dualstring = NULL;
     718             :                 }
     719           0 :                 if (*r->out.dualstring) {
     720           0 :                         _mem_save_dualstring_1 = NDR_PULL_GET_MEM_CTX(ndr);
     721           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.dualstring, 0);
     722           0 :                         NDR_CHECK(ndr_pull_DUALSTRINGARRAY(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.dualstring));
     723           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dualstring_1, 0);
     724             :                 }
     725           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dualstring_0, LIBNDR_FLAG_REF_ALLOC);
     726           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     727           0 :                         NDR_PULL_ALLOC(ndr, r->out.pReserved);
     728             :                 }
     729           0 :                 _mem_save_pReserved_0 = NDR_PULL_GET_MEM_CTX(ndr);
     730           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pReserved, LIBNDR_FLAG_REF_ALLOC);
     731           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->out.pReserved));
     732           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pReserved_0, LIBNDR_FLAG_REF_ALLOC);
     733           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     734             :         }
     735           0 :         return NDR_ERR_SUCCESS;
     736             : }
     737             : 
     738           0 : _PUBLIC_ void ndr_print_ServerAlive2(struct ndr_print *ndr, const char *name, int flags, const struct ServerAlive2 *r)
     739             : {
     740           0 :         ndr_print_struct(ndr, name, "ServerAlive2");
     741           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     742           0 :         ndr->depth++;
     743           0 :         if (flags & NDR_SET_VALUES) {
     744           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     745             :         }
     746           0 :         if (flags & NDR_IN) {
     747           0 :                 ndr_print_struct(ndr, "in", "ServerAlive2");
     748           0 :                 ndr->depth++;
     749           0 :                 ndr->depth--;
     750             :         }
     751           0 :         if (flags & NDR_OUT) {
     752           0 :                 ndr_print_struct(ndr, "out", "ServerAlive2");
     753           0 :                 ndr->depth++;
     754           0 :                 ndr_print_ptr(ndr, "info", r->out.info);
     755           0 :                 ndr->depth++;
     756           0 :                 ndr_print_COMINFO(ndr, "info", r->out.info);
     757           0 :                 ndr->depth--;
     758           0 :                 ndr_print_ptr(ndr, "dualstring", r->out.dualstring);
     759           0 :                 ndr->depth++;
     760           0 :                 ndr_print_ptr(ndr, "dualstring", *r->out.dualstring);
     761           0 :                 ndr->depth++;
     762           0 :                 if (*r->out.dualstring) {
     763           0 :                         ndr_print_DUALSTRINGARRAY(ndr, "dualstring", *r->out.dualstring);
     764             :                 }
     765           0 :                 ndr->depth--;
     766           0 :                 ndr->depth--;
     767           0 :                 ndr_print_ptr(ndr, "pReserved", r->out.pReserved);
     768           0 :                 ndr->depth++;
     769           0 :                 ndr_print_uint8(ndr, "pReserved", *r->out.pReserved);
     770           0 :                 ndr->depth--;
     771           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     772           0 :                 ndr->depth--;
     773             :         }
     774           0 :         ndr->depth--;
     775             : }
     776             : 
     777             : #ifndef SKIP_NDR_TABLE_IOXIDResolver
     778             : static const struct ndr_interface_public_struct IOXIDResolver_public_structs[] = {
     779             :         { .name = NULL }
     780             : };
     781             : 
     782             : static const struct ndr_interface_call IOXIDResolver_calls[] = {
     783             :         {
     784             :                 "ResolveOxid",
     785             :                 sizeof(struct ResolveOxid),
     786             :                 (ndr_push_flags_fn_t) ndr_push_ResolveOxid,
     787             :                 (ndr_pull_flags_fn_t) ndr_pull_ResolveOxid,
     788             :                 (ndr_print_function_t) ndr_print_ResolveOxid,
     789             :                 { 0, NULL },
     790             :                 { 0, NULL },
     791             :         },
     792             :         {
     793             :                 "SimplePing",
     794             :                 sizeof(struct SimplePing),
     795             :                 (ndr_push_flags_fn_t) ndr_push_SimplePing,
     796             :                 (ndr_pull_flags_fn_t) ndr_pull_SimplePing,
     797             :                 (ndr_print_function_t) ndr_print_SimplePing,
     798             :                 { 0, NULL },
     799             :                 { 0, NULL },
     800             :         },
     801             :         {
     802             :                 "ComplexPing",
     803             :                 sizeof(struct ComplexPing),
     804             :                 (ndr_push_flags_fn_t) ndr_push_ComplexPing,
     805             :                 (ndr_pull_flags_fn_t) ndr_pull_ComplexPing,
     806             :                 (ndr_print_function_t) ndr_print_ComplexPing,
     807             :                 { 0, NULL },
     808             :                 { 0, NULL },
     809             :         },
     810             :         {
     811             :                 "ServerAlive",
     812             :                 sizeof(struct ServerAlive),
     813             :                 (ndr_push_flags_fn_t) ndr_push_ServerAlive,
     814             :                 (ndr_pull_flags_fn_t) ndr_pull_ServerAlive,
     815             :                 (ndr_print_function_t) ndr_print_ServerAlive,
     816             :                 { 0, NULL },
     817             :                 { 0, NULL },
     818             :         },
     819             :         {
     820             :                 "ResolveOxid2",
     821             :                 sizeof(struct ResolveOxid2),
     822             :                 (ndr_push_flags_fn_t) ndr_push_ResolveOxid2,
     823             :                 (ndr_pull_flags_fn_t) ndr_pull_ResolveOxid2,
     824             :                 (ndr_print_function_t) ndr_print_ResolveOxid2,
     825             :                 { 0, NULL },
     826             :                 { 0, NULL },
     827             :         },
     828             :         {
     829             :                 "ServerAlive2",
     830             :                 sizeof(struct ServerAlive2),
     831             :                 (ndr_push_flags_fn_t) ndr_push_ServerAlive2,
     832             :                 (ndr_pull_flags_fn_t) ndr_pull_ServerAlive2,
     833             :                 (ndr_print_function_t) ndr_print_ServerAlive2,
     834             :                 { 0, NULL },
     835             :                 { 0, NULL },
     836             :         },
     837             :         { .name = NULL }
     838             : };
     839             : 
     840             : static const char * const IOXIDResolver_endpoint_strings[] = {
     841             :         "ncacn_np:[\\pipe\\epmapper]", 
     842             :         "ncacn_ip_tcp:[135]", 
     843             :         "ncalrpc:", 
     844             : };
     845             : 
     846             : static const struct ndr_interface_string_array IOXIDResolver_endpoints = {
     847             :         .count  = 3,
     848             :         .names  = IOXIDResolver_endpoint_strings
     849             : };
     850             : 
     851             : static const char * const IOXIDResolver_authservice_strings[] = {
     852             :         "host", 
     853             : };
     854             : 
     855             : static const struct ndr_interface_string_array IOXIDResolver_authservices = {
     856             :         .count  = 1,
     857             :         .names  = IOXIDResolver_authservice_strings
     858             : };
     859             : 
     860             : 
     861             : const struct ndr_interface_table ndr_table_IOXIDResolver = {
     862             :         .name           = "IOXIDResolver",
     863             :         .syntax_id      = {
     864             :                 {0x99fcfec4,0x5260,0x101b,{0xbb,0xcb},{0x00,0xaa,0x00,0x21,0x34,0x7a}},
     865             :                 NDR_IOXIDRESOLVER_VERSION
     866             :         },
     867             :         .helpstring     = NDR_IOXIDRESOLVER_HELPSTRING,
     868             :         .num_calls      = 6,
     869             :         .calls          = IOXIDResolver_calls,
     870             :         .num_public_structs     = 0,
     871             :         .public_structs         = IOXIDResolver_public_structs,
     872             :         .endpoints      = &IOXIDResolver_endpoints,
     873             :         .authservices   = &IOXIDResolver_authservices
     874             : };
     875             : 
     876             : #endif /* SKIP_NDR_TABLE_IOXIDResolver */

Generated by: LCOV version 1.13