diff options
author | Steve French <Yehuda.Sadeh@expand.com> | 2007-07-09 03:55:14 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-07-09 03:55:14 -0400 |
commit | b609f06ac4ac77433035366e9aa4dcd7a0f743a0 (patch) | |
tree | f4ecd57e0db3c398ffe7cf7eed3214cfff63585b /fs/cifs/cifsglob.h | |
parent | 3870253efb65e1960421ca74f5d336218c28fc5b (diff) |
[CIFS] Fix packet signatures for NTLMv2 case
Signed-off-by: Yehuda Sadeh Weinraub <Yehuda.Sadeh@expand.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index e16a2c473003..0a7813175a27 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -104,6 +104,17 @@ enum protocolEnum { | |||
104 | /* Netbios frames protocol not supported at this time */ | 104 | /* Netbios frames protocol not supported at this time */ |
105 | }; | 105 | }; |
106 | 106 | ||
107 | struct mac_key { | ||
108 | unsigned int len; | ||
109 | union { | ||
110 | char ntlm[CIFS_SESS_KEY_SIZE + 16]; | ||
111 | struct { | ||
112 | char key[16]; | ||
113 | struct ntlmv2_resp resp; | ||
114 | } ntlmv2; | ||
115 | } data; | ||
116 | }; | ||
117 | |||
107 | /* | 118 | /* |
108 | ***************************************************************** | 119 | ***************************************************************** |
109 | * Except the CIFS PDUs themselves all the | 120 | * Except the CIFS PDUs themselves all the |
@@ -159,7 +170,8 @@ struct TCP_Server_Info { | |||
159 | /* 16th byte of RFC1001 workstation name is always null */ | 170 | /* 16th byte of RFC1001 workstation name is always null */ |
160 | char workstation_RFC1001_name[SERVER_NAME_LEN_WITH_NULL]; | 171 | char workstation_RFC1001_name[SERVER_NAME_LEN_WITH_NULL]; |
161 | __u32 sequence_number; /* needed for CIFS PDU signature */ | 172 | __u32 sequence_number; /* needed for CIFS PDU signature */ |
162 | char mac_signing_key[CIFS_SESS_KEY_SIZE + 16]; | 173 | struct mac_key mac_signing_key; |
174 | char ntlmv2_hash[16]; | ||
163 | unsigned long lstrp; /* when we got last response from this server */ | 175 | unsigned long lstrp; /* when we got last response from this server */ |
164 | }; | 176 | }; |
165 | 177 | ||