2012-06-04 17:32:28 +04:00
/*
Unix SMB / CIFS implementation .
Low - level connections . tdb access functions
Copyright ( C ) Volker Lendecke 2007
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program . If not , see < http : //www.gnu.org/licenses/>.
*/
/* key and data in the connections database - used in smbstatus and smbd */
struct connections_data {
struct server_id pid ;
int cnum ;
2022-07-07 11:08:36 +03:00
uint32_t sess_id ;
2012-06-04 17:32:28 +04:00
uid_t uid ;
gid_t gid ;
2013-11-10 14:56:06 +04:00
fstring servicename ;
fstring addr ;
fstring machine ;
2022-07-18 12:33:12 +03:00
NTTIME start ;
2015-11-09 19:26:51 +03:00
uint8_t encryption_flags ;
uint16_t cipher ;
2015-11-30 13:14:34 +03:00
uint16_t dialect ;
2015-11-30 13:20:43 +03:00
uint8_t signing_flags ;
2021-05-07 00:55:49 +03:00
uint16_t signing ;
2012-06-04 17:32:28 +04:00
} ;
/* The following definitions come from lib/conn_tdb.c */
2021-10-26 14:56:54 +03:00
int connections_forall_read ( int ( * fn ) ( const struct connections_data * data ,
2012-06-04 17:32:28 +04:00
void * private_data ) ,
void * private_data ) ;