KEYS: x509: remove dead code that set ->unsupported_sig
authorEric Biggers <ebiggers@google.com>
Wed, 19 Jan 2022 00:54:36 +0000 (16:54 -0800)
committerJarkko Sakkinen <jarkko@kernel.org>
Sun, 20 Feb 2022 23:22:06 +0000 (00:22 +0100)
commit1ac843521242b7a0f8090c0f2100d04869355b04
treece6d5c4047a831dc456276d0573d43794e35e87e
parent9b7bb1229a2597368d95836f77138f833584bad9
KEYS: x509: remove dead code that set ->unsupported_sig

The X.509 parser always sets cert->sig->pkey_algo and
cert->sig->hash_algo on success, since x509_note_sig_algo() is a
mandatory action in the X.509 ASN.1 grammar, and it returns an error if
the signature's algorithm is unknown.  Thus, remove the dead code which
handled these fields being NULL.

Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
crypto/asymmetric_keys/x509_public_key.c