diff options
author | Jeff Layton <jlayton@redhat.com> | 2013-05-26 07:00:57 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-06-24 02:56:41 -0400 |
commit | 31d9e2bd5f83839408a1de83bfaafbda0d309f2b (patch) | |
tree | 0e7e38e88cf16fa52c178aac53261cf81ff1a15a /fs/cifs/cifspdu.h | |
parent | 281e2e7d06c42ce8dfd423fa2ae5616af0e0323f (diff) |
cifs: break out decoding of security blob into separate function
...cleanup.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifspdu.h')
-rw-r--r-- | fs/cifs/cifspdu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h index e996ff6b26d1..4e6135a39fd1 100644 --- a/fs/cifs/cifspdu.h +++ b/fs/cifs/cifspdu.h | |||
@@ -531,7 +531,7 @@ typedef struct lanman_neg_rsp { | |||
531 | #define READ_RAW_ENABLE 1 | 531 | #define READ_RAW_ENABLE 1 |
532 | #define WRITE_RAW_ENABLE 2 | 532 | #define WRITE_RAW_ENABLE 2 |
533 | #define RAW_ENABLE (READ_RAW_ENABLE | WRITE_RAW_ENABLE) | 533 | #define RAW_ENABLE (READ_RAW_ENABLE | WRITE_RAW_ENABLE) |
534 | 534 | #define SMB1_CLIENT_GUID_SIZE (16) | |
535 | typedef struct negotiate_rsp { | 535 | typedef struct negotiate_rsp { |
536 | struct smb_hdr hdr; /* wct = 17 */ | 536 | struct smb_hdr hdr; /* wct = 17 */ |
537 | __le16 DialectIndex; /* 0xFFFF = no dialect acceptable */ | 537 | __le16 DialectIndex; /* 0xFFFF = no dialect acceptable */ |
@@ -553,7 +553,7 @@ typedef struct negotiate_rsp { | |||
553 | /* followed by 16 bytes of server GUID */ | 553 | /* followed by 16 bytes of server GUID */ |
554 | /* then security blob if cap_extended_security negotiated */ | 554 | /* then security blob if cap_extended_security negotiated */ |
555 | struct { | 555 | struct { |
556 | unsigned char GUID[16]; | 556 | unsigned char GUID[SMB1_CLIENT_GUID_SIZE]; |
557 | unsigned char SecurityBlob[1]; | 557 | unsigned char SecurityBlob[1]; |
558 | } __attribute__((packed)) extended_response; | 558 | } __attribute__((packed)) extended_response; |
559 | } __attribute__((packed)) u; | 559 | } __attribute__((packed)) u; |