summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorThore Sommer <public@thson.de>2023-08-15 14:29:42 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2023-08-25 18:46:55 +0800
commitef5b52a631f8c18353e80ccab8408b963305510c (patch)
tree342d7d5fedaf533d581b1da7151f3879d9be7d9c /Kconfig
parentfab9516f02b418e37d3cde6c21c316085262aece (diff)
X.509: if signature is unsupported skip validation
When the hash algorithm for the signature is not available the digest size is 0 and the signature in the certificate is marked as unsupported. When validating a self-signed certificate, this needs to be checked, because otherwise trying to validate the signature will fail with an warning: Loading compiled-in X.509 certificates WARNING: CPU: 0 PID: 1 at crypto/rsa-pkcs1pad.c:537 \ pkcs1pad_verify+0x46/0x12c ... Problem loading in-kernel X.509 certificate (-22) Signed-off-by: Thore Sommer <public@thson.de> Cc: stable@vger.kernel.org # v4.7+ Fixes: 6c2dc5ae4ab7 ("X.509: Extract signature digest and make self-signed cert checks earlier") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions