Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Indent check_embedded.pl consistently
Alex Stuart committed Sep 1, 2020
1 parent 59e3403 commit d9e6189
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions utilities/check_embedded.pl
@@ -330,29 +330,29 @@ sub comment {
# Deal with certificate expiry for CA-issued certificates.
#
if ($issuer ne $subject) {
if ($days < -$longExpiredDays) {
my $d = floor(-$days);
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})) {
comment("EXPIRED ($notAfter)");
} else {
error("EXPIRED ($notAfter)");
comment("fingerprint $fingerprint");
if ($days < -$longExpiredDays) {
my $d = floor(-$days);
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})) {
comment("EXPIRED ($notAfter)");
} else {
error("EXPIRED ($notAfter)");
comment("fingerprint $fingerprint");
}
} elsif ($days < $daysBeforeError) {
$days = int($days);
error("expires in $days days ($notAfter)");
} elsif ($days < $daysBeforeWarning) {
$days = int($days);
warning("expires in $days days ($notAfter)");
}
} elsif ($days < $daysBeforeError) {
$days = int($days);
error("expires in $days days ($notAfter)");
} elsif ($days < $daysBeforeWarning) {
$days = int($days);
warning("expires in $days days ($notAfter)");
}
}

#
# Handle public key size.

0 comments on commit d9e6189

Please sign in to comment.