Lines Matching defs:tag
65 static int asn1_print_info(BIO *bp, int tag, int xclass,int constructed,
69 static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed,
85 BIO_snprintf(str,sizeof str,"priv [ %d ] ",tag);
87 BIO_snprintf(str,sizeof str,"cont [ %d ]",tag);
89 BIO_snprintf(str,sizeof str,"appl [ %d ]",tag);
90 else if (tag > 30)
91 BIO_snprintf(str,sizeof str,"<ASN1 %d>",tag);
93 p = ASN1_tag2str(tag);
117 int tag,xclass,ret=0;
135 j=ASN1_get_object(&p,&len,&tag,&xclass,length);
164 if (!asn1_print_info(bp,tag,xclass,j,(indent)?depth:0))
205 if ( (tag == V_ASN1_PRINTABLESTRING) ||
206 (tag == V_ASN1_T61STRING) ||
207 (tag == V_ASN1_IA5STRING) ||
208 (tag == V_ASN1_VISIBLESTRING) ||
209 (tag == V_ASN1_NUMERICSTRING) ||
210 (tag == V_ASN1_UTF8STRING) ||
211 (tag == V_ASN1_UTCTIME) ||
212 (tag == V_ASN1_GENERALIZEDTIME))
220 else if (tag == V_ASN1_OBJECT)
234 else if (tag == V_ASN1_BOOLEAN)
247 else if (tag == V_ASN1_BMPSTRING)
251 else if (tag == V_ASN1_OCTET_STRING)
319 else if (tag == V_ASN1_INTEGER)
351 else if (tag == V_ASN1_ENUMERATED)
402 if ((tag == V_ASN1_EOC) && (xclass == 0))
418 const char *ASN1_tag2str(int tag)
431 if((tag == V_ASN1_NEG_INTEGER) || (tag == V_ASN1_NEG_ENUMERATED))
432 tag &= ~0x100;
434 if(tag < 0 || tag > 30) return "(unknown)";
435 return tag2str[tag];