1 | /*
|
---|
2 | Unix SMB/CIFS implementation.
|
---|
3 | client dgram calls
|
---|
4 | Copyright (C) Andrew Tridgell 1994-1998
|
---|
5 | Copyright (C) Richard Sharpe 2001
|
---|
6 | Copyright (C) John Terpstra 2001
|
---|
7 |
|
---|
8 | This program is free software; you can redistribute it and/or modify
|
---|
9 | it under the terms of the GNU General Public License as published by
|
---|
10 | the Free Software Foundation; either version 3 of the License, or
|
---|
11 | (at your option) any later version.
|
---|
12 |
|
---|
13 | This program is distributed in the hope that it will be useful,
|
---|
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
16 | GNU General Public License for more details.
|
---|
17 |
|
---|
18 | You should have received a copy of the GNU General Public License
|
---|
19 | along with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
20 | */
|
---|
21 |
|
---|
22 | #ifndef _LIBSMB_CLIDGRAM_H_
|
---|
23 | #define _LIBSMB_CLIDGRAM_H_
|
---|
24 |
|
---|
25 | #include "../libcli/netlogon/netlogon.h"
|
---|
26 |
|
---|
27 | /* The following definitions come from libsmb/clidgram.c */
|
---|
28 |
|
---|
29 | struct tevent_req *nbt_getdc_send(TALLOC_CTX *mem_ctx,
|
---|
30 | struct tevent_context *ev,
|
---|
31 | struct messaging_context *msg_ctx,
|
---|
32 | const struct sockaddr_storage *dc_addr,
|
---|
33 | const char *domain_name,
|
---|
34 | const struct dom_sid *sid,
|
---|
35 | uint32_t nt_version);
|
---|
36 | NTSTATUS nbt_getdc_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
37 | uint32_t *nt_version, const char **dc_name,
|
---|
38 | struct netlogon_samlogon_response **samlogon_response);
|
---|
39 | NTSTATUS nbt_getdc(struct messaging_context *msg_ctx,
|
---|
40 | const struct sockaddr_storage *dc_addr,
|
---|
41 | const char *domain_name,
|
---|
42 | const struct dom_sid *sid,
|
---|
43 | uint32_t nt_version,
|
---|
44 | TALLOC_CTX *mem_ctx,
|
---|
45 | uint32_t *pnt_version,
|
---|
46 | const char **dc_name,
|
---|
47 | struct netlogon_samlogon_response **samlogon_response);
|
---|
48 |
|
---|
49 | #endif /* _LIBSMB_CLIDGRAM_H_ */
|
---|