summaryrefslogtreecommitdiff
path: root/src/subcommands/mh/revoke-hostname
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-01-31 18:04:21 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-01-31 18:04:21 -0500
commita0747749cbc7445e0cadaf0fbf1c92a2e86d1369 (patch)
tree01458632e6e699507b6a0889f2557726208c320e /src/subcommands/mh/revoke-hostname
parent968627c7003d059e63ae455d91e1ada4143c8810 (diff)
turn subcommands into subfunctions, that will need to be sourced and executed.
Diffstat (limited to 'src/subcommands/mh/revoke-hostname')
-rwxr-xr-xsrc/subcommands/mh/revoke-hostname6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/subcommands/mh/revoke-hostname b/src/subcommands/mh/revoke-hostname
index decac86..0a773a3 100755
--- a/src/subcommands/mh/revoke-hostname
+++ b/src/subcommands/mh/revoke-hostname
@@ -12,6 +12,8 @@
# revoke hostname user ID from host key
+revoke_hostname() {
+
local userID
local fingerprint
local tmpuidMatch
@@ -79,7 +81,7 @@ if echo "$revuidCommand" | \
# update the trustdb for the authentication keyring
gpg_authentication "--check-trustdb"
- show_server_key
+ show_key
echo
echo "NOTE: User ID revoked, but revocation not published."
@@ -87,3 +89,5 @@ if echo "$revuidCommand" | \
else
failure "Problem revoking user ID."
fi
+
+}