Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Changing variable names to notBeforeTime, to be consistent with notAf…
Browse files Browse the repository at this point in the history
…terTime.
  • Loading branch information
Alex Stuart authored and Alex Stuart committed Sep 6, 2012
1 parent 77c9d4d commit faba1f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/check_embedded.pl
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ sub comment {

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

Expand Down Expand Up @@ -399,7 +399,7 @@ sub comment {
# Complain about keys with an excessive cryptoperiod (more than
# some given number of years).
#
my $validYears = ($notAfterTime - $noteBeforeTime)/(86400.0*365.0);
my $validYears = ($notAfterTime - $notBeforeTime)/(86400.0*365.0);
my $years = sprintf "%.1f", $validYears;
if ($validYears >= $excessThreshold) {
warning("excess cryptoperiod $years years for 1024-bit key; expires $notAfter");
Expand Down
4 changes: 2 additions & 2 deletions charting/shortkeys_inner.pl
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ sub comment {

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

if (/Not After : (.*)$/) {
Expand Down Expand Up @@ -278,7 +278,7 @@ sub comment {
# Complain about keys with an excessive cryptoperiod (more than
# about three years).
#
my $validYears = ($notAfterTime - $noteBeforeTime)/(86400.0*365.0);
my $validYears = ($notAfterTime - $notBeforeTime)/(86400.0*365.0);
my $years = sprintf "%.1f", $validYears;
if ($validYears >= $excessThreshold) {
error("excess cryptoperiod $years years expires $notAfter");
Expand Down

0 comments on commit faba1f8

Please sign in to comment.