use _hx509_signature_best_before

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24252 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-01-11 21:44:00 +00:00
parent 8bd4ae305f
commit 98d48f25d7

View File

@@ -2263,6 +2263,16 @@ hx509_verify_path(hx509_context context,
"Failed to verify signature of certificate");
goto out;
}
/* verify that the creation date is before the best before date */
if (i + 1 < path.len) {
time_t notBefore =
_hx509_Time2time_t(&c->tbsCertificate.validity.notBefore);
ret = _hx509_signature_best_before(context,
&c->signatureAlgorithm,
notBefore);
if (ret)
goto out;
}
}
out: