summaryrefslogtreecommitdiff
path: root/src/share/mh/import_key
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-02-09 01:41:30 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-02-09 01:41:30 -0500
commit563800612b54203d5cd68aedfd9d482215d9289d (patch)
tree7b174f38103090aa4574a05b339f0bb5c6c9806a /src/share/mh/import_key
parent02edd9b326a8c8ac99b132c4989d117e18394924 (diff)
rename function to get the host fingerprint, and fix some
HOST_FINGERPRINT variables.
Diffstat (limited to 'src/share/mh/import_key')
-rw-r--r--src/share/mh/import_key4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/mh/import_key b/src/share/mh/import_key
index 1efb1ac..99511a8 100644
--- a/src/share/mh/import_key
+++ b/src/share/mh/import_key
@@ -17,7 +17,7 @@ local hostName
local userID
# check for presense of a key
-[ "$FINGERPRINT" ] && \
+[ "$HOST_FINGERPRINT" ] && \
failure "An OpenPGP host key already exists."
hostName=${1:-$(hostname -f)}
@@ -34,7 +34,7 @@ PEM2OPENPGP_USAGE_FLAGS=authenticate pem2openpgp "$userID" | \
gpg_host --import
# find the key fingerprint of the newly converted key
-HOST_FINGERPRINT=$(fingerprint_host_key)
+HOST_FINGERPRINT=$(get_host_fingerprint)
export HOST_FINGERPRINT
# export public key to file