tests/krb5: Add more encryption type constants
[Samba.git] / source3 / smbd / smbd.h
blob88bff2830d9513febbd44f2042dcf13a040a2d13
1 /*
2 Unix SMB/CIFS implementation.
3 Main SMB server routines
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef _SMBD_SMBD_H
20 #define _SMBD_SMBD_H
22 struct dptr_struct;
24 #include "smb_acls.h"
25 #include "vfs.h"
26 #include "smbd/proto.h"
27 #include "locking/proto.h"
28 #include "smbd/fd_handle.h"
30 struct trans_state {
31 struct trans_state *next, *prev;
32 uint64_t vuid; /* SMB2 compat */
33 uint64_t mid;
35 uint32_t max_param_return;
36 uint32_t max_data_return;
37 uint32_t max_setup_return;
39 uint8_t cmd; /* SMBtrans or SMBtrans2 */
41 char *name; /* for trans requests */
42 uint16_t call; /* for trans2 and nttrans requests */
44 bool close_on_completion;
45 bool one_way;
47 unsigned int setup_count;
48 uint16_t *setup;
50 size_t received_data;
51 size_t received_param;
53 size_t total_param;
54 char *param;
56 size_t total_data;
57 char *data;
61 * unix_convert_flags
63 /* UCF_SAVE_LCOMP 0x00000001 is no longer used. */
64 /* UCF_ALWAYS_ALLOW_WCARD_LCOMP 0x00000002 is no longer used. */
65 /* UCF_COND_ALLOW_WCARD_LCOMP 0x00000004 is no longer used. */
66 #define UCF_POSIX_PATHNAMES 0x00000008
67 /* #define UCF_UNIX_NAME_LOOKUP 0x00000010 is no longer used. */
68 #define UCF_PREP_CREATEFILE 0x00000020
70 * Use the same bit as FLAGS2_REPARSE_PATH
71 * which means the same thing.
73 #define UCF_GMT_PATHNAME 0x00000400
75 * Use the same bit as FLAGS2_DFS_PATHNAMES
76 * which means the same thing.
78 #define UCF_DFS_PATHNAME 0x00001000
80 #endif /* _SMBD_SMBD_H */