• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/Heimdal-323.92.1/lib/asn1/

Lines Matching refs:choice

371 	    const struct asn1_template *choice = t->ptr;
372 int *element = DPO(data, choice->offset);
379 for (i = 1; i < A1_HEADER_LEN(choice) + 1; i++) {
380 /* should match first tag instead, store it in choice.tt */
381 ret = _asn1_decode(choice[i].ptr, 0, p, len,
382 DPO(data, choice[i].offset), &datalen);
388 _asn1_free_top(choice[i].ptr, DPO(data, choice[i].offset));
391 _asn1_free_top(choice[i].ptr, DPO(data, choice[i].offset));
393 if (i >= A1_HEADER_LEN(choice) + 1) {
394 if (choice->tt == 0)
399 DPO(data, choice->tt), &datalen);
666 const struct asn1_template *choice = t->ptr;
667 const int *element = DPOC(data, choice->offset);
671 if (*element == ASN1_CHOICE_INVALID || *element > (int)A1_HEADER_LEN(choice)) {
678 DPOC(data, choice->tt), &datalen);
680 choice += *element;
681 el = DPOC(data, choice->offset);
682 ret = _asn1_encode(choice->ptr, p, len, el, &datalen);
801 const struct asn1_template *choice = t->ptr;
802 const int *element = DPOC(data, choice->offset);
804 if (*element == ASN1_CHOICE_INVALID || *element > (int)A1_HEADER_LEN(choice)) {
810 ret += der_length_octet_string(DPOC(data, choice->tt));
812 choice += *element;
813 ret += _asn1_length(choice->ptr, DPOC(data, choice->offset));
909 const struct asn1_template *choice = t->ptr;
910 const int *element = DPOC(data, choice->offset);
915 if (*element > (int)A1_HEADER_LEN(choice)) {
921 der_free_octet_string(DPO(data, choice->tt));
923 choice += *element;
924 _asn1_free(choice->ptr, DPO(data, choice->offset));
1075 const struct asn1_template *choice = t->ptr;
1076 const int *felement = DPOC(from, choice->offset);
1077 int *telement = DPO(to, choice->offset);
1079 if (*felement == ASN1_CHOICE_INVALID || *felement > (int)A1_HEADER_LEN(choice))
1085 ret = der_copy_octet_string(DPOC(from, choice->tt), DPO(to, choice->tt));
1087 choice += *felement;
1088 ret = _asn1_copy(choice->ptr,
1089 DPOC(from, choice->offset),
1090 DPO(to, choice->offset));