summaryrefslogtreecommitdiff
path: root/CommModule
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2012-01-31 23:49:02 +0100
committerMichael Tänzer <neo@nhng.de>2012-01-31 23:49:02 +0100
commit1873efb2b7f1eb0be809fbcd176784a1ad75a9a1 (patch)
tree481c5215d457330b379a40961b3821c560b588a2 /CommModule
parent80aeb3217af38950947501429c0395b70d8e45e5 (diff)
downloadcacert-devel-1873efb2b7f1eb0be809fbcd176784a1ad75a9a1.tar.gz
cacert-devel-1873efb2b7f1eb0be809fbcd176784a1ad75a9a1.tar.xz
cacert-devel-1873efb2b7f1eb0be809fbcd176784a1ad75a9a1.zip
use shorter validity periods on test server to make testing easier
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'CommModule')
-rwxr-xr-xCommModule/client.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/CommModule/client.pl b/CommModule/client.pl
index 8da871d..002b661 100755
--- a/CommModule/client.pl
+++ b/CommModule/client.pl
@@ -444,9 +444,9 @@ sub calculateDays($)
my @sum = $dbh->selectrow_array("select sum(`points`) as `total` from `notary` where `to`='".$_[0]."' group by `to`");
SysLog("Summe: $sum[0]\n") if($debug);
- return ($sum[0]>=50)?730:180;
+ return ($sum[0]>=50)?30:3;
}
- return 180;
+ return 3;
}
sub X509extractSAN($)
@@ -832,7 +832,7 @@ sub HandleCerts($$)
SysLog "SAN: --$SAN--\n" if($debug);
SysLog "memid: $row{'memid'}\n" if($debug);
- my $days=$org?($server?(365*2):365):calculateDays($row{"memid"});
+ my $days=$org?($server?(30):7):calculateDays($row{"memid"});
$crt=Request($ver,1,1,$row{'rootcert'}-1,$profile,$row{'md'}eq"sha1"?2:0,$days,$row{'keytype'}eq"NS"?1:0,$content,$SAN,$subject);