diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-07-20 09:11:30 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-07-23 18:19:36 +0200 |
commit | d7285672b4990696a61fef3d1129d7ee45e530a2 (patch) | |
tree | bab405c389448ff9f448ca61f03448df3f342f2c | |
parent | a41a1d176f31cbbd011309041c6865487a7be9c6 (diff) | |
download | samba-d7285672b4990696a61fef3d1129d7ee45e530a2.tar.gz samba-d7285672b4990696a61fef3d1129d7ee45e530a2.tar.bz2 samba-d7285672b4990696a61fef3d1129d7ee45e530a2.zip |
libcli/smb: add SMB2_TRANSFORM macros
metze
-rw-r--r-- | libcli/smb/smb2_constants.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libcli/smb/smb2_constants.h b/libcli/smb/smb2_constants.h index 9b60345673..ef4efe4f73 100644 --- a/libcli/smb/smb2_constants.h +++ b/libcli/smb/smb2_constants.h @@ -22,6 +22,21 @@ #ifndef __LIBCLI_SMB2_SMB2_CONSTANTS_H__ #define __LIBCLI_SMB2_SMB2_CONSTANTS_H__ +/* offsets into SMB2_TRANSFORM header elements */ +#define SMB2_TF_PROTOCOL_ID 0x00 /* 4 bytes */ +#define SMB2_TF_SIGNATURE 0x04 /* 16 bytes */ +#define SMB2_TF_NONCE 0x14 /* 16 bytes */ +#define SMB2_TF_MSG_SIZE 0x24 /* 4 bytes */ +#define SMB2_TF_RESERVED 0x28 /* 2 bytes */ +#define SMB2_TF_ALGORITHM 0x2A /* 2 bytes */ +#define SMB2_TF_SESSION_ID 0x2C /* 8 bytes */ + +#define SMB2_TF_HDR_SIZE 0x34 /* 52 bytes */ + +#define SMB2_TF_MAGIC 0x424D53FD /* 0xFD 'S' 'M' 'B' */ + +#define SMB2_ENCRYPTION_AES128_CCM 0x0001 + /* offsets into header elements for a sync SMB2 request */ #define SMB2_HDR_PROTOCOL_ID 0x00 #define SMB2_HDR_LENGTH 0x04 |