Lines Matching refs: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,
91 BIO_snprintf(str, sizeof str, "priv [ %d ] ", tag);
93 BIO_snprintf(str, sizeof str, "cont [ %d ]", tag);
95 BIO_snprintf(str, sizeof str, "appl [ %d ]", tag);
96 else if (tag > 30)
97 BIO_snprintf(str, sizeof str, "<ASN1 %d>", tag);
99 p = ASN1_tag2str(tag);
102 if (BIO_printf(bp, fmt2, tag, p2) <= 0)
129 int tag, xclass, ret = 0;
152 j = ASN1_get_object(&p, &len, &tag, &xclass, length);
179 if (!asn1_print_info(bp, tag, xclass, j, (indent) ? depth : 0))
218 if ((tag == V_ASN1_PRINTABLESTRING) ||
219 (tag == V_ASN1_T61STRING) ||
220 (tag == V_ASN1_IA5STRING) ||
221 (tag == V_ASN1_VISIBLESTRING) ||
222 (tag == V_ASN1_NUMERICSTRING) ||
223 (tag == V_ASN1_UTF8STRING) ||
224 (tag == V_ASN1_UTCTIME) || (tag == V_ASN1_GENERALIZEDTIME)) {
230 } else if (tag == V_ASN1_OBJECT) {
240 } else if (tag == V_ASN1_BOOLEAN) {
250 } else if (tag == V_ASN1_BMPSTRING) {
252 } else if (tag == V_ASN1_OCTET_STRING) {
310 } else if (tag == V_ASN1_INTEGER) {
335 } else if (tag == V_ASN1_ENUMERATED) {
377 if ((tag == V_ASN1_EOC) && (xclass == 0)) {
394 const char *ASN1_tag2str(int tag)
415 if ((tag == V_ASN1_NEG_INTEGER) || (tag == V_ASN1_NEG_ENUMERATED))
416 tag &= ~0x100;
418 if (tag < 0 || tag > 30)
420 return tag2str[tag];