blob: 8035b3456161fcf827633b969c7e60251d28f3a5 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001/*-
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
Lev Walkinf15320b2004-06-03 03:38:44 +00008#include <OCTET_STRING.h>
9
Lev Walkin21b41ac2005-07-24 09:03:44 +000010#ifdef __cplusplus
11extern "C" {
12#endif
13
Lev Walkin11c3e172004-09-24 21:00:50 +000014typedef OCTET_STRING_t UTCTime_t; /* Implemented via OCTET STRING */
Lev Walkinf15320b2004-06-03 03:38:44 +000015
Lev Walkin5e033762004-09-29 13:26:15 +000016extern asn_TYPE_descriptor_t asn_DEF_UTCTime;
Lev Walkinf15320b2004-06-03 03:38:44 +000017
Lev Walkinf15320b2004-06-03 03:38:44 +000018asn_struct_print_f UTCTime_print;
Lev Walkina9cc46e2004-09-22 16:06:28 +000019asn_constr_check_f UTCTime_constraint;
20xer_type_encoder_f UTCTime_encode_xer;
Lev Walkinf15320b2004-06-03 03:38:44 +000021
22/***********************
23 * Some handy helpers. *
24 ***********************/
25
Lev Walkinf15320b2004-06-03 03:38:44 +000026struct tm; /* <time.h> */
Lev Walkin0aca3852004-08-07 03:51:43 +000027
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);
Lev Walkinf15320b2004-06-03 03:38:44 +000033
Lev Walkin21b41ac2005-07-24 09:03:44 +000034#ifdef __cplusplus
35}
36#endif
37
Lev Walkinf15320b2004-06-03 03:38:44 +000038#endif /* _UTCTime_H_ */