Skip to content

Commit

Permalink
cifs: Only select the required crypto modules
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean Delvare authored and Steve French committed Feb 1, 2017
1 parent c1ecea8 commit 3692304
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/cifs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3692304

Please sign in to comment.