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:
d53fd14
)
allow people to enter upper-case pkc types
author
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Fri, 29 Oct 2010 05:13:44 +0000
(
01:13
-0400)
committer
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Fri, 29 Oct 2010 05:13:44 +0000
(
01:13
-0400)
Crypt/Monkeysphere/MSVA.pm
patch
|
blob
|
history
diff --git
a/Crypt/Monkeysphere/MSVA.pm
b/Crypt/Monkeysphere/MSVA.pm
index 624ff86a385c6605c118af1a7e930a7a965b600c..c90f3940541c36e9f5261736bbdc479c6859dee7 100755
(executable)
--- 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});