ITS
SignerInfo.c
Go to the documentation of this file.
1 /*
2  * Generated by asn1c-0.9.27 (http://lionet.info/asn1c)
3  * From ASN.1 module "Secured-Pdu-Descriptions"
4  * found in "Secured.asn"
5  */
6 
7 #include "SignerInfo.h"
8 
9 static asn_per_constraints_t asn_PER_type_signer_info_constr_3 GCC_NOTUSED = {
10  { APC_CONSTRAINED, 3, 3, 0, 5 } /* (0..5) */,
11  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
12  0, 0 /* No PER value map */
13 };
15  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
16  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
17 };
19  sizeof(struct self),
20  offsetof(struct self, _asn_ctx),
21  0, /* No top level tags */
22  0, /* No tags in the map */
23  0, 0, 0, /* Optional elements (not needed) */
24  -1, /* Start extensions */
25  -1 /* Stop extensions */
26 };
27 static /* Use -fall-defs-global to expose */
29  "self",
30  "self",
40  0, /* Use generic outmost tag fetcher */
42  sizeof(asn_DEF_self_tags_4)
43  /sizeof(asn_DEF_self_tags_4[0]) - 1, /* 1 */
44  asn_DEF_self_tags_4, /* Same as above */
45  sizeof(asn_DEF_self_tags_4)
46  /sizeof(asn_DEF_self_tags_4[0]), /* 2 */
47  0, /* No PER visible constraints */
48  0, 0, /* No members */
49  &asn_SPC_self_specs_4 /* Additional specs */
50 };
51 
53  { ATF_NOFLAGS, 0, offsetof(struct certificate_digest_with_sha256, digest),
54  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
55  -1, /* IMPLICIT tag at current level */
57  0, /* Defer constraints checking to the member type */
58  0, /* No PER visible constraints */
59  0,
60  "digest"
61  },
62 };
64  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
65  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
66 };
68  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* digest */
69 };
71  sizeof(struct certificate_digest_with_sha256),
72  offsetof(struct certificate_digest_with_sha256, _asn_ctx),
74  1, /* Count of tags in the map */
75  0, 0, 0, /* Optional elements (not needed) */
76  -1, /* Start extensions */
77  -1 /* Stop extensions */
78 };
79 static /* Use -fall-defs-global to expose */
81  "certificate-digest-with-sha256",
82  "certificate-digest-with-sha256",
92  0, /* Use generic outmost tag fetcher */
95  /sizeof(asn_DEF_certificate_digest_with_sha256_tags_5[0]) - 1, /* 1 */
99  0, /* No PER visible constraints */
101  1, /* Elements count */
102  &asn_SPC_certificate_digest_with_sha256_specs_5 /* Additional specs */
103 };
104 
106  { ATF_POINTER, 0, offsetof(struct certificate, certif),
107  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
108  -1, /* IMPLICIT tag at current level */
110  0, /* Defer constraints checking to the member type */
111  0, /* No PER visible constraints */
112  0,
113  "certif"
114  },
115 };
117  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
118  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
119 };
121  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* certif */
122 };
124  sizeof(struct certificate),
125  offsetof(struct certificate, _asn_ctx),
127  1, /* Count of tags in the map */
128  0, 0, 0, /* Optional elements (not needed) */
129  -1, /* Start extensions */
130  -1 /* Stop extensions */
131 };
132 static /* Use -fall-defs-global to expose */
134  "certificate",
135  "certificate",
145  0, /* Use generic outmost tag fetcher */
148  /sizeof(asn_DEF_certificate_tags_7[0]) - 1, /* 1 */
149  asn_DEF_certificate_tags_7, /* Same as above */
151  /sizeof(asn_DEF_certificate_tags_7[0]), /* 2 */
152  0, /* No PER visible constraints */
154  1, /* Elements count */
155  &asn_SPC_certificate_specs_7 /* Additional specs */
156 };
157 
159  { ATF_POINTER, 0, 0,
160  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
161  0,
163  0, /* Defer constraints checking to the member type */
164  0, /* No PER visible constraints */
165  0,
166  ""
167  },
168 };
170  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
171  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
172 };
174  sizeof(struct certificates),
175  offsetof(struct certificates, _asn_ctx),
176  0, /* XER encoding is XMLDelimitedItemList */
177 };
178 static /* Use -fall-defs-global to expose */
180  "certificates",
181  "certificates",
191  0, /* Use generic outmost tag fetcher */
194  /sizeof(asn_DEF_certificates_tags_10[0]) - 1, /* 1 */
195  asn_DEF_certificates_tags_10, /* Same as above */
197  /sizeof(asn_DEF_certificates_tags_10[0]), /* 2 */
198  0, /* No PER visible constraints */
200  1, /* Single element */
201  &asn_SPC_certificates_specs_10 /* Additional specs */
202 };
203 
205  { ATF_NOFLAGS, 0, offsetof(struct certificate_chain, certificates),
206  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
207  0,
209  0, /* Defer constraints checking to the member type */
210  0, /* No PER visible constraints */
211  0,
212  "certificates"
213  },
214 };
216  (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
217  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
218 };
220  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* certificates */
221 };
223  sizeof(struct certificate_chain),
224  offsetof(struct certificate_chain, _asn_ctx),
226  1, /* Count of tags in the map */
227  0, 0, 0, /* Optional elements (not needed) */
228  -1, /* Start extensions */
229  -1 /* Stop extensions */
230 };
231 static /* Use -fall-defs-global to expose */
233  "certificate-chain",
234  "certificate-chain",
244  0, /* Use generic outmost tag fetcher */
247  /sizeof(asn_DEF_certificate_chain_tags_9[0]) - 1, /* 1 */
248  asn_DEF_certificate_chain_tags_9, /* Same as above */
250  /sizeof(asn_DEF_certificate_chain_tags_9[0]), /* 2 */
251  0, /* No PER visible constraints */
253  1, /* Elements count */
254  &asn_SPC_certificate_chain_specs_9 /* Additional specs */
255 };
256 
258  { ATF_NOFLAGS, 0, offsetof(struct certificate_digest_with_other_algorithm, algorithm),
259  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
260  -1, /* IMPLICIT tag at current level */
262  0, /* Defer constraints checking to the member type */
263  0, /* No PER visible constraints */
264  0,
265  "algorithm"
266  },
267  { ATF_NOFLAGS, 0, offsetof(struct certificate_digest_with_other_algorithm, digest),
268  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
269  -1, /* IMPLICIT tag at current level */
271  0, /* Defer constraints checking to the member type */
272  0, /* No PER visible constraints */
273  0,
274  "digest"
275  },
276 };
278  (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
279  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
280 };
282  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* algorithm */
283  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* digest */
284 };
286  sizeof(struct certificate_digest_with_other_algorithm),
287  offsetof(struct certificate_digest_with_other_algorithm, _asn_ctx),
289  2, /* Count of tags in the map */
290  0, 0, 0, /* Optional elements (not needed) */
291  -1, /* Start extensions */
292  -1 /* Stop extensions */
293 };
294 static /* Use -fall-defs-global to expose */
296  "certificate-digest-with-other-algorithm",
297  "certificate-digest-with-other-algorithm",
307  0, /* Use generic outmost tag fetcher */
314  0, /* No PER visible constraints */
316  2, /* Elements count */
318 };
319 
321  { ATF_NOFLAGS, 0, offsetof(struct unknown_signer_info, info),
322  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
323  -1, /* IMPLICIT tag at current level */
325  0, /* Defer constraints checking to the member type */
326  0, /* No PER visible constraints */
327  0,
328  "info"
329  },
330 };
332  (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
333  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
334 };
336  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* info */
337 };
339  sizeof(struct unknown_signer_info),
340  offsetof(struct unknown_signer_info, _asn_ctx),
342  1, /* Count of tags in the map */
343  0, 0, 0, /* Optional elements (not needed) */
344  -1, /* Start extensions */
345  -1 /* Stop extensions */
346 };
347 static /* Use -fall-defs-global to expose */
349  "unknown-signer-info",
350  "unknown-signer-info",
360  0, /* Use generic outmost tag fetcher */
363  /sizeof(asn_DEF_unknown_signer_info_tags_15[0]) - 1, /* 1 */
364  asn_DEF_unknown_signer_info_tags_15, /* Same as above */
366  /sizeof(asn_DEF_unknown_signer_info_tags_15[0]), /* 2 */
367  0, /* No PER visible constraints */
369  1, /* Elements count */
370  &asn_SPC_unknown_signer_info_specs_15 /* Additional specs */
371 };
372 
374  { ATF_NOFLAGS, 0, offsetof(struct signer_info, choice.self),
375  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
376  0,
378  0, /* Defer constraints checking to the member type */
379  0, /* No PER visible constraints */
380  0,
381  "self"
382  },
383  { ATF_NOFLAGS, 0, offsetof(struct signer_info, choice.certificate_digest_with_sha256),
384  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
385  0,
387  0, /* Defer constraints checking to the member type */
388  0, /* No PER visible constraints */
389  0,
390  "certificate-digest-with-sha256"
391  },
392  { ATF_NOFLAGS, 0, offsetof(struct signer_info, choice.certificate),
393  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
394  0,
396  0, /* Defer constraints checking to the member type */
397  0, /* No PER visible constraints */
398  0,
399  "certificate"
400  },
401  { ATF_NOFLAGS, 0, offsetof(struct signer_info, choice.certificate_chain),
402  (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
403  0,
405  0, /* Defer constraints checking to the member type */
406  0, /* No PER visible constraints */
407  0,
408  "certificate-chain"
409  },
410  { ATF_NOFLAGS, 0, offsetof(struct signer_info, choice.certificate_digest_with_other_algorithm),
411  (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
412  0,
414  0, /* Defer constraints checking to the member type */
415  0, /* No PER visible constraints */
416  0,
417  "certificate-digest-with-other-algorithm"
418  },
419  { ATF_NOFLAGS, 0, offsetof(struct signer_info, choice.unknown_signer_info),
420  (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
421  0,
423  0, /* Defer constraints checking to the member type */
424  0, /* No PER visible constraints */
425  0,
426  "unknown-signer-info"
427  },
428 };
430  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* self */
431  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* certificate-digest-with-sha256 */
432  { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* certificate */
433  { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* certificate-chain */
434  { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* certificate-digest-with-other-algorithm */
435  { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* unknown-signer-info */
436 };
438  sizeof(struct signer_info),
439  offsetof(struct signer_info, _asn_ctx),
440  offsetof(struct signer_info, present),
441  sizeof(((struct signer_info *)0)->present),
443  6, /* Count of tags in the map */
444  0,
445  -1 /* Extensions start */
446 };
447 static /* Use -fall-defs-global to expose */
449  "signer-info",
450  "signer-info",
451  CHOICE_free,
452  CHOICE_print,
461  0, /* No effective tags (pointer) */
462  0, /* No effective tags (count) */
463  0, /* No tags (pointer) */
464  0, /* No tags (count) */
465  &asn_PER_type_signer_info_constr_3,
467  6, /* Elements count */
468  &asn_SPC_signer_info_specs_3 /* Additional specs */
469 };
470 
472  { ATF_NOFLAGS, 0, offsetof(struct SignerInfo, type),
473  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
474  -1, /* IMPLICIT tag at current level */
476  0, /* Defer constraints checking to the member type */
477  0, /* No PER visible constraints */
478  0,
479  "type"
480  },
481  { ATF_NOFLAGS, 0, offsetof(struct SignerInfo, signer_info),
482  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
483  +1, /* EXPLICIT tag at current level */
485  0, /* Defer constraints checking to the member type */
486  0, /* No PER visible constraints */
487  0,
488  "signer-info"
489  },
490 };
492  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
493 };
495  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* type */
496  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* signer-info */
497 };
499  sizeof(struct SignerInfo),
500  offsetof(struct SignerInfo, _asn_ctx),
502  2, /* Count of tags in the map */
503  0, 0, 0, /* Optional elements (not needed) */
504  -1, /* Start extensions */
505  -1 /* Stop extensions */
506 };
508  "SignerInfo",
509  "SignerInfo",
519  0, /* Use generic outmost tag fetcher */
522  /sizeof(asn_DEF_SignerInfo_tags_1[0]), /* 1 */
523  asn_DEF_SignerInfo_tags_1, /* Same as above */
525  /sizeof(asn_DEF_SignerInfo_tags_1[0]), /* 1 */
526  0, /* No PER visible constraints */
528  2, /* Elements count */
529  &asn_SPC_SignerInfo_specs_1 /* Additional specs */
530 };
531 
static asn_TYPE_tag2member_t asn_MAP_unknown_signer_info_tag2el_15[]
Definition: SignerInfo.c:335
static ber_tlv_tag_t asn_DEF_SignerInfo_tags_1[]
Definition: SignerInfo.c:491
#define offsetof(s, m)
Definition: asn_system.h:115
#define SEQUENCE_OF_decode_xer
#define SEQUENCE_OF_decode_ber
#define SEQUENCE_OF_constraint
asn_struct_print_f CHOICE_print
Definition: constr_CHOICE.h:43
static asn_SEQUENCE_specifics_t asn_SPC_self_specs_4
Definition: SignerInfo.c:18
static asn_SEQUENCE_specifics_t asn_SPC_SignerInfo_specs_1
Definition: SignerInfo.c:498
static asn_SET_OF_specifics_t asn_SPC_certificates_specs_10
Definition: SignerInfo.c:173
static Certificate_t certificate[NSECURE_FIELDS]
ber_type_decoder_f SEQUENCE_decode_ber
static asn_TYPE_member_t asn_MBR_certificate_digest_with_other_algorithm_12[]
Definition: SignerInfo.c:257
asn_struct_ctx_t _asn_ctx
Definition: SignerInfo.h:95
static asn_TYPE_tag2member_t asn_MAP_certificate_chain_tag2el_9[]
Definition: SignerInfo.c:219
static asn_TYPE_descriptor_t asn_DEF_unknown_signer_info_15
Definition: SignerInfo.c:348
xer_type_encoder_f SEQUENCE_OF_encode_xer
static asn_TYPE_member_t asn_MBR_SignerInfo_1[]
Definition: SignerInfo.c:471
asn_TYPE_descriptor_t asn_DEF_PublicKeyAlgorithm
static asn_TYPE_member_t asn_MBR_certificate_digest_with_sha256_5[]
Definition: SignerInfo.c:52
der_type_encoder_f SEQUENCE_encode_der
asn_constr_check_f CHOICE_constraint
Definition: constr_CHOICE.h:44
static asn_TYPE_member_t asn_MBR_certificate_7[]
Definition: SignerInfo.c:105
static asn_SEQUENCE_specifics_t asn_SPC_certificate_digest_with_sha256_specs_5
Definition: SignerInfo.c:70
asn_TYPE_descriptor_t asn_DEF_Certificate
Definition: Certificate.c:177
#define SEQUENCE_OF_free
static asn_TYPE_member_t asn_MBR_signer_info_3[]
Definition: SignerInfo.c:373
asn_TYPE_descriptor_t asn_DEF_HashedId8
Definition: HashedId8.c:124
static ber_tlv_tag_t asn_DEF_certificate_chain_tags_9[]
Definition: SignerInfo.c:215
#define SEQUENCE_OF_decode_uper
ber_type_decoder_f CHOICE_decode_ber
Definition: constr_CHOICE.h:45
static asn_TYPE_member_t asn_MBR_unknown_signer_info_15[]
Definition: SignerInfo.c:320
asn_struct_print_f SEQUENCE_print
static ber_tlv_tag_t asn_DEF_certificates_tags_10[]
Definition: SignerInfo.c:169
per_type_decoder_f SEQUENCE_decode_uper
per_type_encoder_f SEQUENCE_encode_uper
static asn_TYPE_tag2member_t asn_MAP_certificate_digest_with_sha256_tag2el_5[]
Definition: SignerInfo.c:67
static asn_TYPE_tag2member_t asn_MAP_signer_info_tag2el_3[]
Definition: SignerInfo.c:429
asn_constr_check_f SEQUENCE_constraint
asn_TYPE_descriptor_t asn_DEF_Opaque
Definition: Opaque.c:45
xer_type_decoder_f SEQUENCE_decode_xer
der_type_encoder_f CHOICE_encode_der
Definition: constr_CHOICE.h:46
static ber_tlv_tag_t asn_DEF_certificate_digest_with_other_algorithm_tags_12[]
Definition: SignerInfo.c:277
static ber_tlv_tag_t asn_DEF_certificate_digest_with_sha256_tags_5[]
Definition: SignerInfo.c:63
per_type_decoder_f CHOICE_decode_uper
Definition: constr_CHOICE.h:49
static asn_TYPE_descriptor_t asn_DEF_signer_info_3
Definition: SignerInfo.c:448
asn_struct_free_f SEQUENCE_free
static asn_TYPE_member_t asn_MBR_certificate_chain_9[]
Definition: SignerInfo.c:204
static ber_tlv_tag_t asn_DEF_certificate_tags_7[]
Definition: SignerInfo.c:116
static asn_TYPE_descriptor_t asn_DEF_self_4
Definition: SignerInfo.c:28
xer_type_encoder_f CHOICE_encode_xer
Definition: constr_CHOICE.h:48
static asn_SEQUENCE_specifics_t asn_SPC_certificate_specs_7
Definition: SignerInfo.c:123
static asn_TYPE_member_t asn_MBR_certificates_10[]
Definition: SignerInfo.c:158
static asn_TYPE_descriptor_t asn_DEF_certificate_chain_9
Definition: SignerInfo.c:232
static asn_TYPE_tag2member_t asn_MAP_certificate_tag2el_7[]
Definition: SignerInfo.c:120
static asn_CHOICE_specifics_t asn_SPC_signer_info_specs_3
Definition: SignerInfo.c:437
static asn_per_constraints_t asn_PER_type_signer_info_constr_3 GCC_NOTUSED
Definition: SignerInfo.c:9
xer_type_decoder_f CHOICE_decode_xer
Definition: constr_CHOICE.h:47
asn_TYPE_descriptor_t asn_DEF_SignerInfoType
der_type_encoder_f SEQUENCE_OF_encode_der
static asn_TYPE_descriptor_t asn_DEF_certificates_10
Definition: SignerInfo.c:179
asn_TYPE_descriptor_t asn_DEF_SignerInfo
Definition: SignerInfo.c:507
per_type_encoder_f CHOICE_encode_uper
Definition: constr_CHOICE.h:50
asn_outmost_tag_f CHOICE_outmost_tag
Definition: constr_CHOICE.h:51
xer_type_encoder_f SEQUENCE_encode_xer
static asn_TYPE_descriptor_t asn_DEF_certificate_7
Definition: SignerInfo.c:133
static asn_TYPE_descriptor_t asn_DEF_certificate_digest_with_sha256_5
Definition: SignerInfo.c:80
static asn_SEQUENCE_specifics_t asn_SPC_certificate_digest_with_other_algorithm_specs_12
Definition: SignerInfo.c:285
static asn_TYPE_tag2member_t asn_MAP_certificate_digest_with_other_algorithm_tag2el_12[]
Definition: SignerInfo.c:281
static asn_SEQUENCE_specifics_t asn_SPC_unknown_signer_info_specs_15
Definition: SignerInfo.c:338
static asn_TYPE_descriptor_t asn_DEF_certificate_digest_with_other_algorithm_12
Definition: SignerInfo.c:295
#define SEQUENCE_OF_print
per_type_encoder_f SEQUENCE_OF_encode_uper
static asn_SEQUENCE_specifics_t asn_SPC_certificate_chain_specs_9
Definition: SignerInfo.c:222
static asn_TYPE_tag2member_t asn_MAP_SignerInfo_tag2el_1[]
Definition: SignerInfo.c:494
static ber_tlv_tag_t asn_DEF_self_tags_4[]
Definition: SignerInfo.c:14
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
static ber_tlv_tag_t asn_DEF_unknown_signer_info_tags_15[]
Definition: SignerInfo.c:331
asn_struct_free_f CHOICE_free
Definition: constr_CHOICE.h:42