projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename function to get the host fingerprint, and fix some
[monkeysphere.git]
/
src
/
share
/
mh
/
import_key
diff --git
a/src/share/mh/import_key
b/src/share/mh/import_key
index 1efb1ac5ce354836e0d63c0539135e1a476f05b6..99511a86095ef9f806a6aaa8b58052867c0f047a 100644
(file)
--- 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
local userID
# check for presense of a key
-[ "$FINGERPRINT" ] && \
+[ "$
HOST_
FINGERPRINT" ] && \
failure "An OpenPGP host key already exists."
hostName=${1:-$(hostname -f)}
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
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
export HOST_FINGERPRINT
# export public key to file