From faba1f853ccf302755a9b50bb716327f9f769d02 Mon Sep 17 00:00:00 2001 From: Alex Stuart Date: Thu, 6 Sep 2012 11:26:58 +0000 Subject: [PATCH] Changing variable names to notBeforeTime, to be consistent with notAfterTime. --- build/check_embedded.pl | 4 ++-- charting/shortkeys_inner.pl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/check_embedded.pl b/build/check_embedded.pl index 69291d95..01c74604 100755 --- a/build/check_embedded.pl +++ b/build/check_embedded.pl @@ -209,7 +209,7 @@ sub comment { if (/Not Before: (.*)$/) { $notBefore = $1; - $noteBeforeTime = str2time($notBefore); + $notBeforeTime = str2time($notBefore); next; } @@ -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"); diff --git a/charting/shortkeys_inner.pl b/charting/shortkeys_inner.pl index bbf780f2..e1465f5d 100755 --- a/charting/shortkeys_inner.pl +++ b/charting/shortkeys_inner.pl @@ -227,7 +227,7 @@ sub comment { if (/Not Before: (.*)$/) { $notBefore = $1; - $noteBeforeTime = str2time($notBefore); + $notBeforeTime = str2time($notBefore); } if (/Not After : (.*)$/) { @@ -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");