diff options
Diffstat (limited to 'fs/cifs/ntlmssp.h')
-rw-r--r-- | fs/cifs/ntlmssp.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/cifs/ntlmssp.h b/fs/cifs/ntlmssp.h index 6facb41117a3..803389b64a2c 100644 --- a/fs/cifs/ntlmssp.h +++ b/fs/cifs/ntlmssp.h | |||
@@ -19,8 +19,6 @@ | |||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #pragma pack(1) | ||
23 | |||
24 | #define NTLMSSP_SIGNATURE "NTLMSSP" | 22 | #define NTLMSSP_SIGNATURE "NTLMSSP" |
25 | /* Message Types */ | 23 | /* Message Types */ |
26 | #define NtLmNegotiate cpu_to_le32(1) | 24 | #define NtLmNegotiate cpu_to_le32(1) |
@@ -63,7 +61,7 @@ typedef struct _SECURITY_BUFFER { | |||
63 | __le16 Length; | 61 | __le16 Length; |
64 | __le16 MaximumLength; | 62 | __le16 MaximumLength; |
65 | __le32 Buffer; /* offset to buffer */ | 63 | __le32 Buffer; /* offset to buffer */ |
66 | } SECURITY_BUFFER; | 64 | } __attribute__((packed)) SECURITY_BUFFER; |
67 | 65 | ||
68 | typedef struct _NEGOTIATE_MESSAGE { | 66 | typedef struct _NEGOTIATE_MESSAGE { |
69 | __u8 Signature[sizeof (NTLMSSP_SIGNATURE)]; | 67 | __u8 Signature[sizeof (NTLMSSP_SIGNATURE)]; |
@@ -73,7 +71,7 @@ typedef struct _NEGOTIATE_MESSAGE { | |||
73 | SECURITY_BUFFER WorkstationName; /* RFC 1001 and ASCII */ | 71 | SECURITY_BUFFER WorkstationName; /* RFC 1001 and ASCII */ |
74 | char DomainString[0]; | 72 | char DomainString[0]; |
75 | /* followed by WorkstationString */ | 73 | /* followed by WorkstationString */ |
76 | } NEGOTIATE_MESSAGE, *PNEGOTIATE_MESSAGE; | 74 | } __attribute__((packed)) NEGOTIATE_MESSAGE, *PNEGOTIATE_MESSAGE; |
77 | 75 | ||
78 | typedef struct _CHALLENGE_MESSAGE { | 76 | typedef struct _CHALLENGE_MESSAGE { |
79 | __u8 Signature[sizeof (NTLMSSP_SIGNATURE)]; | 77 | __u8 Signature[sizeof (NTLMSSP_SIGNATURE)]; |
@@ -83,7 +81,7 @@ typedef struct _CHALLENGE_MESSAGE { | |||
83 | __u8 Challenge[CIFS_CRYPTO_KEY_SIZE]; | 81 | __u8 Challenge[CIFS_CRYPTO_KEY_SIZE]; |
84 | __u8 Reserved[8]; | 82 | __u8 Reserved[8]; |
85 | SECURITY_BUFFER TargetInfoArray; | 83 | SECURITY_BUFFER TargetInfoArray; |
86 | } CHALLENGE_MESSAGE, *PCHALLENGE_MESSAGE; | 84 | } __attribute__((packed)) CHALLENGE_MESSAGE, *PCHALLENGE_MESSAGE; |
87 | 85 | ||
88 | typedef struct _AUTHENTICATE_MESSAGE { | 86 | typedef struct _AUTHENTICATE_MESSAGE { |
89 | __u8 Signature[sizeof (NTLMSSP_SIGNATURE)]; | 87 | __u8 Signature[sizeof (NTLMSSP_SIGNATURE)]; |
@@ -96,6 +94,4 @@ typedef struct _AUTHENTICATE_MESSAGE { | |||
96 | SECURITY_BUFFER SessionKey; | 94 | SECURITY_BUFFER SessionKey; |
97 | __le32 NegotiateFlags; | 95 | __le32 NegotiateFlags; |
98 | char UserString[0]; | 96 | char UserString[0]; |
99 | } AUTHENTICATE_MESSAGE, *PAUTHENTICATE_MESSAGE; | 97 | } __attribute__((packed)) AUTHENTICATE_MESSAGE, *PAUTHENTICATE_MESSAGE; |
100 | |||
101 | #pragma pack() /* resume default structure packing */ | ||