summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-06 13:08:07 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-06 13:08:07 +0000
commit88ed48d0f935db136318fafe6e541cf7cbaed5e2 (patch)
tree1d1d62ce15b731e3e40b7212da3bc836f2c176df /source3/include
parent9496f1e2063eb0b93142bfaf86979b21bf8b56e6 (diff)
downloadsamba-88ed48d0f935db136318fafe6e541cf7cbaed5e2.tar.gz
samba-88ed48d0f935db136318fafe6e541cf7cbaed5e2.tar.bz2
samba-88ed48d0f935db136318fafe6e541cf7cbaed5e2.zip
SMB signing updates - this gets NTLMSSP signing workin to the point where I
just need to get the verifiction code working - we get back a signiture from the server, and just can't verify it yet. This also brings the short-packet checks into common code, and breaks the connection if the server sends a signed reply, on an established connection, that fails the test. This breaks our read/write code at the moment, as we need to keep a list of outstanding packets. (signing is not enabled by default, unless the server demands it) Not for 3.0 till I fix the outstanding packet list. Andrew Barlett (This used to be commit 808d1fcf20153970d587cb631a08607beb09703a)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 4f37c38413..3bb6bf9237 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -78,6 +78,10 @@ typedef int BOOL;
#define READ_EOF 2
#define READ_ERROR 3
+/* This error code can go into the client smb_rw_error. */
+#define WRITE_ERROR 4
+#define READ_BAD_SIG 5
+
#define DIR_STRUCT_SIZE 43
/* these define the attribute byte as seen by DOS */
@@ -161,9 +165,6 @@ typedef uint16 smb_ucs2_t;
typedef smb_ucs2_t wpstring[PSTRING_LEN];
typedef smb_ucs2_t wfstring[FSTRING_LEN];
-/* This error code can go into the client smb_rw_error. */
-#define WRITE_ERROR 4
-
#ifdef WORDS_BIGENDIAN
#define UCS2_SHIFT 8
#else