summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2017-01-25 16:08:17 +0100
committerSteve French <smfrench@gmail.com>2017-02-01 16:46:34 -0600
commit3692304bba6164be3810afd41b84ecb0e1e41db1 (patch)
treeb92e5cd35693c3e1b0e1588058ed170ba5b6c854
parentc1ecea87471bbb614f8121e00e5787f363140365 (diff)
downloadlinux-stable-3692304bba6164be3810afd41b84ecb0e1e41db1.tar.gz
linux-stable-3692304bba6164be3810afd41b84ecb0e1e41db1.tar.bz2
linux-stable-3692304bba6164be3810afd41b84ecb0e1e41db1.zip
cifs: Only select the required crypto modules
The sha256 and cmac crypto modules are only needed for SMB2+, so move the select statements to config CIFS_SMB2. Also select CRYPTO_AES there as SMB2+ needs it. Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Jean Delvare <jdelvare@suse.de> Cc: Steve French <sfrench@samba.org>
-rw-r--r--fs/cifs/Kconfig5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig
index a439c17c85c4..ff0d1fe542f7 100644
--- a/fs/cifs/Kconfig
+++ b/fs/cifs/Kconfig
@@ -9,8 +9,6 @@ config CIFS
select CRYPTO_ARC4
select CRYPTO_ECB
select CRYPTO_DES
- select CRYPTO_SHA256
- select CRYPTO_CMAC
help
This is the client VFS module for the Common Internet File System
(CIFS) protocol which is the successor to the Server Message Block
@@ -173,6 +171,9 @@ config CIFS_SMB2
select KEYS
select FSCACHE
select DNS_RESOLVER
+ select CRYPTO_AES
+ select CRYPTO_SHA256
+ select CRYPTO_CMAC
help
This enables support for the Server Message Block version 2