From 768b42f334fc2504ff9e1e7ec77e4d366220aef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Thu, 3 Nov 2011 10:30:37 +0100 Subject: [PATCH] nbt: move netlogon_samlogon_response into librpc/ndr/ndr_nbt.h. Guenther --- libcli/netlogon/netlogon.h | 11 ----------- librpc/ndr/ndr_nbt.h | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/libcli/netlogon/netlogon.h b/libcli/netlogon/netlogon.h index a68c7fab82a..0bf2a4c85c0 100644 --- a/libcli/netlogon/netlogon.h +++ b/libcli/netlogon/netlogon.h @@ -27,17 +27,6 @@ #include "librpc/gen_ndr/ndr_misc.h" #include "librpc/gen_ndr/ndr_security.h" -struct netlogon_samlogon_response -{ - uint32_t ntver; - union { - struct NETLOGON_SAM_LOGON_RESPONSE_NT40 nt4; - struct NETLOGON_SAM_LOGON_RESPONSE nt5; - struct NETLOGON_SAM_LOGON_RESPONSE_EX nt5_ex; - } data; - -}; - struct nbt_netlogon_response { enum {NETLOGON_GET_PDC, NETLOGON_SAMLOGON, NETLOGON_RESPONSE2} response_type; diff --git a/librpc/ndr/ndr_nbt.h b/librpc/ndr/ndr_nbt.h index 65975765cbf..bda0e210cfe 100644 --- a/librpc/ndr/ndr_nbt.h +++ b/librpc/ndr/ndr_nbt.h @@ -29,6 +29,17 @@ NDR_SCALAR_PROTO(nbt_string, const char *) +struct netlogon_samlogon_response +{ + uint32_t ntver; + union { + struct NETLOGON_SAM_LOGON_RESPONSE_NT40 nt4; + struct NETLOGON_SAM_LOGON_RESPONSE nt5; + struct NETLOGON_SAM_LOGON_RESPONSE_EX nt5_ex; + } data; + +}; + enum ndr_err_code ndr_push_NETLOGON_SAM_LOGON_REQUEST(struct ndr_push *ndr, int ndr_flags, const struct NETLOGON_SAM_LOGON_REQUEST *r); enum ndr_err_code ndr_pull_NETLOGON_SAM_LOGON_REQUEST(struct ndr_pull *ndr, int ndr_flags, struct NETLOGON_SAM_LOGON_REQUEST *r); enum ndr_err_code ndr_push_NETLOGON_SAM_LOGON_RESPONSE_EX_with_flags(struct ndr_push *ndr, int ndr_flags, const struct NETLOGON_SAM_LOGON_RESPONSE_EX *r);