mention cabability and validity in verbose output when not capable/valid
authorJameson Rollins <jrollins@finestructure.net>
Tue, 28 Dec 2010 14:06:12 +0000 (09:06 -0500)
committerJameson Rollins <jrollins@finestructure.net>
Tue, 28 Dec 2010 14:06:12 +0000 (09:06 -0500)
Crypt/Monkeysphere/MSVA.pm

index 255dcc63aa2ee5593b61aad41d16ca0fedb84e74..eda2503be75a37494f566756cd7851297ac35d92 100755 (executable)
                $iscapable = 1;
                msvalog('verbose', "...and is signing-capable...\n");
              } else {
-               msvalog('verbose', "...but is not signing-capable.\n");
+               msvalog('verbose', "...but is not signing-capable (%s).\n",$subkey->usage_flags);
              }
            } else {
              if ($subkey->usage_flags =~ /a/) {
                $iscapable = 1;
                msvalog('verbose', "...and is authentication-capable...\n");
              } else {
-               msvalog('verbose', "...but is not authentication-capable.\n");
+               msvalog('verbose', "...but is not authentication-capable (%s).\n",$subkey->usage_flags);
              }
            }
            if ($iscapable) {
                $ret->{message} = sprintf('Successfully validated "%s" through the OpenPGP Web of Trust.', $uid);
                last;
              } else {
-               msvalog('verbose', "...but is not fully valid.\n");
+               msvalog('verbose', "...but is not fully valid (%s).\n",$validity);
                push(@subvalid_key_fprs, { fpr => $subkey->fingerprint, val => $validity }) if $lastloop;
              }
            }