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