diff options
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 | ||