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__
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
,
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
);