summaryrefslogtreecommitdiffstats
path: root/qemu/roms/ipxe/src/config/crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/roms/ipxe/src/config/crypto.h')
-rw-r--r--qemu/roms/ipxe/src/config/crypto.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/qemu/roms/ipxe/src/config/crypto.h b/qemu/roms/ipxe/src/config/crypto.h
new file mode 100644
index 000000000..1e021b0fb
--- /dev/null
+++ b/qemu/roms/ipxe/src/config/crypto.h
@@ -0,0 +1,25 @@
+#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 <config/named.h>
+#include NAMED_CONFIG(crypto.h)
+#include <config/local/crypto.h>
+#include LOCAL_NAMED_CONFIG(crypto.h)
+
+#endif /* CONFIG_CRYPTO_H */