WHATSNEW: Add release notes for Samba 4.13.14.
[Samba.git] / source3 / modules / offload_token.h
blob1e8e26d476ffa6e9ec627b31c402a16745e7a97d
1 /*
2 Unix SMB/Netbios implementation.
3 Copyright (c) 2017 Ralph Boehme <slow@samba.org>
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 _OFFLOAD_TOKEN_H_
20 #define _OFFLOAD_TOKEN_H_
22 struct vfs_offload_ctx;
23 struct req_resume_key_rsp;
25 NTSTATUS vfs_offload_token_ctx_init(TALLOC_CTX *mem_ctx,
26 struct vfs_offload_ctx **_ctx);
27 NTSTATUS vfs_offload_token_db_store_fsp(struct vfs_offload_ctx *ctx,
28 const files_struct *fsp,
29 const DATA_BLOB *token_blob);
30 NTSTATUS vfs_offload_token_db_fetch_fsp(struct vfs_offload_ctx *ctx,
31 const DATA_BLOB *token_blob,
32 files_struct **fsp);
33 NTSTATUS vfs_offload_token_create_blob(TALLOC_CTX *mem_ctx,
34 const files_struct *fsp,
35 uint32_t fsctl,
36 DATA_BLOB *token_blob);
37 NTSTATUS vfs_offload_token_check_handles(uint32_t fsctl,
38 files_struct *src_fsp,
39 files_struct *dst_fsp);
40 #endif