From 88c09b36cfefc037cca7c409423b14d8c556e3be Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 13 May 2012 23:38:56 +0100 Subject: [crypto] Generalise x509_parse_time() to asn1_generalized_time() Signed-off-by: Michael Brown --- src/include/ipxe/asn1.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include') diff --git a/src/include/ipxe/asn1.h b/src/include/ipxe/asn1.h index 1c433c5e7..38f0e5b01 100644 --- a/src/include/ipxe/asn1.h +++ b/src/include/ipxe/asn1.h @@ -10,6 +10,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include +#include #include /** 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 */ -- cgit v1.2.3-55-g7522