DG1.c 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 "DG1.h"
  8. static asn_TYPE_member_t asn_MBR_DG1_1[] = {
  9. { ATF_NOFLAGS, 0, offsetof(struct DG1, mrz),
  10. (ASN_TAG_CLASS_APPLICATION | (31 << 2)),
  11. -1, /* IMPLICIT tag at current level */
  12. &asn_DEF_MRZ,
  13. 0,
  14. { 0, 0, 0 },
  15. 0, 0, /* No default value */
  16. "mrz"
  17. },
  18. };
  19. static const ber_tlv_tag_t asn_DEF_DG1_tags_1[] = {
  20. (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
  21. (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
  22. };
  23. static const asn_TYPE_tag2member_t asn_MAP_DG1_tag2el_1[] = {
  24. { (ASN_TAG_CLASS_APPLICATION | (31 << 2)), 0, 0, 0 } /* mrz */
  25. };
  26. static asn_SEQUENCE_specifics_t asn_SPC_DG1_specs_1 = {
  27. sizeof(struct DG1),
  28. offsetof(struct DG1, _asn_ctx),
  29. asn_MAP_DG1_tag2el_1,
  30. 1, /* Count of tags in the map */
  31. 0, 0, 0, /* Optional elements (not needed) */
  32. -1, /* First extension addition */
  33. };
  34. asn_TYPE_descriptor_t asn_DEF_DG1 = {
  35. "DG1",
  36. "DG1",
  37. &asn_OP_SEQUENCE,
  38. asn_DEF_DG1_tags_1,
  39. sizeof(asn_DEF_DG1_tags_1)
  40. /sizeof(asn_DEF_DG1_tags_1[0]) - 1, /* 1 */
  41. asn_DEF_DG1_tags_1, /* Same as above */
  42. sizeof(asn_DEF_DG1_tags_1)
  43. /sizeof(asn_DEF_DG1_tags_1[0]), /* 2 */
  44. { 0, 0, SEQUENCE_constraint },
  45. asn_MBR_DG1_1,
  46. 1, /* Elements count */
  47. &asn_SPC_DG1_specs_1 /* Additional specs */
  48. };