Lines Matching defs:tag
68 const ASN1_ITEM *it, int tag, int aclass);
73 const ASN1_TEMPLATE *tt, int tag, int aclass);
127 const ASN1_ITEM *it, int tag, int aclass)
148 tag, aclass);
149 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass);
174 return ef->asn1_ex_i2d(pval, out, it, tag, aclass);
183 * Fixup for IMPLICIT tag: note this messes up for tags > 30, but so
186 if (out && (tag != -1))
187 *p = aclass | tag | (*p & V_ASN1_CONSTRUCTED);
207 if (tag == -1) {
208 tag = V_ASN1_SEQUENCE;
228 seqlen = ASN1_object_size(ndef, seqcontlen, tag);
232 ASN1_put_object(out, ndef, seqcontlen, tag, aclass);
263 const ASN1_TEMPLATE *tt, int tag, int iclass)
268 * Work out tag and class to use: tagging may come either from the
276 if (tag != -1)
280 ttag = tt->tag;
282 } else if (tag != -1) {
284 ttag = tag;
296 * At this point 'ttag' contains the outer tag to use, 'tclass' is the
325 * Work out inner tag value: if EXPLICIT or no tagging use underlying
348 /* If EXPLICIT need length of surrounding tag */
358 /* EXPLICIT tag */
361 /* SET or SEQUENCE and IMPLICIT tag */
381 /* Find length of EXPLICIT tag */
384 /* Output tag and item */
482 const ASN1_ITEM *it, int tag, int aclass)
499 * octets so don't include tag+length. We need to check here because the
519 /* If not implicitly tagged get tag from underlying type */
520 if (tag == -1)
521 tag = utype;
523 /* Output tag+length followed by content octets */
526 ASN1_put_object(out, ndef, len, tag, aclass);
535 return ASN1_object_size(ndef, len, tag);