[settings] Add "unixtime" builtin setting to expose the current time
authorMichael Brown <mcb30@ipxe.org>
Thu, 26 Jan 2017 11:39:25 +0000 (11:39 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 26 Jan 2017 12:26:54 +0000 (12:26 +0000)
commit41f786cc0a392c238068919709a63985134bb9b1
tree1ac9e7b321eeb5156836c1d625b2cf7eb3457e5a
parent0bfe9f53426242e2b932ed51ed694f5e77fead9a
[settings] Add "unixtime" builtin setting to expose the current time

Expose the current wall-clock time (in seconds since the Epoch), since
this is often useful in captured boot logs and can also be useful when
checking unexpected X.509 certificate validation failures.

Use a :uint32 setting to avoid Y2K38 rollover, thereby ensuring that
this will eventually be somebody else's problem.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/settings.c