Changeset View
Changeset View
Standalone View
Standalone View
lib/libsecureboot/libsecureboot-priv.h
Show All 24 Lines | |||||
/* | /* | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _LIBSECUREBOOT_PRIV_H_ | #ifndef _LIBSECUREBOOT_PRIV_H_ | ||||
#define _LIBSECUREBOOT_PRIV_H_ | #define _LIBSECUREBOOT_PRIV_H_ | ||||
/* public api */ | /* public api */ | ||||
#include "libsecureboot.h" | #include "libsecureboot.h" | ||||
#include <brssl.h> | |||||
typedef struct { | |||||
unsigned char *data; | |||||
int digest_size; | |||||
} hash_data; | |||||
size_t ve_trust_anchors_add(br_x509_certificate *, size_t); | size_t ve_trust_anchors_add(br_x509_certificate *, size_t); | ||||
size_t ve_forbidden_anchors_add(br_x509_certificate *, size_t); | |||||
void ve_forbidden_digest_add(hash_data *digest, size_t); | |||||
char *fingerprint_info_lookup(int, const char *); | char *fingerprint_info_lookup(int, const char *); | ||||
br_x509_certificate * parse_certificates(unsigned char *, size_t, size_t *); | br_x509_certificate * parse_certificates(unsigned char *, size_t, size_t *); | ||||
int certificate_to_trust_anchor_inner(br_x509_trust_anchor *, | int certificate_to_trust_anchor_inner(br_x509_trust_anchor *, | ||||
br_x509_certificate *); | br_x509_certificate *); | ||||
int verify_rsa_digest(br_rsa_public_key *pkey, | int verify_rsa_digest(br_rsa_public_key *pkey, | ||||
const unsigned char *hash_oid, | const unsigned char *hash_oid, | ||||
unsigned char *mdata, size_t mlen, | unsigned char *mdata, size_t mlen, | ||||
unsigned char *sdata, size_t slen); | unsigned char *sdata, size_t slen); | ||||
int openpgp_self_tests(void); | int openpgp_self_tests(void); | ||||
int efi_secure_boot_enabled(void); | |||||
br_x509_certificate* efi_get_trusted_certs(size_t *count); | |||||
br_x509_certificate* efi_get_forbidden_certs(size_t *count); | |||||
hash_data* efi_get_forbidden_digests(size_t *count); | |||||
sjg: alignment? | |||||
#endif /* _LIBSECUREBOOT_PRIV_H_ */ | #endif /* _LIBSECUREBOOT_PRIV_H_ */ |
alignment?