X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fsubcommands%2Fmh%2Frevoke-hostname;h=b519cf66a93bf6ef041cd39f2e2593540b76d298;hb=6923ef580f068ff535af273714e59235260ab7b6;hp=decac8692f5bb7cd92a67d970e6b3bdda2ba3d27;hpb=b7e17887ac20bc5916d830f5282b07f4c0360c2a;p=monkeysphere.git diff --git a/src/subcommands/mh/revoke-hostname b/src/subcommands/mh/revoke-hostname old mode 100755 new mode 100644 index decac86..b519cf6 --- a/src/subcommands/mh/revoke-hostname +++ b/src/subcommands/mh/revoke-hostname @@ -1,17 +1,20 @@ -#!/usr/bin/env bash +# -*-shell-script-*- +# This should be sourced by bash (though we welcome changes to make it POSIX sh compliant) # Monkeysphere host revoke-hostname subcommand # # The monkeysphere scripts are written by: -# Jameson Rollins +# Jameson Rollins # Jamie McClelland # Daniel Kahn Gillmor # -# They are Copyright 2008, and are all released under the GPL, version 3 -# or later. +# They are Copyright 2008-2009, and are all released under the GPL, +# version 3 or later. # revoke hostname user ID from host key +revoke_hostname() { + local userID local fingerprint local tmpuidMatch @@ -76,10 +79,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 +87,5 @@ if echo "$revuidCommand" | \ else failure "Problem revoking user ID." fi + +}