Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
bb90546f
Commit
bb90546f
authored
May 18, 2016
by
Leigh B Stoller
Browse files
Add an IsExpired() method.
parent
5055b065
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCertificate.pm.in
View file @
bb90546f
...
...
@@ -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
)
=
@
_
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment