projects
/
monkeysphere.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0d36aeb
)
make subcommand subfunction that were missed previously
author
Jameson Graef Rollins
<jrollins@finestructure.net>
Sat, 31 Jan 2009 23:31:09 +0000
(18:31 -0500)
committer
Jameson Graef Rollins
<jrollins@finestructure.net>
Sat, 31 Jan 2009 23:31:09 +0000
(18:31 -0500)
src/subcommands/ma/add-certifier
patch
|
blob
|
history
src/subcommands/ma/diagnostics
patch
|
blob
|
history
src/subcommands/ma/list-certifiers
patch
|
blob
|
history
src/subcommands/ma/remove-certifier
patch
|
blob
|
history
src/subcommands/ma/update-users
patch
|
blob
|
history
diff --git
a/src/subcommands/ma/add-certifier
b/src/subcommands/ma/add-certifier
index 3bd800c25cd6ee8cd4f2c6a0899ead07e738bb60..451506d1cecfbc70670ad9d4a8bf366cceb815d0 100755
(executable)
--- a/
src/subcommands/ma/add-certifier
+++ b/
src/subcommands/ma/add-certifier
@@
-13,6
+13,8
@@
# retrieve key from web of trust, import it into the host keyring, and
# ltsign the key in the host keyring so that it may certify other keys
# retrieve key from web of trust, import it into the host keyring, and
# ltsign the key in the host keyring so that it may certify other keys
+add_certifier() {
+
local domain
local trust
local depth
local domain
local trust
local depth
@@
-139,3
+141,5
@@
if echo "$ltsignCommand" | \
else
failure "Problem adding identify certifier."
fi
else
failure "Problem adding identify certifier."
fi
+
+}
diff --git
a/src/subcommands/ma/diagnostics
b/src/subcommands/ma/diagnostics
index b6003b02a60540f113c85c83aee5f5e8c1a5f734..66aa6b4060403793a37fe541835eba7180034084 100755
(executable)
--- a/
src/subcommands/ma/diagnostics
+++ b/
src/subcommands/ma/diagnostics
@@
-10,7
+10,10
@@
# They are Copyright 2008, and are all released under the GPL, version 3
# or later.
# They are Copyright 2008, and are all released under the GPL, version 3
# or later.
-# * check on the status and validity of the key and public certificates
+# check on the status and validity of the key and public certificates
+
+diagnostics() {
+
local seckey
local keysfound
local curdate
local seckey
local keysfound
local curdate
@@
-177,3
+180,5
@@
if [ "$problemsfound" -gt 0 ]; then
else
echo "Everything seems to be in order!"
fi
else
echo "Everything seems to be in order!"
fi
+
+}
diff --git
a/src/subcommands/ma/list-certifiers
b/src/subcommands/ma/list-certifiers
index 789d553225789716a72c01308a87eb2c5f112b92..e920888eb60faa0c41f08251ab7cc1fe63b60f26 100755
(executable)
--- a/
src/subcommands/ma/list-certifiers
+++ b/
src/subcommands/ma/list-certifiers
@@
-12,6
+12,8
@@
# list the host certifiers
# list the host certifiers
+list_certifiers() {
+
local keys
local key
local keys
local key
@@
-23,3
+25,5
@@
keys=$(gpg_authentication "--no-options --list-options show-uid-validity --keyri
for key in $keys ; do
gpg_authentication "--no-options --list-options show-uid-validity --keyring ${GNUPGHOME_AUTHENTICATION}/pubring.gpg --list-key --fingerprint $key"
done
for key in $keys ; do
gpg_authentication "--no-options --list-options show-uid-validity --keyring ${GNUPGHOME_AUTHENTICATION}/pubring.gpg --list-key --fingerprint $key"
done
+
+}
diff --git
a/src/subcommands/ma/remove-certifier
b/src/subcommands/ma/remove-certifier
index a4eaf548ad5c872810eeaaccd2359dccd553a203..117bad4d0aaa7ed5265b6a63603608dd86fe8ca1 100755
(executable)
--- a/
src/subcommands/ma/remove-certifier
+++ b/
src/subcommands/ma/remove-certifier
@@
-12,6
+12,8
@@
# delete a certifiers key from the host keyring
# delete a certifiers key from the host keyring
+remove_certifier() {
+
local keyID
local fingerprint
local keyID
local fingerprint
@@
-43,3
+45,4
@@
else
failure "Problem removing identity certifier."
fi
failure "Problem removing identity certifier."
fi
+}
diff --git
a/src/subcommands/ma/update-users
b/src/subcommands/ma/update-users
index a26d3fbdd0d5732935787fee50e75dcf2f955e07..086136403638fe492a3f462c7e0f7bd4e728b480 100755
(executable)
--- a/
src/subcommands/ma/update-users
+++ b/
src/subcommands/ma/update-users
@@
-10,6
+10,8
@@
# They are Copyright 2008, and are all released under the GPL, version 3
# or later.
# They are Copyright 2008, and are all released under the GPL, version 3
# or later.
+update_users() {
+
if [ "$1" ] ; then
# get users from command line
unames="$@"
if [ "$1" ] ; then
# get users from command line
unames="$@"
@@
-141,4
+143,6
@@
for uname in $unames ; do
# destroy temporary directory
rm -rf "$TMPLOC"
# destroy temporary directory
rm -rf "$TMPLOC"
- done
+done
+
+}