allow people to enter upper-case pkc types
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 29 Oct 2010 05:13:44 +0000 (01:13 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 29 Oct 2010 05:13:44 +0000 (01:13 -0400)
Crypt/Monkeysphere/MSVA.pm

index 624ff86a385c6605c118af1a7e930a7a965b600c..c90f3940541c36e9f5261736bbdc479c6859dee7 100755 (executable)
     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});