userID="ssh://${1}"
# test that the desired user ID does not already exist
-find_host_userid > /dev/null && \
+find_host_userid "$userID" && \
failure "Host userID '$userID' already exists."
if [ "$PROMPT" = "true" ] ; then
fi
# execute edit-key script
-if <"$GNUPGHOME_HOST/secring.gpg" "$SYSSHAREDIR/keytrans" adduserid \
+if PEM2OPENPGP_USAGE_FLAGS=authenticate \
+ <"$GNUPGHOME_HOST/secring.gpg" \
+ "$SYSSHAREDIR/keytrans" adduserid \
"$HOST_FINGERPRINT" "$userID" | gpg_host --import ; then
gpg_host --check-trustdb