From 2288b178e612386e7a75471c8861c3f6d81c300d Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Sat, 21 May 2022 23:44:49 -0400 Subject: Add tc remove and append -f flags Also fix some conflicting types to hopefully prevent possible overflows. --- trustcache.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'trustcache.h') diff --git a/trustcache.h b/trustcache.h index 1f8a3cd..5b75459 100644 --- a/trustcache.h +++ b/trustcache.h @@ -1,6 +1,7 @@ #ifndef _TRUSTCACHE_H_ #define _TRUSTCACHE_H_ +#include #include #if __APPLE__ @@ -44,8 +45,14 @@ struct trust_cache cache_from_tree(const char *path, uint32_t version); int tcinfo(int argc, char **argv); int tccreate(int argc, char **argv); int tcappend(int argc, char **argv); +int tcremove(int argc, char **argv); int ent_cmp(const void * vp1, const void * vp2); int hash_cmp(const void * vp1, const void * vp2); +void print_header(struct trust_cache cache); +void print_hash(uint8_t cdhash[CS_CDHASH_LEN], bool newline); +void print_entry(struct trust_cache_entry1 entry); +void print_entries(struct trust_cache cache); + #endif -- cgit v1.2.3