Commit de353533753e048b5c4658f0a42365937527ac45

Authored by Dmitry Kasatkin
Committed by James Morris
1 parent 4e2c5b28f8

digsig: build dependency fix

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>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -295,7 +295,7 @@
295 295  
296 296 config DIGSIG
297 297 tristate "In-kernel signature checker"
298   - depends on CRYPTO
  298 + depends on KEYS
299 299 select MPILIB
300 300 help
301 301 Digital signature verification. Currently only RSA is supported.
security/integrity/Kconfig
... ... @@ -5,7 +5,7 @@
5 5  
6 6 config INTEGRITY_DIGSIG
7 7 boolean "Digital signature verification using multiple keyrings"
8   - depends on INTEGRITY
  8 + depends on INTEGRITY && KEYS
9 9 default n
10 10 select DIGSIG
11 11 help