]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: remove pkcs7 obj_to_hash_algo()
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>
Sun, 29 Oct 2023 01:03:19 +0000 (03:03 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 7 Nov 2023 20:05:44 +0000 (14:05 -0600)
commit510c8b7f7455c6613dd1706e5e41ec7b09cf6703
treeb0fb0f125c6b65c6e9189026fd93ab64425a22fb
parent3af2f475b0b729f20279f2ce488cc9f727f0b763
libkmod: remove pkcs7 obj_to_hash_algo()

Switch to using OBJ_obj2txt() to calculate and print the pkcs7
signature hash name. This eliminates the need to duplicate libcrypto
NID to name mapping, detect SM3 openssl compile-time support, and
enables using any hashes that openssl and kernel know about. For
example SHA3 are being added for v6.7 and with this patch are
automatically supported.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Link: https://lore.kernel.org/r/20231029010319.157390-1-dimitri.ledkov@canonical.com
configure.ac
libkmod/libkmod-signature.c