From 1f73ca4afef914b5cd4558900786e13c71e44d19 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Fri, 29 Oct 2010 01:13:44 -0400 Subject: [PATCH] allow people to enter upper-case pkc types --- Crypt/Monkeysphere/MSVA.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}); -- 2.26.2