summaryrefslogtreecommitdiff
path: root/CommModule
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2014-01-08 02:32:39 +0100
committerBenny Baumann <BenBE@geshi.org>2014-01-08 02:32:39 +0100
commit1228febe3d89ce7b20eeb5575265873818d971ef (patch)
treee10352db729b3ceaae435ee054310709f9710672 /CommModule
parentd5b87fa053027eb09f66d3782228dff859dab10a (diff)
parent5decb5e88224831cc6e8c5372f8eafc04cfbe23c (diff)
downloadcacert-devel-1228febe3d89ce7b20eeb5575265873818d971ef.tar.gz
cacert-devel-1228febe3d89ce7b20eeb5575265873818d971ef.tar.xz
cacert-devel-1228febe3d89ce7b20eeb5575265873818d971ef.zip
Merge branch 'bug-1237' into testserver-stable
Diffstat (limited to 'CommModule')
-rwxr-xr-xCommModule/client.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/CommModule/client.pl b/CommModule/client.pl
index 33ea522..8b29d62 100755
--- a/CommModule/client.pl
+++ b/CommModule/client.pl
@@ -835,12 +835,12 @@ sub HandleCerts($$)
my $days=$org?($server?(30):7):calculateDays($row{"memid"});
my $md_id = 0;
- $md_id = 1 if( $raw{'md'} eq "md5");
- $md_id = 2 if( $raw{'md'} eq "sha1");
- $md_id = 3 if( $raw{'md'} eq "rmd160");
- $md_id = 8 if( $raw{'md'} eq "sha256");
- $md_id = 9 if( $raw{'md'} eq "sha384");
- $md_id =10 if( $raw{'md'} eq "sha512");
+ $md_id = 1 if( $row{'md'} eq "md5");
+ $md_id = 2 if( $row{'md'} eq "sha1");
+ $md_id = 3 if( $row{'md'} eq "rmd160");
+ $md_id = 8 if( $row{'md'} eq "sha256");
+ $md_id = 9 if( $row{'md'} eq "sha384");
+ $md_id =10 if( $row{'md'} eq "sha512");
$crt=Request($ver,1,1,$row{'rootcert'}-1,$profile,$md_id,$days,$row{'keytype'}eq"NS"?1:0,$content,$SAN,$subject);
if(length($crt))