libgpo: apply some const.
[kai/samba-autobuild/.git] / source3 / libsmb / samlogon_cache.h
1 /*
2  * Unix SMB/CIFS implementation.
3  * Net_sam_logon info3 helpers
4  * Copyright (C) Alexander Bokovoy              2002.
5  * Copyright (C) Andrew Bartlett                2002.
6  * Copyright (C) Gerald Carter                  2003.
7  * Copyright (C) Tim Potter                     2003.
8  * Copyright (C) Guenther Deschner              2008.
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 __LIBSMB_SAMLOGON_CACHE_H__
25 #define __LIBSMB_SAMLOGON_CACHE_H__
26
27 #include "replace.h"
28 #include <talloc.h>
29
30 struct dom_sid;
31 struct netr_SamInfo3;
32
33 bool netsamlogon_cache_init(void);
34 void netsamlogon_clear_cached_user(const struct dom_sid *user_sid);
35 bool netsamlogon_cache_store(const char *username,
36                              struct netr_SamInfo3 *info3);
37 struct netr_SamInfo3 *netsamlogon_cache_get(TALLOC_CTX *mem_ctx,
38                                             const struct dom_sid *user_sid);
39 bool netsamlogon_cache_have(const struct dom_sid *sid);
40
41 #endif