diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/librpc/gen_ndr/nbt.h | 8 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/ndr_nbt.c | 15 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/ndr_nbt.h | 2 |
3 files changed, 15 insertions, 10 deletions
diff --git a/source3/librpc/gen_ndr/nbt.h b/source3/librpc/gen_ndr/nbt.h index 8f2c38aef4..bd9bfcd541 100644 --- a/source3/librpc/gen_ndr/nbt.h +++ b/source3/librpc/gen_ndr/nbt.h @@ -555,7 +555,7 @@ struct nbt_cldap_netlogon_5 { uint32_t nt_version;/* [value(5)] */ uint16_t lmnt_token; uint16_t lm20_token; -}; +}/* [public] */; struct nbt_cldap_netlogon_13 { uint32_t type; @@ -590,13 +590,15 @@ enum nbt_ntlogon_command { NTLOGON_SAM_LOGON=0x12, NTLOGON_SAM_LOGON_REPLY=0x13, - NTLOGON_SAM_LOGON_REPLY15=0x15 + NTLOGON_SAM_LOGON_REPLY15=0x15, + NTLOGON_RESPONSE_FROM_PDC2=0x17 } #else { __donnot_use_enum_nbt_ntlogon_command=0x7FFFFFFF} #define NTLOGON_SAM_LOGON ( 0x12 ) #define NTLOGON_SAM_LOGON_REPLY ( 0x13 ) #define NTLOGON_SAM_LOGON_REPLY15 ( 0x15 ) +#define NTLOGON_RESPONSE_FROM_PDC2 ( 0x17 ) #endif ; @@ -625,7 +627,7 @@ struct nbt_ntlogon_sam_logon_reply { union nbt_ntlogon_request { struct nbt_ntlogon_sam_logon logon;/* [case(NTLOGON_SAM_LOGON)] */ struct nbt_ntlogon_sam_logon_reply reply;/* [case(NTLOGON_SAM_LOGON_REPLY)] */ - struct nbt_netlogon_response_from_pdc2 reply2;/* [case(NETLOGON_RESPONSE_FROM_PDC2)] */ + struct nbt_netlogon_response_from_pdc2 reply2;/* [case(NTLOGON_RESPONSE_FROM_PDC2)] */ }/* [nodiscriminant] */; struct nbt_ntlogon_packet { diff --git a/source3/librpc/gen_ndr/ndr_nbt.c b/source3/librpc/gen_ndr/ndr_nbt.c index 45fd54d52f..92a94886d2 100644 --- a/source3/librpc/gen_ndr/ndr_nbt.c +++ b/source3/librpc/gen_ndr/ndr_nbt.c @@ -2577,7 +2577,7 @@ _PUBLIC_ void ndr_print_nbt_cldap_netlogon_3(struct ndr_print *ndr, const char * ndr->depth--; } -static enum ndr_err_code ndr_push_nbt_cldap_netlogon_5(struct ndr_push *ndr, int ndr_flags, const struct nbt_cldap_netlogon_5 *r) +_PUBLIC_ enum ndr_err_code ndr_push_nbt_cldap_netlogon_5(struct ndr_push *ndr, int ndr_flags, const struct nbt_cldap_netlogon_5 *r) { if (ndr_flags & NDR_SCALARS) { NDR_CHECK(ndr_push_align(ndr, 4)); @@ -2601,7 +2601,7 @@ static enum ndr_err_code ndr_push_nbt_cldap_netlogon_5(struct ndr_push *ndr, int return NDR_ERR_SUCCESS; } -static enum ndr_err_code ndr_pull_nbt_cldap_netlogon_5(struct ndr_pull *ndr, int ndr_flags, struct nbt_cldap_netlogon_5 *r) +_PUBLIC_ enum ndr_err_code ndr_pull_nbt_cldap_netlogon_5(struct ndr_pull *ndr, int ndr_flags, struct nbt_cldap_netlogon_5 *r) { if (ndr_flags & NDR_SCALARS) { NDR_CHECK(ndr_pull_align(ndr, 4)); @@ -2991,6 +2991,7 @@ _PUBLIC_ void ndr_print_nbt_ntlogon_command(struct ndr_print *ndr, const char *n case NTLOGON_SAM_LOGON: val = "NTLOGON_SAM_LOGON"; break; case NTLOGON_SAM_LOGON_REPLY: val = "NTLOGON_SAM_LOGON_REPLY"; break; case NTLOGON_SAM_LOGON_REPLY15: val = "NTLOGON_SAM_LOGON_REPLY15"; break; + case NTLOGON_RESPONSE_FROM_PDC2: val = "NTLOGON_RESPONSE_FROM_PDC2"; break; } ndr_print_enum(ndr, name, "ENUM", val, r); } @@ -3184,7 +3185,7 @@ static enum ndr_err_code ndr_push_nbt_ntlogon_request(struct ndr_push *ndr, int NDR_CHECK(ndr_push_nbt_ntlogon_sam_logon_reply(ndr, NDR_SCALARS, &r->reply)); break; } - case NETLOGON_RESPONSE_FROM_PDC2: { + case NTLOGON_RESPONSE_FROM_PDC2: { NDR_CHECK(ndr_push_nbt_netlogon_response_from_pdc2(ndr, NDR_SCALARS, &r->reply2)); break; } @@ -3205,7 +3206,7 @@ static enum ndr_err_code ndr_push_nbt_ntlogon_request(struct ndr_push *ndr, int case NTLOGON_SAM_LOGON_REPLY15: break; - case NETLOGON_RESPONSE_FROM_PDC2: + case NTLOGON_RESPONSE_FROM_PDC2: break; default: @@ -3233,7 +3234,7 @@ static enum ndr_err_code ndr_pull_nbt_ntlogon_request(struct ndr_pull *ndr, int NDR_CHECK(ndr_pull_nbt_ntlogon_sam_logon_reply(ndr, NDR_SCALARS, &r->reply)); break; } - case NETLOGON_RESPONSE_FROM_PDC2: { + case NTLOGON_RESPONSE_FROM_PDC2: { NDR_CHECK(ndr_pull_nbt_netlogon_response_from_pdc2(ndr, NDR_SCALARS, &r->reply2)); break; } @@ -3253,7 +3254,7 @@ static enum ndr_err_code ndr_pull_nbt_ntlogon_request(struct ndr_pull *ndr, int case NTLOGON_SAM_LOGON_REPLY15: break; - case NETLOGON_RESPONSE_FROM_PDC2: + case NTLOGON_RESPONSE_FROM_PDC2: break; default: @@ -3281,7 +3282,7 @@ _PUBLIC_ void ndr_print_nbt_ntlogon_request(struct ndr_print *ndr, const char *n ndr_print_nbt_ntlogon_sam_logon_reply(ndr, "reply", &r->reply); break; - case NETLOGON_RESPONSE_FROM_PDC2: + case NTLOGON_RESPONSE_FROM_PDC2: ndr_print_nbt_netlogon_response_from_pdc2(ndr, "reply2", &r->reply2); break; diff --git a/source3/librpc/gen_ndr/ndr_nbt.h b/source3/librpc/gen_ndr/ndr_nbt.h index 645669972d..28b8a49daa 100644 --- a/source3/librpc/gen_ndr/ndr_nbt.h +++ b/source3/librpc/gen_ndr/ndr_nbt.h @@ -57,6 +57,8 @@ enum ndr_err_code ndr_pull_nbt_netlogon_packet(struct ndr_pull *ndr, int ndr_fla void ndr_print_nbt_netlogon_packet(struct ndr_print *ndr, const char *name, const struct nbt_netlogon_packet *r); void ndr_print_nbt_cldap_netlogon_1(struct ndr_print *ndr, const char *name, const struct nbt_cldap_netlogon_1 *r); void ndr_print_nbt_cldap_netlogon_3(struct ndr_print *ndr, const char *name, const struct nbt_cldap_netlogon_3 *r); +enum ndr_err_code ndr_push_nbt_cldap_netlogon_5(struct ndr_push *ndr, int ndr_flags, const struct nbt_cldap_netlogon_5 *r); +enum ndr_err_code ndr_pull_nbt_cldap_netlogon_5(struct ndr_pull *ndr, int ndr_flags, struct nbt_cldap_netlogon_5 *r); void ndr_print_nbt_cldap_netlogon_5(struct ndr_print *ndr, const char *name, const struct nbt_cldap_netlogon_5 *r); void ndr_print_nbt_cldap_netlogon_13(struct ndr_print *ndr, const char *name, const struct nbt_cldap_netlogon_13 *r); enum ndr_err_code ndr_push_nbt_cldap_netlogon(struct ndr_push *ndr, int ndr_flags, const union nbt_cldap_netlogon *r); |