projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add some more informative debug output to key processing.
[monkeysphere.git]
/
src
/
common
diff --git
a/src/common
b/src/common
index efee9bd69bc1c2389937b1fd66077b887a94a81d..51b04708e1e34ca13dbc4d9d4d0a591211200c4d 100644
(file)
--- a/
src/common
+++ b/
src/common
@@
-639,7
+639,7
@@
process_user_id() {
;;
'uid') # user ids
if [ "$lastKey" != pub ] ; then
;;
'uid') # user ids
if [ "$lastKey" != pub ] ; then
- log verbose "
-
got a user ID after a sub key?! user IDs should only follow primary keys!"
+ log verbose "
!
got a user ID after a sub key?! user IDs should only follow primary keys!"
continue
fi
# if an acceptable user ID was already found, skip
continue
fi
# if an acceptable user ID was already found, skip
@@
-652,6
+652,8
@@
process_user_id() {
if [ "$validity" = 'u' -o "$validity" = 'f' ] ; then
# mark user ID acceptable
uidOK=true
if [ "$validity" = 'u' -o "$validity" = 'f' ] ; then
# mark user ID acceptable
uidOK=true
+ else
+ log debug " - unacceptable user ID validity ($validity)."
fi
else
continue
fi
else
continue
@@
-693,10
+695,12
@@
process_user_id() {
# if sub key validity is not ok, skip
if [ "$validity" != 'u' -a "$validity" != 'f' ] ; then
# if sub key validity is not ok, skip
if [ "$validity" != 'u' -a "$validity" != 'f' ] ; then
+ log debug " - unacceptable sub key validity ($validity)."
continue
fi
# if sub key capability is not ok, skip
if ! check_capability "$usage" $requiredCapability ; then
continue
fi
# if sub key capability is not ok, skip
if ! check_capability "$usage" $requiredCapability ; then
+ log debug " - unacceptable sub key capability ($usage)."
continue
fi
continue
fi