diff --git a/build/check_embedded.pl b/build/check_embedded.pl index 02e2fbe4..eec7c007 100755 --- a/build/check_embedded.pl +++ b/build/check_embedded.pl @@ -16,6 +16,16 @@ # -q quiet don't print anything out if there are no problems detected # +# +# Number of days when we issue a warning +# +my $daysBeforeWarning = 43; + +# +# Number of days when we issue an error +# +my $daysBeforeError = 18; + # # Number of days in the past we should regard as "long expired". # @@ -396,10 +406,10 @@ sub comment { error("EXPIRED ($notAfter)"); comment("fingerprint $fingerprint"); } - } elsif ($days < 18) { + } elsif ($days < $daysBeforeError) { $days = int($days); error("expires in $days days ($notAfter)"); - } elsif ($days < 36) { + } elsif ($days < $daysBeforeWarning) { $days = int($days); warning("expires in $days days ($notAfter)"); }