aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/UTCTime.h
diff options
context:
space:
mode:
Diffstat (limited to 'skeletons/UTCTime.h')
-rw-r--r--skeletons/UTCTime.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/skeletons/UTCTime.h b/skeletons/UTCTime.h
new file mode 100644
index 00000000..1e52388e
--- /dev/null
+++ b/skeletons/UTCTime.h
@@ -0,0 +1,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_ */