Path: blob/master/security/integrity/platform_certs/keyring_handler.h
26424 views
/* SPDX-License-Identifier: GPL-2.0 */12#ifndef PLATFORM_CERTS_INTERNAL_H3#define PLATFORM_CERTS_INTERNAL_H45#include <linux/efi.h>67void blacklist_hash(const char *source, const void *data,8size_t len, const char *type,9size_t type_len);1011/*12* Blacklist an X509 TBS hash.13*/14void blacklist_x509_tbs(const char *source, const void *data, size_t len);1516/*17* Blacklist the hash of an executable.18*/19void blacklist_binary(const char *source, const void *data, size_t len);2021/*22* Return the handler for particular signature list types found in the db.23*/24efi_element_handler_t get_handler_for_db(const efi_guid_t *sig_type);2526/*27* Return the handler for particular signature list types found in the mok.28*/29efi_element_handler_t get_handler_for_mok(const efi_guid_t *sig_type);3031/*32* Return the handler for particular signature list types for CA keys.33*/34efi_element_handler_t get_handler_for_ca_keys(const efi_guid_t *sig_type);3536/*37* Return the handler for particular signature list types for code signing keys.38*/39efi_element_handler_t get_handler_for_code_signing_keys(const efi_guid_t *sig_type);4041/*42* Return the handler for particular signature list types found in the dbx.43*/44efi_element_handler_t get_handler_for_dbx(const efi_guid_t *sig_type);4546#endif4748#ifndef UEFI_QUIRK_SKIP_CERT49#define UEFI_QUIRK_SKIP_CERT(vendor, product) \50.matches = { \51DMI_MATCH(DMI_BOARD_VENDOR, vendor), \52DMI_MATCH(DMI_PRODUCT_NAME, product), \53},54#endif555657