diff options
author | Günther Deschner <gd@samba.org> | 2009-09-02 15:29:44 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-09-02 15:29:44 +0200 |
commit | a0b1968167c36c345711a98c65c3974590b1ce6a (patch) | |
tree | aae8b1640a0b45c2c4886df307c8e1cb297b16cc /librpc/gen_ndr | |
parent | 6657598168724d4fe076f9014c2b5c16a034fe52 (diff) | |
download | samba-a0b1968167c36c345711a98c65c3974590b1ce6a.tar.gz samba-a0b1968167c36c345711a98c65c3974590b1ce6a.tar.bz2 samba-a0b1968167c36c345711a98c65c3974590b1ce6a.zip |
s3-netlogon: use WERRORs in NETLOGON_INFO structures.
Guenther
Diffstat (limited to 'librpc/gen_ndr')
-rw-r--r-- | librpc/gen_ndr/ndr_netlogon.c | 18 | ||||
-rw-r--r-- | librpc/gen_ndr/netlogon.h | 6 |
2 files changed, 12 insertions, 12 deletions
diff --git a/librpc/gen_ndr/ndr_netlogon.c b/librpc/gen_ndr/ndr_netlogon.c index 46247b4998..7337d2697a 100644 --- a/librpc/gen_ndr/ndr_netlogon.c +++ b/librpc/gen_ndr/ndr_netlogon.c @@ -5627,7 +5627,7 @@ static enum ndr_err_code ndr_push_netr_NETLOGON_INFO_1(struct ndr_push *ndr, int if (ndr_flags & NDR_SCALARS) { NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_netr_InfoFlags(ndr, NDR_SCALARS, r->flags)); - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->pdc_connection_status)); + NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->pdc_connection_status)); } if (ndr_flags & NDR_BUFFERS) { } @@ -5639,7 +5639,7 @@ static enum ndr_err_code ndr_pull_netr_NETLOGON_INFO_1(struct ndr_pull *ndr, int if (ndr_flags & NDR_SCALARS) { NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_netr_InfoFlags(ndr, NDR_SCALARS, &r->flags)); - NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->pdc_connection_status)); + NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->pdc_connection_status)); } if (ndr_flags & NDR_BUFFERS) { } @@ -5651,7 +5651,7 @@ _PUBLIC_ void ndr_print_netr_NETLOGON_INFO_1(struct ndr_print *ndr, const char * ndr_print_struct(ndr, name, "netr_NETLOGON_INFO_1"); ndr->depth++; ndr_print_netr_InfoFlags(ndr, "flags", r->flags); - ndr_print_uint32(ndr, "pdc_connection_status", r->pdc_connection_status); + ndr_print_WERROR(ndr, "pdc_connection_status", r->pdc_connection_status); ndr->depth--; } @@ -5660,9 +5660,9 @@ static enum ndr_err_code ndr_push_netr_NETLOGON_INFO_2(struct ndr_push *ndr, int if (ndr_flags & NDR_SCALARS) { NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_netr_InfoFlags(ndr, NDR_SCALARS, r->flags)); - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->pdc_connection_status)); + NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->pdc_connection_status)); NDR_CHECK(ndr_push_unique_ptr(ndr, r->trusted_dc_name)); - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->tc_connection_status)); + NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->tc_connection_status)); } if (ndr_flags & NDR_BUFFERS) { if (r->trusted_dc_name) { @@ -5682,14 +5682,14 @@ static enum ndr_err_code ndr_pull_netr_NETLOGON_INFO_2(struct ndr_pull *ndr, int if (ndr_flags & NDR_SCALARS) { NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_netr_InfoFlags(ndr, NDR_SCALARS, &r->flags)); - NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->pdc_connection_status)); + NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->pdc_connection_status)); NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_trusted_dc_name)); if (_ptr_trusted_dc_name) { NDR_PULL_ALLOC(ndr, r->trusted_dc_name); } else { r->trusted_dc_name = NULL; } - NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->tc_connection_status)); + NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->tc_connection_status)); } if (ndr_flags & NDR_BUFFERS) { if (r->trusted_dc_name) { @@ -5713,14 +5713,14 @@ _PUBLIC_ void ndr_print_netr_NETLOGON_INFO_2(struct ndr_print *ndr, const char * ndr_print_struct(ndr, name, "netr_NETLOGON_INFO_2"); ndr->depth++; ndr_print_netr_InfoFlags(ndr, "flags", r->flags); - ndr_print_uint32(ndr, "pdc_connection_status", r->pdc_connection_status); + ndr_print_WERROR(ndr, "pdc_connection_status", r->pdc_connection_status); ndr_print_ptr(ndr, "trusted_dc_name", r->trusted_dc_name); ndr->depth++; if (r->trusted_dc_name) { ndr_print_string(ndr, "trusted_dc_name", r->trusted_dc_name); } ndr->depth--; - ndr_print_uint32(ndr, "tc_connection_status", r->tc_connection_status); + ndr_print_WERROR(ndr, "tc_connection_status", r->tc_connection_status); ndr->depth--; } diff --git a/librpc/gen_ndr/netlogon.h b/librpc/gen_ndr/netlogon.h index b3cf3f35cf..931222f27c 100644 --- a/librpc/gen_ndr/netlogon.h +++ b/librpc/gen_ndr/netlogon.h @@ -656,14 +656,14 @@ struct netr_AccountBuffer { struct netr_NETLOGON_INFO_1 { uint32_t flags; - uint32_t pdc_connection_status; + WERROR pdc_connection_status; }; struct netr_NETLOGON_INFO_2 { uint32_t flags; - uint32_t pdc_connection_status; + WERROR pdc_connection_status; const char *trusted_dc_name;/* [unique,charset(UTF16)] */ - uint32_t tc_connection_status; + WERROR tc_connection_status; }; struct netr_NETLOGON_INFO_3 { |