aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2022-06-13 14:28:49 -0400
committerCameron Katri <me@cameronkatri.com>2022-06-13 22:15:27 -0400
commit9c3635b6eeca14dea544c17fc0497bd205c20b92 (patch)
tree7682110ab176b3a8e4b3eb1d346ecdc25e62746c
parent59b06ee63aa566ae7a3c4f6ca90e27e19d6d7226 (diff)
downloadtrustcache-9c3635b6eeca14dea544c17fc0497bd205c20b92.tar.gz
trustcache-9c3635b6eeca14dea544c17fc0497bd205c20b92.tar.zst
trustcache-9c3635b6eeca14dea544c17fc0497bd205c20b92.zip
Rename to trustcache
Linux contains a `tc(8)` that I was unaware of. https://manpages.debian.org/tc.8
-rw-r--r--.gitignore2
-rw-r--r--Makefile18
-rw-r--r--README.txt22
-rw-r--r--trustcache.1 (renamed from tc.1)4
-rw-r--r--trustcache.c (renamed from tc.c)10
5 files changed, 29 insertions, 27 deletions
diff --git a/.gitignore b/.gitignore
index 93ac639..2ee8367 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
a.out
*.o
*.bin
-tc
+trustcache
.vscode
diff --git a/Makefile b/Makefile
index 7eeb0db..7b7aec9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-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
@@ -19,24 +19,24 @@ else
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
diff --git a/README.txt b/README.txt
index 54c313d..12da2b3 100644
--- a/README.txt
+++ b/README.txt
@@ -1,18 +1,19 @@
-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
@@ -47,12 +48,13 @@ DESCRIPTION
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
diff --git a/tc.1 b/trustcache.1
index 8c5431b..68ec6e5 100644
--- a/tc.1
+++ b/trustcache.1
@@ -23,10 +23,10 @@
.\" SUCH DAMAGE.
.\"
.Dd May 19, 2022
-.Dt TC 1
+.Dt TRUSTCACHE 1
.Os
.Sh NAME
-.Nm tc
+.Nm trustcache
.Nd Create and interact with trustcaches
.Sh SYNOPSIS
.Nm
diff --git a/tc.c b/trustcache.c
index 6142057..adc594c 100644
--- a/tc.c
+++ b/trustcache.c
@@ -41,11 +41,11 @@ main(int argc, char **argv)
{
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);
}