COM.c 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  3. * From ASN.1 module "Passport"
  4. * found in "eMRTD.asn1"
  5. * `asn1c -D ./lib/asn1 -no-gen-example -pdu=all`
  6. */
  7. #include "COM.h"
  8. static asn_TYPE_member_t asn_MBR_COM_1[] = {
  9. { ATF_NOFLAGS, 0, offsetof(struct COM, ldsVersion),
  10. (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
  11. -1, /* IMPLICIT tag at current level */
  12. &asn_DEF_LDSVersion,
  13. 0,
  14. { 0, 0, 0 },
  15. 0, 0, /* No default value */
  16. "ldsVersion"
  17. },
  18. { ATF_NOFLAGS, 0, offsetof(struct COM, unicodeVersion),
  19. (ASN_TAG_CLASS_APPLICATION | (54 << 2)),
  20. -1, /* IMPLICIT tag at current level */
  21. &asn_DEF_UnicodeVersion,
  22. 0,
  23. { 0, 0, 0 },
  24. 0, 0, /* No default value */
  25. "unicodeVersion"
  26. },
  27. { ATF_NOFLAGS, 0, offsetof(struct COM, dataGroups),
  28. (ASN_TAG_CLASS_APPLICATION | (28 << 2)),
  29. -1, /* IMPLICIT tag at current level */
  30. &asn_DEF_DataGroups,
  31. 0,
  32. { 0, 0, 0 },
  33. 0, 0, /* No default value */
  34. "dataGroups"
  35. },
  36. };
  37. static const ber_tlv_tag_t asn_DEF_COM_tags_1[] = {
  38. (ASN_TAG_CLASS_APPLICATION | (0 << 2)),
  39. (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
  40. };
  41. static const asn_TYPE_tag2member_t asn_MAP_COM_tag2el_1[] = {
  42. { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 0, 0, 0 }, /* ldsVersion */
  43. { (ASN_TAG_CLASS_APPLICATION | (28 << 2)), 2, 0, 0 }, /* dataGroups */
  44. { (ASN_TAG_CLASS_APPLICATION | (54 << 2)), 1, 0, 0 } /* unicodeVersion */
  45. };
  46. static asn_SEQUENCE_specifics_t asn_SPC_COM_specs_1 = {
  47. sizeof(struct COM),
  48. offsetof(struct COM, _asn_ctx),
  49. asn_MAP_COM_tag2el_1,
  50. 3, /* Count of tags in the map */
  51. 0, 0, 0, /* Optional elements (not needed) */
  52. -1, /* First extension addition */
  53. };
  54. asn_TYPE_descriptor_t asn_DEF_COM = {
  55. "COM",
  56. "COM",
  57. &asn_OP_SEQUENCE,
  58. asn_DEF_COM_tags_1,
  59. sizeof(asn_DEF_COM_tags_1)
  60. /sizeof(asn_DEF_COM_tags_1[0]) - 1, /* 1 */
  61. asn_DEF_COM_tags_1, /* Same as above */
  62. sizeof(asn_DEF_COM_tags_1)
  63. /sizeof(asn_DEF_COM_tags_1[0]), /* 2 */
  64. { 0, 0, SEQUENCE_constraint },
  65. asn_MBR_COM_1,
  66. 3, /* Elements count */
  67. &asn_SPC_COM_specs_1 /* Additional specs */
  68. };