blob: 1e52388ed1a4c8bf56df9e345abc094ece22b74c [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
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
15asn_constr_check_f UTCTime_constraint;
16asn_struct_print_f UTCTime_print;
17
18/***********************
19 * Some handy helpers. *
20 ***********************/
21
22/* On error returns -1 and errno set to EINVAL */
23struct tm; /* <time.h> */
24time_t asn_UT2time(const UTCTime_t *, struct tm *_optional_tm4fill);
25
26#endif /* _UTCTime_H_ */