summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/x509.h
diff options
context:
space:
mode:
authorMichael Brown2012-03-19 23:49:09 +0100
committerMichael Brown2012-03-20 00:07:15 +0100
commit0610bcb1d2876d9e71ced51ed44c4e8854eefb33 (patch)
tree9e992daa8ba8dd3825a1cae52641d4f6ebe66946 /src/include/ipxe/x509.h
parent[tls] Include current time within the client random bytes (diff)
downloadipxe-0610bcb1d2876d9e71ced51ed44c4e8854eefb33.tar.gz
ipxe-0610bcb1d2876d9e71ced51ed44c4e8854eefb33.tar.xz
ipxe-0610bcb1d2876d9e71ced51ed44c4e8854eefb33.zip
[tls] Parse X.509 validity times into seconds since the Epoch
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/x509.h')
-rw-r--r--src/include/ipxe/x509.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/include/ipxe/x509.h b/src/include/ipxe/x509.h
index 4da4539f..f290a76e 100644
--- a/src/include/ipxe/x509.h
+++ b/src/include/ipxe/x509.h
@@ -11,6 +11,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <stdint.h>
#include <stddef.h>
+#include <time.h>
#include <ipxe/asn1.h>
/** ASN.1 OID for joint-iso-itu-t(2) ds(5) attributeType(4) */
@@ -70,18 +71,8 @@ struct x509_issuer {
/** An X.509 time */
struct x509_time {
- /** Year */
- uint16_t year;
- /** Month */
- uint8_t month;
- /** Day */
- uint8_t day;
- /** Hour */
- uint8_t hour;
- /** Minute */
- uint8_t minute;
- /** Second */
- uint8_t second;
+ /** Seconds since the Epoch */
+ time_t time;
};
/** An X.509 certificate validity period */