crypto: asymmetric_keys: select SYSTEM_DATA_VERIFICATION
Subsystems (3)
PATCH 1/1 crypto: asymmetric_keys: select SYSTEM_DATA_VERIFICATION
SYSTEM_DATA_VERIFICATION is a non-visible symbol which is selected by its other users. PKCS7_TEST_KEY and SIGNED_PE_FILE_VERIFICATION both depend on the symbol instead of selecting it which makes it impossible to choose these symbols unless another symbol selecting SYSTEM_DATA_VERIFICATION is already chosen.
Replace their depends on SYSTEM_DATA_VERIFICATION menu attribute by a selects SYSTEM_DATA_VERIFICATION attribute so that the options can be efectively chosen by users.
crypto/asymmetric_keys/Kconfig +0 -0
@@ -75,7 +75,7 @@ config PKCS7_MESSAGE_PARSER
config PKCS7_TEST_KEY
tristate "PKCS#7 testing key type"
- depends on SYSTEM_DATA_VERIFICATION
+ select SYSTEM_DATA_VERIFICATION
help
This option provides a type of key that can be loaded up from a PKCS#7 message - provided the message is signed by a trusted key. If @@ -88,7 +88,7 @@ config PKCS7_TEST_KEY
config SIGNED_PE_FILE_VERIFICATION
bool "Support for PE file signature verification"
depends on PKCS7_MESSAGE_PARSER=y
- depends on SYSTEM_DATA_VERIFICATION
+ select SYSTEM_DATA_VERIFICATION
select CRYPTO_HASH
select ASN1
select OID_REGISTRY
Quoted 27 lines · klondike
SYSTEM_DATA_VERIFICATIONis a non-visible symbol which is selected by its other users.PKCS7_TEST_KEYandSIGNED_PE_FILE_VERIFICATIONboth depend on the symbol instead of selecting it which makes it impossible to choose these symbols unless another symbol selectingSYSTEM_DATA_VERIFICATIONis already chosen.Replace their depends on
SYSTEM_DATA_VERIFICATIONmenu attribute by a selectsSYSTEM_DATA_VERIFICATIONattribute so that the options can be efectively chosen by users.Cc David Howells <[email protected]>Cc Vivek Goyal <[email protected]>crypto/asymmetric_keys/Kconfig +0
-0@@ -75,7 +75,7 @@ config PKCS7_MESSAGE_PARSERconfig
PKCS7_TEST_KEY
tristate "PKCS#7 testing key type"
- depends onSYSTEM_DATA_VERIFICATION
+ selectSYSTEM_DATA_VERIFICATION
help
This option provides a type of key that can be loaded up from a PKCS#7 message - provided the message is signed by a trusted key. Ifcrypto/asymmetric_keys/Kconfig +0
-0@@ -88,7 +88,7 @@ config PKCS7_TEST_KEY
Quoted 9 lines
config
SIGNED_PE_FILE_VERIFICATION
bool "Support for PE file signature verification"
depends on PKCS7_MESSAGE_PARSER=y
- depends onSYSTEM_DATA_VERIFICATION
+ selectSYSTEM_DATA_VERIFICATION
selectCRYPTO_HASH
select ASN1
selectOID_REGISTRY
Disregard the patch for now, I didn't notice the dependency loop. I'll try to get that fixed too.