From 09e8f9650deecb44254a51e9f7a1f18622d2d3b5 Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 6 Jun 2022 23:55:28 +0000 Subject: [PATCH 1/3] Add revoke to usage, missed in 9e75968accb8b82f7ab0715e9d4528896256cf8f --- cassh.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cassh.sh b/cassh.sh index f48ee96..37c8978 100644 --- a/cassh.sh +++ b/cassh.sh @@ -19,6 +19,7 @@ Usage: [-V validity_interval] ${0##*/} mkfile authorized_keys [options ...] ${0##*/} mkfile known_hosts [hostnames ...] + ${0##*/} revoke [-qv] file ... EOF exit 1 } From fb6454a300e3fa094501d7b18ca95f8f81da4f4e Mon Sep 17 00:00:00 2001 From: Lucas Date: Sat, 3 Sep 2022 13:57:43 +0000 Subject: [PATCH 2/3] Sort find output and avoid duplicated / Some find implementations will produce results like "dir//a" if given "find dir/". --- cassh.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cassh.sh b/cassh.sh index 37c8978..c1456c8 100644 --- a/cassh.sh +++ b/cassh.sh @@ -139,7 +139,8 @@ main_issue() if [ ! -d "$PATH_PUBKEYS_DIR" ]; then exit 0 fi - find "$PATH_PUBKEYS_DIR/" -type f -name '*.pub' ! -name '*-cert.pub' | { + find "$PATH_PUBKEYS_DIR" -type f -name '*.pub' ! -name '*-cert.pub' | + sort | { ca_comment=$(get_ca_sk_comment_from_pk "$PATH_CA_PUB") : ${ca_comment:=cassh} From cbdede3433ac49df8eef8f6bdaadc5b826341ee6 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sat, 3 Sep 2022 14:02:37 +0000 Subject: [PATCH 3/3] Release v2 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 497f07c..2cd3f04 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ chmod a+x $@ P = cassh -V = 1 +V = 2 PREFIX = /usr/local MANPREFIX = ${PREFIX}/man