diff options
| author | Cameron Katri <me@cameronkatri.com> | 2022-05-21 23:44:49 -0400 |
|---|---|---|
| committer | Cameron Katri <me@cameronkatri.com> | 2022-05-21 23:44:49 -0400 |
| commit | 2288b178e612386e7a75471c8861c3f6d81c300d (patch) | |
| tree | 18209f47e0bc635000f7bf86b83f43a9ab0aa3ea /trustcache.h | |
| parent | aa035f73ce081b3f07247bd15860d72355a096b2 (diff) | |
| download | trustcache-2288b178e612386e7a75471c8861c3f6d81c300d.tar.gz trustcache-2288b178e612386e7a75471c8861c3f6d81c300d.zip | |
Add tc remove and append -f flags
Also fix some conflicting types to hopefully prevent possible overflows.
Diffstat (limited to 'trustcache.h')
| -rw-r--r-- | trustcache.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <stdbool.h> #include <sys/types.h> #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 |
