Commit bb90546f authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add an IsExpired() method.

parent 5055b065
......@@ -1147,6 +1147,19 @@ sub LoadAdditionalStuff($)
return 0;
}
sub IsExpired($)
{
my ($self) = @_;
my $expires = $self->enddate();
return 0
if (!defined($expires));
$expires = str2time($expires);
return (time() >= $expires);
}
sub CommonName($)
{
my ($self) = @_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment