From: Daniel Kahn Gillmor Date: Fri, 29 Oct 2010 05:13:44 +0000 (-0400) Subject: allow people to enter upper-case pkc types X-Git-Tag: msva-perl_debian/0.6-1~3^2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1f73ca4afef914b5cd4558900786e13c71e44d19;p=monkeysphere-validation-agent.git allow people to enter upper-case pkc types --- diff --git a/Crypt/Monkeysphere/MSVA.pm b/Crypt/Monkeysphere/MSVA.pm index 624ff86..c90f394 100755 --- a/Crypt/Monkeysphere/MSVA.pm +++ b/Crypt/Monkeysphere/MSVA.pm @@ -520,9 +520,9 @@ msvalog('verbose', "peer: %s\n", $data->{peer}); my $rawdata; - if ($data->{pkc}->{type} eq 'x509der') { + if (lc($data->{pkc}->{type}) eq 'x509der') { $rawdata = join('', map(chr, @{$data->{pkc}->{data}})); - } elsif ($data->{pkc}->{type} eq 'x509pem') { + } elsif (lc($data->{pkc}->{type}) eq 'x509pem') { $rawdata = pem2der($data->{pkc}->{data}); } else { $ret->{message} = sprintf("Don't know this public key carrier type: %s", $data->{pkc}->{type});