History

x509: select CONFIG_CRYPTO_LIB_SHA256

The x509 public key code gained a dependency on the sha256 hash implementation, causing a rare link time failure in randconfig builds: arm-linux-gnueabi-ld: crypto/asymmetric_keys/x509_public_key.o: in function `x509_get_sig_params': x509_public_key.c:(.text.x509_get_sig_params+0x12): undefined reference to `sha256' arm-linux-gnueabi-ld: (sha256): Unknown destination type (ARM/Thumb) in crypto/asymmetric_keys/x509_public_key.o x509_public_key.c:(.text.x509_get_sig_params+0x12): dangerous relocation: unsupported relocation Select the necessary library code from Kconfig.

Arnd Bergmann committed 9 months ago

Commit 746b9ef1 parent fd1d6b91 file · +1 −0Browse files

Unified · Split

crypto/asymmetric_keys/Kconfig+1−0
@@ -27,6 +27,7 @@ config X509_CERTIFICATE_PARSER · 26 unmodified lines
2727 tristate "X.509 certificate parser"
2828 depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE
2929 select ASN1
30+ select CRYPTO_LIB_SHA256
3031 select OID_REGISTRY
3132 help
3233 This option provides support for parsing X.509 format blobs for key

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t