summaryrefslogtreecommitdiff
path: root/certs/common.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2022-05-18 23:48:09 +0100
committerDavid Howells <dhowells@redhat.com>2022-06-21 16:05:06 +0100
commit60050ffe3d770dd1df5b641aa48f49d07a54bd84 (patch)
tree649187b0c81d53ea6420147e041cd614521ac9c9 /certs/common.h
parentb13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3 (diff)
downloadlinux-60050ffe3d770dd1df5b641aa48f49d07a54bd84.tar.gz
linux-60050ffe3d770dd1df5b641aa48f49d07a54bd84.tar.bz2
linux-60050ffe3d770dd1df5b641aa48f49d07a54bd84.zip
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/
Diffstat (limited to 'certs/common.h')
-rw-r--r--certs/common.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/certs/common.h b/certs/common.h
deleted file mode 100644
index abdb5795936b..000000000000
--- a/certs/common.h
+++ /dev/null
@@ -1,9 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-
-#ifndef _CERT_COMMON_H
-#define _CERT_COMMON_H
-
-int load_certificate_list(const u8 cert_list[], const unsigned long list_size,
- const struct key *keyring);
-
-#endif