digsig: build dependency fix
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>
Mon, 21 Nov 2011 15:31:15 +0000 (17:31 +0200)
committerJames Morris <jmorris@namei.org>
Mon, 21 Nov 2011 23:02:32 +0000 (10:02 +1100)
Fix build errors by adding Kconfig dependency on KEYS.
CRYPTO dependency removed.

  CC      security/integrity/digsig.o
security/integrity/digsig.c: In function ?integrity_digsig_verify?:
security/integrity/digsig.c:38:4: error: implicit declaration of function ?request_key?
security/integrity/digsig.c:38:17: error: ?key_type_keyring? undeclared (first use in this function)
security/integrity/digsig.c:38:17: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [security/integrity/digsig.o] Error 1

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: James Morris <jmorris@namei.org>
lib/Kconfig
security/integrity/Kconfig

index c1a89185fe6bab54f058b920a34ef142e001335e..5634e473ff6d56f9fd59ec589baed5bdf4371d90 100644 (file)
@@ -295,7 +295,7 @@ config MPILIB_EXTRA
 
 config DIGSIG
        tristate "In-kernel signature checker"
-       depends on CRYPTO
+       depends on KEYS
        select MPILIB
        help
          Digital signature verification. Currently only RSA is supported.
index d87fa2a8fa3bb67f2b2caea1d6b1aa5c46337dba..d384ea921482088dea0c7c13f54e2d3c57c18f26 100644 (file)
@@ -5,7 +5,7 @@ config INTEGRITY
 
 config INTEGRITY_DIGSIG
        boolean "Digital signature verification using multiple keyrings"
-       depends on INTEGRITY
+       depends on INTEGRITY && KEYS
        default n
        select DIGSIG
        help