-OBJS = tc.o
+OBJS = trustcache.o
OBJS += append.o create.o info.o remove.o
OBJS += machoparse/cdhash.o cache_from_tree.o sort.o
OBJS += uuid/gen_uuid.o uuid/pack.o uuid/unpack.o uuid/parse.o uuid/unparse.o uuid/copy.o
LIBS += -lcrypto
endif
-all: tc
+all: trustcache
-install: tc tc.1
+install: trustcache trustcache.1
install -d $(BINDIR)
- install -m 755 tc $(BINDIR)/
+ install -m 755 trustcache $(BINDIR)/
install -d $(MANDIR)/man1/
- install -m 644 tc.1 $(MANDIR)/man1/
+ install -m 644 trustcache.1 $(MANDIR)/man1/
uninstall:
- rm -i $(BINDIR)/tc $(MANDIR)/man1/tc.1
+ rm -i $(BINDIR)/trustcache $(MANDIR)/man1/trustcache.1
-tc: $(OBJS)
+trustcache: $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)
-README.txt: tc.1
+README.txt: trustcache.1
mandoc $^ | col -bx > $@
clean:
- rm -f tc $(OBJS)
+ rm -f trustcache $(OBJS)
.PHONY: all clean install uninstall
-TC(1) General Commands Manual TC(1)
+TRUSTCACHE(1) General Commands Manual TRUSTCACHE(1)
NAME
- tc – Create and interact with trustcaches
+ trustcache – Create and interact with trustcaches
SYNOPSIS
- tc append [-f flags] [-u uuid | 0] infile file ...
- tc create [-u uuid] [-v version] outfile file ...
- tc info [-c] [-h] [-e entrynum] file
- tc remove [-k] file hash ...
+ trustcache append [-f flags] [-u uuid | 0] infile file ...
+ trustcache create [-u uuid] [-v version] outfile file ...
+ trustcache info [-c] [-h] [-e entrynum] file
+ trustcache remove [-k] file hash ...
DESCRIPTION
- The tc utility is used to get info about and modify Apple trustcaches.
+ The trustcache utility is used to get info about and modify Apple
+ trustcaches.
- The following commands are supported by tc:
+ The following commands are supported by trustcache:
append [-f flags] [-u uuid | 0] infile file ...
Modify the trustcache at infile to include each signed Mach-O at
be printed.
EXIT STATUS
- The tc utility exits 0 on success, and >0 if an error occurs.
+ The trustcache utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
cryptex-dump-trust-cache(1), cryptex-generate-trust-cache(1)
HISTORY
- The tc utility was written by Cameron Katri <me@cameronkatri.com>.
+ The trustcache utility was written by Cameron Katri
+ <me@cameronkatri.com>.
FreeBSD 14.0-CURRENT May 19, 2022 FreeBSD 14.0-CURRENT
{
if (argc < 2) {
help:
- fprintf(stderr, "Usage: tc append [-f flags] [-u uuid | 0] infile file ...\n"
- " tc create [-u uuid] [-v version] outfile file ...\n"
- " tc info [-c] [-h] [-e entrynum] file\n"
- " tc remove [-k] file hash ...\n\n"
- "See tc(1) for more information\n");
+ fprintf(stderr, "Usage: trustcache append [-f flags] [-u uuid | 0] infile file ...\n"
+ " trustcache create [-u uuid] [-v version] outfile file ...\n"
+ " trustcache info [-c] [-h] [-e entrynum] file\n"
+ " trustcache remove [-k] file hash ...\n\n"
+ "See trustcache(1) for more information\n");
exit(1);
}