summaryrefslogtreecommitdiff
path: root/src/share/mh
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/mh')
-rw-r--r--src/share/mh/gen_key4
-rw-r--r--src/share/mh/import_key4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/share/mh/gen_key b/src/share/mh/gen_key
index 44109bb..7b427e4 100644
--- a/src/share/mh/gen_key
+++ b/src/share/mh/gen_key
@@ -21,7 +21,7 @@ local keyExpire="0"
local userID
# check for presense of a key
-[ "$FINGERPRINT" ] && \
+[ "$HOST_FINGERPRINT" ] && \
failure "An OpenPGP host key already exists."
# get options
@@ -62,7 +62,7 @@ Expire-Date: $keyExpire
EOF
# find the key fingerprint of the newly converted key
-HOST_FINGERPRINT=$(fingerprint_host_key)
+HOST_FINGERPRINT=$(get_host_fingerprint)
export HOST_FINGERPRINT
# translate the private key to ssh format, and export to a file
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
dth: -nan%;'/> -rw-r--r--tags/a9/cc/20170414110445.C7335629E@lxp5.free-owl.de/sys0
-rw-r--r--tags/a9/cc/20170414110445.C7335629E@lxp5.free-owl.de/unread0
-rw-r--r--tags/a9/cc/20170823210251.1B2AD1DA0D@jawa.homebase.dk/hb0
-rw-r--r--tags/a9/cc/20170823210251.1B2AD1DA0D@jawa.homebase.dk/sys0
-rw-r--r--tags/a9/cc/20170823210251.1B2AD1DA0D@jawa.homebase.dk/unread0
-rw-r--r--tags/a9/cc/20180118010002.ACD3C8DB7@lxp5.free-owl.de/sys0
-rw-r--r--tags/a9/cc/20180118010002.ACD3C8DB7@lxp5.free-owl.de/unread0
-rw-r--r--tags/a9/cc/530E04E8.2060808@gmail.com/attachment0
-rw-r--r--tags/a9/cc/530E04E8.2060808@gmail.com/debian0
-rw-r--r--tags/a9/cc/Pine.LNX.4.21.0012221135410.4687-100000@fuchur/sent0
22 files changed, 0 insertions, 0 deletions