Lines Matching defs:tag
69 static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed,
73 static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed,
90 BIO_snprintf(str, sizeof str, "priv [ %d ] ", tag);
92 BIO_snprintf(str, sizeof str, "cont [ %d ]", tag);
94 BIO_snprintf(str, sizeof str, "appl [ %d ]", tag);
95 else if (tag > 30)
96 BIO_snprintf(str, sizeof str, "<ASN1 %d>", tag);
98 p = ASN1_tag2str(tag);
123 int tag, xclass, ret = 0;
146 j = ASN1_get_object(&p, &len, &tag, &xclass, length);
173 if (!asn1_print_info(bp, tag, xclass, j, (indent) ? depth : 0))
221 if ((tag == V_ASN1_PRINTABLESTRING) ||
222 (tag == V_ASN1_T61STRING) ||
223 (tag == V_ASN1_IA5STRING) ||
224 (tag == V_ASN1_VISIBLESTRING) ||
225 (tag == V_ASN1_NUMERICSTRING) ||
226 (tag == V_ASN1_UTF8STRING) ||
227 (tag == V_ASN1_UTCTIME) || (tag == V_ASN1_GENERALIZEDTIME)) {
233 } else if (tag == V_ASN1_OBJECT) {
243 } else if (tag == V_ASN1_BOOLEAN) {
253 } else if (tag == V_ASN1_BMPSTRING) {
255 } else if (tag == V_ASN1_OCTET_STRING) {
313 } else if (tag == V_ASN1_INTEGER) {
338 } else if (tag == V_ASN1_ENUMERATED) {
380 if ((tag == V_ASN1_EOC) && (xclass == 0)) {
397 const char *ASN1_tag2str(int tag)
418 if ((tag == V_ASN1_NEG_INTEGER) || (tag == V_ASN1_NEG_ENUMERATED))
419 tag &= ~0x100;
421 if (tag < 0 || tag > 30)
423 return tag2str[tag];