dbwrap: add dbwrap_parse_record_send/recv
[Samba.git] / source4 / kdc / kdc-proxy.h
blob1ebe8daf3044ca4a980aaf634a8027488b906727
1 /*
2 Unix SMB/CIFS implementation.
4 KDC related functions
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>
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.
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.
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/>.
24 #ifndef _KDC_PROXY_H
25 #define _KDC_PROXY_H
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);
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);
45 #endif /* _KDC_PROXY_H */