Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[crypto] Allow signed timestamp error margin to be configured at buil…
…d time Signed-off-by: Michael Brown <mcb30@ipxe.org>
- Loading branch information
Showing
4 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <config/local/crypto.h> | ||
|
||
#endif /* CONFIG_CRYPTO_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters