Skip to contentSkip to conversation

crypto: asymmetric_keys: select SYSTEM_DATA_VERIFICATION

PATCH In review klondike 1 participant 2 messages Oct 5, 2019

Subsystems (3)
lore
Share & tools
lore

klondike

author
#0 lore raw

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
index 1f1f004dc757..5940f343ab53 100644
@@ -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

author
#1 lore raw
Quoted 27 lines · klondike

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
index 1f1f004dc757..5940f343ab53 100644
@@ -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

crypto/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 on SYSTEM_DATA_VERIFICATION
+ select SYSTEM_DATA_VERIFICATION
select CRYPTO_HASH
select ASN1
select OID_REGISTRY

Disregard the patch for now, I didn't notice the dependency loop. I'll try to get that fixed too.