]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[crypto] Allow an error margin on X.509 certificate validity periods
authorMichael Brown <mcb30@ipxe.org>
Wed, 20 Jun 2012 11:15:42 +0000 (12:15 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 20 Jun 2012 11:15:42 +0000 (12:15 +0100)
commit4010890a3940433927f34f71417719167ad58275
treefbfaf3e01cb49b0cc2bd437fb417998ba6e98346
parentc0942408b7ab30745952e801381e931b1b947e1f
[crypto] Allow an error margin on X.509 certificate validity periods

iPXE has no concept of the local time zone, mainly because there is no
viable way to obtain time zone information in the absence of local
state.  This causes potential problems with newly-issued certificates
and certificates that are about to expire.

Avoid such problems by allowing an error margin of around 12 hours on
certificate validity periods, similar to the error margin already
allowed for OCSP response timestamps.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/crypto/ocsp.c
src/crypto/x509.c
src/include/ipxe/ocsp.h
src/include/ipxe/x509.h