projects
/
monkeysphere-validation-agent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ee4c80
)
get rid of confusing $primarymatch label, and fix matching based on fingerprints
author
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Thu, 30 Dec 2010 22:50:26 +0000
(17:50 -0500)
committer
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Thu, 30 Dec 2010 22:50:26 +0000
(17:50 -0500)
Crypt/Monkeysphere/MSVA.pm
patch
|
blob
|
history
diff --git
a/Crypt/Monkeysphere/MSVA.pm
b/Crypt/Monkeysphere/MSVA.pm
index 0133ff49101aeaa94587b08204d78310b8eea94c..74c5b17a96715128976f131edf178a0b0bee3824 100755
(executable)
--- a/
Crypt/Monkeysphere/MSVA.pm
+++ b/
Crypt/Monkeysphere/MSVA.pm
@@
-773,13
+773,8
@@
}
# treat primary keys just like subkeys:
foreach my $subkey ($gpgkey, @{$gpgkey->subkeys}) {
- my $primarymatch;
- if (defined $key) {
- $primarymatch = keycomp($key, $subkey);
- } else {
- $primarymatch = 1;
- }
- if ($primarymatch) {
+ if ((defined($key) && keycomp($key, $subkey)) ||
+ (defined($fpr) && ($subkey->fingerprint->as_hex_string eq $fpr))) {
my $iscapable = 0;
msvalog('verbose', "key 0x%s matches...\n",$subkey->hex_id);
if ($data->{context} eq 'e-mail') {