All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <jdelvare@suse.de>
To: linux-cifs@vger.kernel.org
Cc: Steve French <sfrench@samba.org>, LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 2/3] cifs: Only select the required crypto modules
Date: Wed, 25 Jan 2017 16:08:17 +0100	[thread overview]
Message-ID: <20170125160817.1d6fb22d@endymion> (raw)
In-Reply-To: <20170125160639.255cd58e@endymion>

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.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Steve French <sfrench@samba.org>
---
 fs/cifs/Kconfig |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- linux-4.5-rc0.orig/fs/cifs/Kconfig	2016-01-22 09:52:13.700961277 +0100
+++ linux-4.5-rc0/fs/cifs/Kconfig	2016-01-22 09:56:23.420279765 +0100
@@ -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

-- 
Jean Delvare
SUSE L3 Support

  parent reply	other threads:[~2017-01-25 15:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-25 15:06 [PATCH 0/3] cifs: Better dependencies Jean Delvare
2017-01-25 15:07 ` [PATCH 1/3] cifs: Simplify SMB2 and SMB311 dependencies Jean Delvare
2017-01-25 15:08 ` Jean Delvare [this message]
2017-01-25 15:09 ` [PATCH 3/3] cifs: Add soft dependencies Jean Delvare
2017-01-25 15:09   ` Jean Delvare
2017-01-25 19:26 ` [PATCH 0/3] cifs: Better dependencies Pavel Shilovsky
     [not found]   ` <CAKywueQdAQ004cy2gGQTeDCeHwoT70Wug5LUgenANqGrmi9ziw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-01 20:01     ` Steve French
2017-02-01 20:01       ` Steve French
  -- strict thread matches above, loose matches on Subject: below --
2016-01-22  9:16 Jean Delvare
     [not found] ` <20160122101654.20fa96e3-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2016-01-22  9:22   ` [PATCH 2/3] cifs: Only select the required crypto modules Jean Delvare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170125160817.1d6fb22d@endymion \
    --to=jdelvare@suse.de \
    --cc=linux-cifs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sfrench@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.