git: 8dd1299ca599 - stable/13 - Move ve_check_hash prototype to libsecureboot-priv.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 14 Apr 2023 05:20:23 UTC
The branch stable/13 has been updated by gbe:
URL: https://cgit.FreeBSD.org/src/commit/?id=8dd1299ca599cf7844a4b34c3c6b41df6287c4ff
commit 8dd1299ca599cf7844a4b34c3c6b41df6287c4ff
Author: Simon J. Gerraty <sjg@FreeBSD.org>
AuthorDate: 2021-12-19 00:34:58 +0000
Commit: Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2023-04-14 05:19:10 +0000
Move ve_check_hash prototype to libsecureboot-priv.h
Reviewed by: stevek
(cherry picked from commit 623ecf23325691a0cc13991e160b5f5d11471830)
---
lib/libsecureboot/h/libsecureboot.h | 3 ---
lib/libsecureboot/libsecureboot-priv.h | 3 +++
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/libsecureboot/h/libsecureboot.h b/lib/libsecureboot/h/libsecureboot.h
index 33f98bca0479..79b5cc46ee97 100644
--- a/lib/libsecureboot/h/libsecureboot.h
+++ b/lib/libsecureboot/h/libsecureboot.h
@@ -66,9 +66,6 @@ int ve_self_tests(void);
void fingerprint_info_add(const char *, const char *, const char *,
const char *, struct stat *);
-int ve_check_hash(br_hash_compat_context *, const br_hash_class *,
- const char *, const char *, size_t);
-
char * hexdigest(char *, size_t, unsigned char *, size_t);
int verify_fd(int, const char *, off_t, struct stat *);
int verify_open(const char *, int);
diff --git a/lib/libsecureboot/libsecureboot-priv.h b/lib/libsecureboot/libsecureboot-priv.h
index bdf0c5c0c9bb..713ba6266cc5 100644
--- a/lib/libsecureboot/libsecureboot-priv.h
+++ b/lib/libsecureboot/libsecureboot-priv.h
@@ -38,6 +38,9 @@ typedef struct {
size_t hash_size;
} hash_data;
+int ve_check_hash(br_hash_compat_context *, const br_hash_class *,
+ const char *, const char *, 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);