diff options
author | Eric Snowberg <eric.snowberg@oracle.com> | 2021-01-22 19:10:52 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2021-03-11 17:32:38 +0100 |
commit | 2565ca7f5ec1a98d51eea8860c4ab923f1ca2c85 (patch) | |
tree | b114d27f4b035d493409e9f58e15561ea3ba9374 /certs/common.h | |
parent | certs: Add EFI_CERT_X509_GUID support for dbx entries (diff) | |
download | linux-2565ca7f5ec1a98d51eea8860c4ab923f1ca2c85.tar.xz linux-2565ca7f5ec1a98d51eea8860c4ab923f1ca2c85.zip |
certs: Move load_system_certificate_list to a common function
Move functionality within load_system_certificate_list to a common
function, so it can be reused in the future.
DH Changes:
- Added inclusion of common.h to common.c (Eric [1]).
Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: keyrings@vger.kernel.org
Link: https://lore.kernel.org/r/EDA280F9-F72D-4181-93C7-CDBE95976FF7@oracle.com/ [1]
Link: https://lore.kernel.org/r/20200930201508.35113-2-eric.snowberg@oracle.com/
Link: https://lore.kernel.org/r/20210122181054.32635-3-eric.snowberg@oracle.com/ # v5
Link: https://lore.kernel.org/r/161428672825.677100.7545516389752262918.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/161433311696.902181.3599366124784670368.stgit@warthog.procyon.org.uk/ # v2
Link: https://lore.kernel.org/r/161529605850.163428.7786675680201528556.stgit@warthog.procyon.org.uk/ # v3
Diffstat (limited to 'certs/common.h')
-rw-r--r-- | certs/common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/certs/common.h b/certs/common.h new file mode 100644 index 000000000000..abdb5795936b --- /dev/null +++ b/certs/common.h @@ -0,0 +1,9 @@ +/* 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 |