aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-04-10 10:45:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-04-10 10:45:46 -0300
commitd0d0b7e0ba06e98a754e5acf671df313f8f1bb23 (patch)
tree8f82d67ebcee68d435e075b4f476de72e5c4b009
parent85b6dde44103651710f8a3ca475d8faa5e829282 (diff)
downloadkeyringer-d0d0b7e0ba06e98a754e5acf671df313f8f1bb23.tar.gz
keyringer-d0d0b7e0ba06e98a754e5acf671df313f8f1bb23.tar.bz2
TODO
-rwxr-xr-xkeyringer4
-rwxr-xr-xshare/keyringer/genpair2
2 files changed, 6 insertions, 0 deletions
diff --git a/keyringer b/keyringer
index 15f9295..2529a85 100755
--- a/keyringer
+++ b/keyringer
@@ -22,6 +22,7 @@ function keyringer_init {
BASEDIR="$3"
URL="$4"
RECIPIENTS="$BASEDIR/config/recipients"
+ OPTIONS="$BASEDIR/config/options"
# Parse
if [ -z "$BASEDIR" ]; then
@@ -53,6 +54,9 @@ function keyringer_init {
echo "# Use entries in the form of 'john@doe.com XXXXXXXX" > $RECIPIENTS
echo "" >> $RECIPIENTS
+ # Setup options
+ touch $OPTIONS
+
# Setup README
echo "Keyring repository powered by http://git.sarava.org/?p=keyringer.git;a=summary" > $BASEDIR/README
echo "" >> $BASEDIR/README
diff --git a/share/keyringer/genpair b/share/keyringer/genpair
index 723cd98..774e7ab 100755
--- a/share/keyringer/genpair
+++ b/share/keyringer/genpair
@@ -20,6 +20,7 @@ function genpair_ssh {
echo "Encrypting public key into keyringer..."
cat $WORK/id_dsa.pub | keyringer_exec encrypt $BASEDIR $FILE.pub
+ # TODO: add outfiles into version control
if [ ! -z "$OUTFILE" ]; then
mkdir -p `dirname $OUTFILE`
echo Saving copies at $OUTFILE and $OUTFILE.pub
@@ -57,6 +58,7 @@ EOF
echo "Encrypting passphrase into keyringer..."
echo "Passphrase for $FILE: $passphrase" | keyringer_exec encrypt $BASEDIR $FILE.passwd
+ # TODO: add outfiles into version control
if [ ! -z "$OUTFILE" ]; then
mkdir -p `dirname $OUTFILE`
echo Saving copies at $OUTFILE and $OUTFILE.pub