[crypto] Generalise x509_parse_time() to asn1_generalized_time()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2012-05-13 23:38:56 +01:00
parent e5858c1938
commit 88c09b36cf
3 changed files with 126 additions and 116 deletions

View File

@@ -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 */