[crypto] Allow signed timestamp error margin to be configured at build time

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2014-03-30 20:07:14 +01:00
parent d90490578d
commit 7c7c957094
4 changed files with 28 additions and 12 deletions

View File

@@ -42,14 +42,6 @@ struct x509_validity {
struct x509_time not_after;
};
/** Margin of error allowed in X.509 response times
*
* We allow a generous margin of error: 12 hours to allow for the
* local time zone being non-GMT, plus 30 minutes to allow for general
* clock drift.
*/
#define X509_ERROR_MARGIN_TIME ( ( 12 * 60 + 30 ) * 60 )
/** An X.509 certificate public key */
struct x509_public_key {
/** Raw public key information */