bug 1237: Fix a typo ... bug-1237
authorBenny Baumann <BenBE@geshi.org>
Wed, 8 Jan 2014 01:32:23 +0000 (02:32 +0100)
committerBenny Baumann <BenBE@geshi.org>
Wed, 8 Jan 2014 01:32:23 +0000 (02:32 +0100)
CommModule/client.pl

index 6ff3b5e..bd3eb02 100755 (executable)
@@ -835,12 +835,12 @@ sub HandleCerts($$)
       my $days=$org?($server?(365*2):365):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))