summaryrefslogtreecommitdiff
path: root/source3/smbd/globals.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-05 13:14:40 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-05 19:30:58 +0200
commit012c9d06a94b532377e9e96f60b20b5f0975af74 (patch)
tree0065c2161af15c9cf92c23e1fb931bc838e71a14 /source3/smbd/globals.h
parent1c8e8c7e7b4cc00628b91e2e0596bfa428a2bcdb (diff)
downloadsamba-012c9d06a94b532377e9e96f60b20b5f0975af74.tar.gz
samba-012c9d06a94b532377e9e96f60b20b5f0975af74.tar.bz2
samba-012c9d06a94b532377e9e96f60b20b5f0975af74.zip
s3:smb2_server: add basic support for SMB 2.1
This adds support for the 2 stage negprot, from SMB 1 to SMB 2.1. Support for this of for now and "max protocol = SMB2" still maps to "max protocol = SMB2_02" PROTOCOL_SMB2_02. In order to activate smb2.1, you need to use "max protocol = SMB2_10". metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Sep 5 19:30:58 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/smbd/globals.h')
-rw-r--r--source3/smbd/globals.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index 2e59d9bc5f..6ce9835dee 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -241,6 +241,7 @@ const char *smb2_opcode_name(uint16_t opcode);
bool smbd_is_smb2_header(const uint8_t *inbuf, size_t size);
void reply_smb2002(struct smb_request *req, uint16_t choice);
+void reply_smb20ff(struct smb_request *req, uint16_t choice);
void smbd_smb2_first_negprot(struct smbd_server_connection *sconn,
const uint8_t *inbuf, size_t size);
@@ -578,6 +579,7 @@ struct smbd_server_connection {
struct tevent_queue *recv_queue;
struct tevent_queue *send_queue;
struct tstream_context *stream;
+ bool negprot_2ff;
struct {
/* an id tree used to allocate vuids */
/* this holds info on session vuids that are already