From 7c7c95709482c769fb081471f2ff8701dbd5b068 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 30 Mar 2014 20:07:14 +0100 Subject: [crypto] Allow signed timestamp error margin to be configured at build time Signed-off-by: Michael Brown --- src/config/crypto.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/config/crypto.h (limited to 'src/config') diff --git a/src/config/crypto.h b/src/config/crypto.h new file mode 100644 index 000000000..95c73d477 --- /dev/null +++ b/src/config/crypto.h @@ -0,0 +1,22 @@ +#ifndef CONFIG_CRYPTO_H +#define CONFIG_CRYPTO_H + +/** @file + * + * Cryptographic configuration + * + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +/** Margin of error (in seconds) allowed in signed timestamps + * + * We default to allowing a reasonable 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 TIMESTAMP_ERROR_MARGIN ( ( 12 * 60 + 30 ) * 60 ) + +#include + +#endif /* CONFIG_CRYPTO_H */ -- cgit v1.2.3-55-g7522