blob: b026deddb8a93b65678239d8a49bcc62ddbba8ea [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
8#include <constr_TYPE.h>
9#include <OCTET_STRING.h>
10
11typedef OCTET_STRING_t UTCTime_t; /* Implemented using OCTET STRING */
12
13extern asn1_TYPE_descriptor_t asn1_DEF_UTCTime;
14
Lev Walkinf15320b2004-06-03 03:38:44 +000015asn_struct_print_f UTCTime_print;
Lev Walkina9cc46e2004-09-22 16:06:28 +000016asn_constr_check_f UTCTime_constraint;
17xer_type_encoder_f UTCTime_encode_xer;
Lev Walkinf15320b2004-06-03 03:38:44 +000018
19/***********************
20 * Some handy helpers. *
21 ***********************/
22
Lev Walkinf15320b2004-06-03 03:38:44 +000023struct tm; /* <time.h> */
Lev Walkin0aca3852004-08-07 03:51:43 +000024
25/* See asn_GT2time() in GeneralizedTime.h */
26time_t asn_UT2time(const UTCTime_t *, struct tm *_optional_tm4fill, int as_gmt);
27
28/* See asn_time2GT() in GeneralizedTime.h */
29UTCTime_t *asn_time2UT(UTCTime_t *__opt_ut, const struct tm *, int force_gmt);
Lev Walkinf15320b2004-06-03 03:38:44 +000030
31#endif /* _UTCTime_H_ */