tests: Check symlinks are readable as reparse points
[samba.git] / source3 / smbd / smb1_utils.h
blob539648e28cad9e6e49c0d42e89f3d857eba12c9c
1 /*
2 * Unix SMB/CIFS implementation.
3 * Util functions valid in the SMB1 server
5 * Copyright (C) Volker Lendecke 2019
6 * Copyright by the authors of the functions moved here eventually
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef __SMBD_SMB1_UTILS_H__
23 #define __SMBD_SMB1_UTILS_H__
25 #include "includes.h"
26 #include "vfs.h"
27 #include "proto.h"
28 #include "lib/util/string_wrappers.h"
30 struct files_struct *fcb_or_dos_open(
31 struct smb_request *req,
32 const struct smb_filename *smb_fname,
33 uint32_t access_mask,
34 uint32_t create_options,
35 uint32_t private_flags);
36 bool send_keepalive(int client);
37 ssize_t message_push_string(uint8_t **outbuf, const char *str, int flags);
38 NTSTATUS filename_convert_smb1_search_path(TALLOC_CTX *ctx,
39 connection_struct *conn,
40 char *name_in,
41 uint32_t ucf_flags,
42 struct files_struct **_dirfsp,
43 struct smb_filename **_smb_fname_out,
44 char **_mask_out);
46 #endif