more moving to subfunctions, and rename of show-key
[monkeysphere.git] / src / subcommands / mh / add-hostname
index fc1ae9665ec76745ffed24900e72bea31e8e12fb..591f52ee4a90d987e2a590df134c0cfb22bd4b45 100755 (executable)
@@ -12,6 +12,8 @@
 
 # add hostname user ID to server key
 
+add_hostname() {
+
 local userID
 local fingerprint
 local tmpuidMatch
@@ -58,10 +60,7 @@ EOF
 if echo "$adduidCommand" | \
     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 added to key, but key not published."
@@ -69,3 +68,5 @@ if echo "$adduidCommand" | \
 else
     failure "Problem adding user ID."
 fi
+
+}