diff options
Diffstat (limited to 'fs/cifs/cifsglob.h')
| -rw-r--r-- | fs/cifs/cifsglob.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 49563e0c1725..0cdfb8c32ac6 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
| @@ -25,9 +25,6 @@ | |||
| 25 | #include <linux/workqueue.h> | 25 | #include <linux/workqueue.h> |
| 26 | #include "cifs_fs_sb.h" | 26 | #include "cifs_fs_sb.h" |
| 27 | #include "cifsacl.h" | 27 | #include "cifsacl.h" |
| 28 | #include <crypto/internal/hash.h> | ||
| 29 | #include <linux/scatterlist.h> | ||
| 30 | |||
| 31 | /* | 28 | /* |
| 32 | * The sizes of various internal tables and strings | 29 | * The sizes of various internal tables and strings |
| 33 | */ | 30 | */ |
| @@ -100,7 +97,7 @@ enum protocolEnum { | |||
| 100 | /* Netbios frames protocol not supported at this time */ | 97 | /* Netbios frames protocol not supported at this time */ |
| 101 | }; | 98 | }; |
| 102 | 99 | ||
| 103 | struct session_key { | 100 | struct mac_key { |
| 104 | unsigned int len; | 101 | unsigned int len; |
| 105 | union { | 102 | union { |
| 106 | char ntlm[CIFS_SESS_KEY_SIZE + 16]; | 103 | char ntlm[CIFS_SESS_KEY_SIZE + 16]; |
| @@ -123,14 +120,6 @@ struct cifs_cred { | |||
| 123 | struct cifs_ace *aces; | 120 | struct cifs_ace *aces; |
| 124 | }; | 121 | }; |
| 125 | 122 | ||
| 126 | struct ntlmssp_auth { | ||
| 127 | __u32 client_flags; | ||
| 128 | __u32 server_flags; | ||
| 129 | unsigned char ciphertext[CIFS_CPHTXT_SIZE]; | ||
| 130 | struct crypto_shash *hmacmd5; | ||
| 131 | struct crypto_shash *md5; | ||
| 132 | }; | ||
| 133 | |||
| 134 | /* | 123 | /* |
| 135 | ***************************************************************** | 124 | ***************************************************************** |
| 136 | * Except the CIFS PDUs themselves all the | 125 | * Except the CIFS PDUs themselves all the |
| @@ -193,14 +182,11 @@ struct TCP_Server_Info { | |||
| 193 | /* 16th byte of RFC1001 workstation name is always null */ | 182 | /* 16th byte of RFC1001 workstation name is always null */ |
| 194 | char workstation_RFC1001_name[RFC1001_NAME_LEN_WITH_NULL]; | 183 | char workstation_RFC1001_name[RFC1001_NAME_LEN_WITH_NULL]; |
| 195 | __u32 sequence_number; /* needed for CIFS PDU signature */ | 184 | __u32 sequence_number; /* needed for CIFS PDU signature */ |
| 196 | struct session_key session_key; | 185 | struct mac_key mac_signing_key; |
| 197 | char ntlmv2_hash[16]; | 186 | char ntlmv2_hash[16]; |
| 198 | unsigned long lstrp; /* when we got last response from this server */ | 187 | unsigned long lstrp; /* when we got last response from this server */ |
| 199 | u16 dialect; /* dialect index that server chose */ | 188 | u16 dialect; /* dialect index that server chose */ |
| 200 | /* extended security flavors that server supports */ | 189 | /* extended security flavors that server supports */ |
| 201 | unsigned int tilen; /* length of the target info blob */ | ||
| 202 | unsigned char *tiblob; /* target info blob in challenge response */ | ||
| 203 | struct ntlmssp_auth ntlmssp; /* various keys, ciphers, flags */ | ||
| 204 | bool sec_kerberos; /* supports plain Kerberos */ | 190 | bool sec_kerberos; /* supports plain Kerberos */ |
| 205 | bool sec_mskerberos; /* supports legacy MS Kerberos */ | 191 | bool sec_mskerberos; /* supports legacy MS Kerberos */ |
| 206 | bool sec_kerberosu2u; /* supports U2U Kerberos */ | 192 | bool sec_kerberosu2u; /* supports U2U Kerberos */ |
