summaryrefslogtreecommitdiff
path: root/src/monkeysphere
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@phys.columbia.edu>2008-08-24 23:57:09 -0700
committerJameson Graef Rollins <jrollins@phys.columbia.edu>2008-08-24 23:57:09 -0700
commit050302344aba552900a199d76fab57fd49c05795 (patch)
tree2d9165f527c1eca667cd74ca16f74d270d239d6f /src/monkeysphere
parent140fd9b87865c53ead7b16c28a8bc040c2650026 (diff)
tweaked the key expiration checking function, and replied to SJJ's bug
comment.
Diffstat (limited to 'src/monkeysphere')
-rwxr-xr-xsrc/monkeysphere20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/monkeysphere b/src/monkeysphere
index 8936668..2690db8 100755
--- a/src/monkeysphere
+++ b/src/monkeysphere
@@ -128,25 +128,7 @@ key before joining the monkeysphere. You can do this with:
# set subkey defaults
# prompt about key expiration if not specified
- if [ -z "$keyExpire" ] ; then
- cat <<EOF
-Please specify how long the key should be valid.
- 0 = key does not expire
- <n> = key expires in n days
- <n>w = key expires in n weeks
- <n>m = key expires in n months
- <n>y = key expires in n years
-EOF
- while [ -z "$keyExpire" ] ; do
- read -p "Key is valid for? (0) " keyExpire
- if ! test_gpg_expire ${keyExpire:=0} ; then
- echo "invalid value"
- unset keyExpire
- fi
- done
- elif ! test_gpg_expire "$keyExpire" ; then
- failure "invalid key expiration value '$keyExpire'."
- fi
+ keyExpire=$(get_gpg_expiration "$keyExpire")
# generate the list of commands that will be passed to edit-key
editCommands=$(cat <<EOF