summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/client.h9
-rw-r--r--source3/include/smb.h8
2 files changed, 16 insertions, 1 deletions
diff --git a/source3/include/client.h b/source3/include/client.h
index 0974cd0666..15fc168cbb 100644
--- a/source3/include/client.h
+++ b/source3/include/client.h
@@ -57,6 +57,13 @@ struct print_job_info
time_t t;
};
+typedef struct smb_sign_info {
+ BOOL use_smb_signing;
+ size_t mac_key_len;
+ uint8 mac_key[44];
+ uint32 seq_num;
+} smb_sign_info;
+
struct cli_state {
int port;
int fd;
@@ -109,6 +116,8 @@ struct cli_state {
TALLOC_CTX *mem_ctx;
+ smb_sign_info sign_info;
+
/*
* Only used in NT domain calls.
*/
diff --git a/source3/include/smb.h b/source3/include/smb.h
index e34032bfbf..8d66fa71d1 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -1281,6 +1281,12 @@ char *strdup(char *s);
#define BROWSER_ELECTION_VERSION 0x010f
#define BROWSER_CONSTANT 0xaa55
+/* Sercurity mode bits. */
+#define NEGOTIATE_SECURITY_USER_LEVEL 0x01
+#define NEGOTIATE_SECURITY_CHALLENGE_RESPONSE 0x02
+#define NEGOTIATE_SECURITY_SIGNATURES_ENABLED 0x04
+#define NEGOTIATE_SECURITY_SIGNATURES_REQUIRED 0x08
+
/* NT Flags2 bits - cifs6.txt section 3.1.2 */
#define FLAGS2_LONG_PATH_COMPONENTS 0x0001
@@ -1310,7 +1316,7 @@ char *strdup(char *s);
#define CAP_W2K_SMBS 0x2000
#define CAP_LARGE_READX 0x4000
#define CAP_LARGE_WRITEX 0x8000
-#define CAP_UNIX 0x800000 /* Capabilities for UNIX extensions. Created by HP. */
+#define CAP_UNIX 0x800000 /* Capabilities for UNIX extensions. Created by HP. */
#define CAP_EXTENDED_SECURITY 0x80000000
/* protocol types. It assumes that higher protocols include lower protocols