blob: 1e52388ed1a4c8bf56df9e345abc094ece22b74c [file] [log] [blame]
/*-
* 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_ */