require openpgp4fpr to be a full fingerprint and standardize internally on upper...
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 30 Dec 2010 22:49:39 +0000 (17:49 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 30 Dec 2010 22:49:39 +0000 (17:49 -0500)
Crypt/Monkeysphere/MSVA.pm

index ed72f4dda43770f8e45f6d3031260a41a345da97..0133ff49101aeaa94587b08204d78310b8eea94c 100755 (executable)
     my $key;
     my $gpgquery;
     if (lc($data->{pkc}->{type}) eq 'openpgp4fpr') {
-      if ($data->{pkc}->{data} =~ /^(0x)?([[:xdigit:]]+)$/) {
-       $data->{pkc}->{data} = $2;
+      if ($data->{pkc}->{data} =~ /^(0x)?([[:xdigit:]]{40})$/) {
+       $data->{pkc}->{data} = uc($2);
        $fpr = $data->{pkc}->{data};
        msvalog('verbose', "OpenPGP v4 fingerprint: %s\n",$fpr);
       } else {