~mdw
/
distorted-keys
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cryptop.genkey: Fix lies in the help text.
[distorted-keys]
/
cryptop.genkey
diff --git
a/cryptop.genkey
b/cryptop.genkey
old mode 100644
(file)
new mode 100755
(executable)
index
b33458d
..
d220fe3
--- a/
cryptop.genkey
+++ b/
cryptop.genkey
@@
-28,10
+28,11
@@
case "${KEYSLIB+t}" in t) ;; *) echo >&2 "$0: KEYSLIB unset"; exit 1 ;; esac
. "$KEYSLIB"/keyfunc.sh
defhelp <<HELP
. "$KEYSLIB"/keyfunc.sh
defhelp <<HELP
-[-f] KEY PROFILE [
ARGUMENTS
...]
+[-f] KEY PROFILE [
OPTION=VALUE
...]
Generate a named KEY, according to the PROFILE.
Generate a named KEY, according to the PROFILE.
-The ARGUMENTS are passed to the key-type handler selected by the profile.
+The OPTIONS and VALUES are passed to the key-type handler selected by the
+profile.
Options:
-f Force overwriting an existing key.
Options:
-f Force overwriting an existing key.
@@
-39,7
+40,7
@@
HELP
genhook_recov () {
base=$1 nub=$2
genhook_recov () {
base=$1 nub=$2
- for recov in $k
opt
_recovery; do
+ for recov in $k
prop
_recovery; do
(stash $recov $kowner/$klabel <"$nub")
done
}
(stash $recov $kowner/$klabel <"$nub")
done
}
@@
-92,7
+93,7
@@
case "$profile" in
;;
esac
checkword "profile label" "$label"
;;
esac
checkword "profile label" "$label"
-read_profile $profile
+read_profile $
USERV_USER $
profile
## Generate the key.
c_genkey $profile $kdir $knub genhook_recov "$@"
## Generate the key.
c_genkey $profile $kdir $knub genhook_recov "$@"