]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb669046ad5fa3ba144738b0a3ab93e79f65a415
tree649187b0c81d53ea6420147e041cd614521ac9c9
parentb52d5a6d90c5addd271912240e89be49abd74565
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