lib: Add a few required includes
[samba4-gss.git] / source3 / utils / conn_tdb.h
blob23a5e214ff2b28ab3162bccf1d5c27ea388a67b9
1 /*
2 Unix SMB/CIFS implementation.
3 Low-level connections.tdb access functions
4 Copyright (C) Volker Lendecke 2007
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 /* key and data in the connections database - used in smbstatus and smbd */
22 #include "source3/include/includes.h"
24 struct connections_data {
25 struct server_id pid;
26 int cnum;
27 uint32_t sess_id;
28 uid_t uid;
29 gid_t gid;
30 fstring servicename;
31 fstring addr;
32 fstring machine;
33 NTTIME start;
34 uint8_t encryption_flags;
35 uint16_t cipher;
36 uint16_t dialect;
37 uint8_t signing_flags;
38 uint16_t signing;
39 bool authenticated;
42 /* The following definitions come from lib/conn_tdb.c */
44 int connections_forall_read(int (*fn)(const struct connections_data *data,
45 void *private_data),
46 void *private_data);