projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prepared releasenote for 0.29
[monkeysphere.git]
/
src
/
share
/
mh
/
import_key
diff --git
a/src/share/mh/import_key
b/src/share/mh/import_key
index ada291474aefe6a61268923d488eba24c89aba46..0f362b8ce8aff7f1c95d8b56da9b9b3e963ce6ee 100644
(file)
--- a/
src/share/mh/import_key
+++ b/
src/share/mh/import_key
@@
-26,6
+26,9
@@
if [ -z "$serviceName" ] ; then
failure "You must specify a service name for use in the OpenPGP certificate user ID."
fi
failure "You must specify a service name for use in the OpenPGP certificate user ID."
fi
+# test that a key with that user ID does not already exist
+prompt_userid_exists "$serviceName"
+
# check that the service name is well formatted
check_service_name "$serviceName"
# check that the service name is well formatted
check_service_name "$serviceName"
@@
-46,8
+49,8
@@
else
| gpg_host --import
fi
| gpg_host --import
fi
-# export to
gpg
public key to file
-update_
gpg
_pub_file
+# export to
OpenPGP
public key to file
+update_
pgp
_pub_file
log info "host key imported:"
log info "host key imported:"