Steve French | 929be90 | 2021-06-18 00:31:49 -0500 | [diff] [blame] | 1 | /* SPDX-License-Identifier: LGPL-2.1 */ |
Pavel Shilovsky | be4cb9e | 2011-12-29 17:06:33 +0400 | [diff] [blame] | 2 | /* |
Pavel Shilovsky | be4cb9e | 2011-12-29 17:06:33 +0400 | [diff] [blame] | 3 | * |
| 4 | * Definitions for various global variables and structures |
| 5 | * |
| 6 | * Copyright (C) International Business Machines Corp., 2002, 2011 |
| 7 | * Etersoft, 2012 |
| 8 | * Author(s): Steve French (sfrench@us.ibm.com) |
| 9 | * Jeremy Allison (jra@samba.org) |
| 10 | * Pavel Shilovsky (pshilovsky@samba.org) 2012 |
| 11 | * |
Pavel Shilovsky | be4cb9e | 2011-12-29 17:06:33 +0400 | [diff] [blame] | 12 | */ |
| 13 | #ifndef _SMB2_GLOB_H |
| 14 | #define _SMB2_GLOB_H |
| 15 | |
| 16 | /* |
| 17 | ***************************************************************** |
| 18 | * Constants go here |
| 19 | ***************************************************************** |
| 20 | */ |
| 21 | |
| 22 | /* |
| 23 | * Identifiers for functions that use the open, operation, close pattern |
Ronnie Sahlberg | bb43551 | 2018-09-03 13:33:49 +1000 | [diff] [blame] | 24 | * in smb2inode.c:smb2_compound_op() |
Pavel Shilovsky | be4cb9e | 2011-12-29 17:06:33 +0400 | [diff] [blame] | 25 | */ |
| 26 | #define SMB2_OP_SET_DELETE 1 |
| 27 | #define SMB2_OP_SET_INFO 2 |
| 28 | #define SMB2_OP_QUERY_INFO 3 |
| 29 | #define SMB2_OP_QUERY_DIR 4 |
| 30 | #define SMB2_OP_MKDIR 5 |
| 31 | #define SMB2_OP_RENAME 6 |
| 32 | #define SMB2_OP_DELETE 7 |
Pavel Shilovsky | 568798c | 2012-09-18 16:20:31 -0700 | [diff] [blame] | 33 | #define SMB2_OP_HARDLINK 8 |
Pavel Shilovsky | c839ff2 | 2012-09-18 16:20:32 -0700 | [diff] [blame] | 34 | #define SMB2_OP_SET_EOF 9 |
Steve French | 897fba1 | 2016-05-12 21:20:36 -0500 | [diff] [blame] | 35 | #define SMB2_OP_RMDIR 10 |
Steve French | 6a5f659 | 2020-06-11 19:25:47 -0500 | [diff] [blame] | 36 | #define SMB2_OP_POSIX_QUERY_INFO 11 |
Pavel Shilovsky | be4cb9e | 2011-12-29 17:06:33 +0400 | [diff] [blame] | 37 | |
Pavel Shilovsky | 09a4707 | 2012-09-18 16:20:29 -0700 | [diff] [blame] | 38 | /* Used when constructing chained read requests. */ |
| 39 | #define CHAINED_REQUEST 1 |
| 40 | #define START_OF_CHAIN 2 |
| 41 | #define END_OF_CHAIN 4 |
| 42 | #define RELATED_REQUEST 8 |
| 43 | |
Pavel Shilovsky | 3c1bf7e | 2012-09-18 16:20:30 -0700 | [diff] [blame] | 44 | #define SMB2_SIGNATURE_SIZE (16) |
| 45 | #define SMB2_NTLMV2_SESSKEY_SIZE (16) |
| 46 | #define SMB2_HMACSHA256_SIZE (32) |
Steve French | 429b46f | 2013-06-26 23:45:05 -0500 | [diff] [blame] | 47 | #define SMB2_CMACAES_SIZE (16) |
| 48 | #define SMB3_SIGNKEY_SIZE (16) |
Shyam Prasad N | 45a4546 | 2021-03-25 12:34:54 +0000 | [diff] [blame] | 49 | #define SMB3_GCM128_CRYPTKEY_SIZE (16) |
Steve French | 63ca565 | 2020-10-15 23:41:40 -0500 | [diff] [blame] | 50 | #define SMB3_GCM256_CRYPTKEY_SIZE (32) |
Pavel Shilovsky | 3c1bf7e | 2012-09-18 16:20:30 -0700 | [diff] [blame] | 51 | |
Pavel Shilovsky | 2365c4e | 2014-02-14 13:31:02 +0400 | [diff] [blame] | 52 | /* Maximum buffer size value we can send with 1 credit */ |
| 53 | #define SMB2_MAX_BUFFER_SIZE 65536 |
| 54 | |
Pavel Shilovsky | be4cb9e | 2011-12-29 17:06:33 +0400 | [diff] [blame] | 55 | #endif /* _SMB2_GLOB_H */ |