more big cleanup of host/authentication commands to reflect new
[monkeysphere.git] / src / subcommands / mh / revoke-hostname
index decac8692f5bb7cd92a67d970e6b3bdda2ba3d27..01f6ee075ab58924f11dadf59ed9f6f80d7c391a 100755 (executable)
@@ -12,6 +12,8 @@
 
 # revoke hostname user ID from host key
 
+revoke_hostname() {
+
 local userID
 local fingerprint
 local tmpuidMatch
@@ -76,10 +78,7 @@ EOF
 if echo "$revuidCommand" | \
     gpg_host --quiet --command-fd 0 --edit-key "0x${fingerprint}!" ; then
 
-    # 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 +86,5 @@ if echo "$revuidCommand" | \
 else
     failure "Problem revoking user ID."
 fi
+
+}