lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *)
[kai/samba-autobuild/.git] / source4 / kdc / kdc-proxy.h
1 /*
2    Unix SMB/CIFS implementation.
3
4    KDC related functions
5
6    Copyright (c) 2005-2008 Andrew Bartlett <abartlet@samba.org>
7    Copyright (c) 2005             Andrew Tridgell <tridge@samba.org>
8    Copyright (c) 2005             Stefan Metzmacher <metze@samba.org>
9
10    This program is free software; you can redistribute it and/or modify
11    it under the terms of the GNU General Public License as published by
12    the Free Software Foundation; either version 3 of the License, or
13    (at your option) any later version.
14
15    This program is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18    GNU General Public License for more details.
19
20    You should have received a copy of the GNU General Public License
21    along with this program.  If not, see <http://www.gnu.org/licenses/>.
22 */
23
24 #ifndef _KDC_PROXY_H
25 #define _KDC_PROXY_H
26
27 struct tevent_req *kdc_udp_proxy_send(TALLOC_CTX *mem_ctx,
28                                       struct tevent_context *ev,
29                                       struct kdc_server *kdc,
30                                       uint16_t port,
31                                       DATA_BLOB in);
32 NTSTATUS kdc_udp_proxy_recv(struct tevent_req *req,
33                             TALLOC_CTX *mem_ctx,
34                             DATA_BLOB *out);
35
36 struct tevent_req *kdc_tcp_proxy_send(TALLOC_CTX *mem_ctx,
37                                       struct tevent_context *ev,
38                                       struct kdc_server *kdc,
39                                       uint16_t port,
40                                       DATA_BLOB in);
41 NTSTATUS kdc_tcp_proxy_recv(struct tevent_req *req,
42                             TALLOC_CTX *mem_ctx,
43                             DATA_BLOB *out);
44
45 #endif /* _KDC_PROXY_H */