aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/UTCTime.h
blob: 1e52388ed1a4c8bf56df9e345abc094ece22b74c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*-
 * Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
 * Redistribution and modifications are permitted subject to BSD license.
 */
#ifndef	_UTCTime_H_
#define	_UTCTime_H_

#include <constr_TYPE.h>
#include <OCTET_STRING.h>

typedef OCTET_STRING_t UTCTime_t;  /* Implemented using OCTET STRING */

extern asn1_TYPE_descriptor_t asn1_DEF_UTCTime;

asn_constr_check_f UTCTime_constraint;
asn_struct_print_f UTCTime_print;

/***********************
 * Some handy helpers. *
 ***********************/

/* On error returns -1 and errno set to EINVAL */
struct tm;	/* <time.h> */
time_t asn_UT2time(const UTCTime_t *, struct tm *_optional_tm4fill);

#endif	/* _UTCTime_H_ */