Skip to content

Commit

Permalink
Remove now-irrelevant check for "excess cryptoperiod" on keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 19, 2013
1 parent a58f00d commit 7556578
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions build/check_embedded.pl
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
# -q quiet don't print anything out if there are no problems detected
#

#
# Maximum cryptoperiod for 1024-bit keys.
#
my $excessThreshold = 5; # years

#
# Number of days in the past we should regard as "long expired".
#
Expand Down Expand Up @@ -281,12 +276,6 @@ sub comment {
next;
}

if (/Not Before: (.*)$/) {
$notBefore = $1;
$notBeforeTime = str2time($notBefore);
next;
}

if (/Not After : (.*)$/) {
$notAfter = $1;
$notAfterTime = str2time($notAfter);
Expand Down Expand Up @@ -518,15 +507,6 @@ sub comment {
warning("short key ($pubSize bit) in certificate; expires $notAfter");
}

#
# Complain about keys with an excessive cryptoperiod (more than
# some given number of years).
#
my $validYears = ($notAfterTime - $notBeforeTime)/(86400.0*365.0);
my $years = sprintf "%.1f", $validYears;
if ($validYears >= $excessThreshold) {
warning("excess cryptoperiod $years years for short ($pubSize bit) key; expires $notAfter");
}
}

#
Expand Down

0 comments on commit 7556578

Please sign in to comment.