x509: Fail CRL validity check if thisUpdate is in the future
This commit is contained in:
1 parent
6143f926ef
commit
a0902d1ae0
1 file changed
+1
-1
@@ -546,7 +546,7 @@ METHOD(certificate_t, get_validity, bool,
|
|||||||
{
|
{
|
||||||
*not_after = this->nextUpdate;
|
*not_after = this->nextUpdate;
|
||||||
}
|
}
|
||||||
return (t <= this->nextUpdate);
|
return (t >= this->thisUpdate && t <= this->nextUpdate);
|
||||||
}
|
}
|
||||||
|
|
||||||
METHOD(certificate_t, get_encoding, bool,
|
METHOD(certificate_t, get_encoding, bool,
|
||||||
|
|||||||
Reference in new issue
Block a user