Skip to content

Commit

Permalink
Include expired but whitelisted certificates at a comment level rathe…
Browse files Browse the repository at this point in the history
…r than suppressing entirely. This means that it will still be visible if there is another error on the certificate, but won't prompt output if the certificate is otherwise OK.
  • Loading branch information
iay committed Apr 9, 2013
1 parent 67c0951 commit 97ebf89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build/check_embedded.pl
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,16 @@ sub comment {
#
if ($days < -$longExpiredDays) {
my $d = floor(-$days);
if (!defined($expiry_whitelist{$fingerprint})) {
if (defined($expiry_whitelist{$fingerprint})) {
comment("EXPIRED LONG AGO ($d days; $notAfter)");
} else {
error("EXPIRED LONG AGO ($d days; $notAfter)");
comment("fingerprint $fingerprint");
}
} elsif ($days < 0) {
if (!defined($expiry_whitelist{$fingerprint})) {
if (defined($expiry_whitelist{$fingerprint})) {
comment("EXPIRED ($notAfter)");
} else {
error("EXPIRED ($notAfter)");
comment("fingerprint $fingerprint");
}
Expand Down

0 comments on commit 97ebf89

Please sign in to comment.