diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-03-19 22:49:09 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-03-19 23:07:15 +0000 |
commit | 0610bcb1d2876d9e71ced51ed44c4e8854eefb33 (patch) | |
tree | 9e992daa8ba8dd3825a1cae52641d4f6ebe66946 /src/include/ipxe/x509.h | |
parent | 5da712385e07f0965a3f7548933c2bd3c4f254f6 (diff) | |
download | ipxe-0610bcb1d2876d9e71ced51ed44c4e8854eefb33.tar.gz |
[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.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/include/ipxe/x509.h b/src/include/ipxe/x509.h index 4da4539f2..f290a76e3 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 */ |