Vanetza
 
Loading...
Searching...
No Matches
CertificateType.c
1/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "IEEE1609dot2"
4 * found in "asn1/IEEE1609dot2.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R`
6 */
7
8#include "CertificateType.h"
9
10/*
11 * This type is implemented using NativeEnumerated,
12 * so here we adjust the DEF accordingly.
13 */
14#if !defined(ASN_DISABLE_OER_SUPPORT)
15static asn_oer_constraints_t asn_OER_type_CertificateType_constr_1 CC_NOTUSED = {
16 { 0, 0 },
17 -1};
18#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
19#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
20asn_per_constraints_t asn_PER_type_CertificateType_constr_1 CC_NOTUSED = {
21 { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */,
22 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
23 0, 0 /* No PER value map */
24};
25#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
26static const asn_INTEGER_enum_map_t asn_MAP_CertificateType_value2enum_1[] = {
27 { 0, 8, "explicit" },
28 { 1, 8, "implicit" }
29 /* This list is extensible */
30};
31static const unsigned int asn_MAP_CertificateType_enum2value_1[] = {
32 0, /* explicit(0) */
33 1 /* implicit(1) */
34 /* This list is extensible */
35};
36const asn_INTEGER_specifics_t asn_SPC_CertificateType_specs_1 = {
37 asn_MAP_CertificateType_value2enum_1, /* "tag" => N; sorted by tag */
38 asn_MAP_CertificateType_enum2value_1, /* N => "tag"; sorted by N */
39 2, /* Number of elements in the maps */
40 3, /* Extensions before this member */
41 1, /* Strict enumeration */
42 0, /* Native long size */
43 0
44};
45static const ber_tlv_tag_t asn_DEF_CertificateType_tags_1[] = {
46 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
47};
48asn_TYPE_descriptor_t asn_DEF_CertificateType = {
49 "CertificateType",
50 "CertificateType",
51 &asn_OP_NativeEnumerated,
52 asn_DEF_CertificateType_tags_1,
53 sizeof(asn_DEF_CertificateType_tags_1)
54 /sizeof(asn_DEF_CertificateType_tags_1[0]), /* 1 */
55 asn_DEF_CertificateType_tags_1, /* Same as above */
56 sizeof(asn_DEF_CertificateType_tags_1)
57 /sizeof(asn_DEF_CertificateType_tags_1[0]), /* 1 */
58 {
59#if !defined(ASN_DISABLE_OER_SUPPORT)
60 &asn_OER_type_CertificateType_constr_1,
61#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
62#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
63 &asn_PER_type_CertificateType_constr_1,
64#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
65 NativeEnumerated_constraint
66 },
67 0, 0, /* Defined elsewhere */
68 &asn_SPC_CertificateType_specs_1 /* Additional specs */
69};
70