certs: Move load_certificate_list() to be with the asymmetric keys code
authorDavid Howells <dhowells@redhat.com>
Wed, 18 May 2022 22:48:09 +0000 (23:48 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 21 Jun 2022 15:05:06 +0000 (16:05 +0100)
commit60050ffe3d770dd1df5b641aa48f49d07a54bd84
tree649187b0c81d53ea6420147e041cd614521ac9c9
parentb13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3
certs: Move load_certificate_list() to be with the asymmetric keys code

Move load_certificate_list(), which loads a series of binary X.509
certificates from a blob and inserts them as keys into a keyring, to be
with the asymmetric keys code that it drives.

This makes it easier to add FIPS selftest code in which we need to load up
a private keyring for the tests to use.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Herbert Xu <herbert@gondor.apana.org.au>
cc: keyrings@vger.kernel.org
cc: linux-crypto@vger.kernel.org
Link: https://lore.kernel.org/r/165515742145.1554877.13488098107542537203.stgit@warthog.procyon.org.uk/
certs/Makefile
certs/blacklist.c
certs/common.c [deleted file]
certs/common.h [deleted file]
certs/system_keyring.c
crypto/asymmetric_keys/Makefile
crypto/asymmetric_keys/x509_loader.c [new file with mode: 0644]
include/keys/asymmetric-type.h