]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: public_key: select CRYPTO_AKCIPHER
authorArnd Bergmann <arnd@arndb.de>
Wed, 18 May 2016 14:55:56 +0000 (16:55 +0200)
committerTodd Vierling <todd.vierling@oracle.com>
Fri, 9 Dec 2016 14:47:05 +0000 (09:47 -0500)
commit37a80cc0405aee6cc3a916b3a86b6ca31a58b30a
treeea5f7874b5cf03638f987e1cfbcaaf87c42e9d85
parent65bcc66991e30081b6b3a24a51711c25508440b0
crypto: public_key: select CRYPTO_AKCIPHER

[ Upstream commit bad6a185b4d6f81d0ed2b6e4c16307969f160b95 ]

In some rare randconfig builds, we can end up with
ASYMMETRIC_PUBLIC_KEY_SUBTYPE enabled but CRYPTO_AKCIPHER disabled,
which fails to link because of the reference to crypto_alloc_akcipher:

crypto/built-in.o: In function `public_key_verify_signature':
:(.text+0x110e4): undefined reference to `crypto_alloc_akcipher'

This adds a Kconfig 'select' statement to ensure the dependency
is always there.

Cc: <stable@vger.kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 4dbfb8be1989118cd013c058c2f0ce199ecaf93f)
Signed-off-by: Todd Vierling <todd.vierling@oracle.com>
Reviewed-by: Ethan Zhao <ethan.zhao@oracle.com>
crypto/asymmetric_keys/Kconfig