aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2012-05-13 23:38:56 +0100
committerMichael Brown <mcb30@ipxe.org>2012-05-14 00:20:25 +0100
commit88c09b36cfefc037cca7c409423b14d8c556e3be (patch)
treef687d34679f4b96fec2ceb1507e818350bfb16d1 /src/include/ipxe
parente5858c1938147a052c72357aacfa01b0b6d67d0f (diff)
downloadipxe-88c09b36cfefc037cca7c409423b14d8c556e3be.zip
ipxe-88c09b36cfefc037cca7c409423b14d8c556e3be.tar.gz
ipxe-88c09b36cfefc037cca7c409423b14d8c556e3be.tar.bz2
[crypto] Generalise x509_parse_time() to asn1_generalized_time()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/asn1.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ipxe/asn1.h b/src/include/ipxe/asn1.h
index 1c433c5..38f0e5b 100644
--- a/src/include/ipxe/asn1.h
+++ b/src/include/ipxe/asn1.h
@@ -10,6 +10,7 @@
FILE_LICENCE ( GPL2_OR_LATER );
#include <stdint.h>
+#include <time.h>
#include <ipxe/tables.h>
/** An ASN.1 object cursor */
@@ -239,5 +240,7 @@ extern int asn1_compare ( const struct asn1_cursor *cursor1,
const struct asn1_cursor *cursor2 );
extern struct asn1_algorithm *
asn1_algorithm ( const struct asn1_cursor *cursor );
+extern int asn1_generalized_time ( const struct asn1_cursor *cursor,
+ time_t *time );
#endif /* _IPXE_ASN1_H */