blob: 8035b3456161fcf827633b969c7e60251d28f3a5 [file] [log] [blame]
Harald Welte92c45f32010-06-12 18:59:38 +02001/*-
2 * Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
4 */
5#ifndef _UTCTime_H_
6#define _UTCTime_H_
7
8#include <OCTET_STRING.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14typedef OCTET_STRING_t UTCTime_t; /* Implemented via OCTET STRING */
15
16extern asn_TYPE_descriptor_t asn_DEF_UTCTime;
17
18asn_struct_print_f UTCTime_print;
19asn_constr_check_f UTCTime_constraint;
20xer_type_encoder_f UTCTime_encode_xer;
21
22/***********************
23 * Some handy helpers. *
24 ***********************/
25
26struct tm; /* <time.h> */
27
28/* See asn_GT2time() in GeneralizedTime.h */
29time_t asn_UT2time(const UTCTime_t *, struct tm *_optional_tm4fill, int as_gmt);
30
31/* See asn_time2GT() in GeneralizedTime.h */
32UTCTime_t *asn_time2UT(UTCTime_t *__opt_ut, const struct tm *, int force_gmt);
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif /* _UTCTime_H_ */