s3/rpc_client: make map_validation_to_info3() public and move to util_netlogon
[Samba.git] / source3 / rpc_client / util_netlogon.h
bloba89e043d5af1725c3f6d46ad8a41f5100938a197
1 /*
2 Unix SMB/CIFS implementation.
3 Authentication utility functions
4 Copyright (C) Volker Lendecke 2010
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _RPC_CLIENT_UTIL_NETLOGON_H_
21 #define _RPC_CLIENT_UTIL_NETLOGON_H_
23 /* The following definitions come from rpc_client/util_netlogon.c */
25 NTSTATUS copy_netr_SamBaseInfo(TALLOC_CTX *mem_ctx,
26 const struct netr_SamBaseInfo *in,
27 struct netr_SamBaseInfo *out);
28 struct netr_SamInfo3 *copy_netr_SamInfo3(TALLOC_CTX *mem_ctx,
29 const struct netr_SamInfo3 *orig);
30 NTSTATUS map_validation_to_info3(TALLOC_CTX *mem_ctx,
31 uint16_t validation_level,
32 union netr_Validation *validation,
33 struct netr_SamInfo3 **info3_p);
35 #endif /* _RPC_CLIENT_UTIL_NETLOGON_H_ */