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,
86 BIO_snprintf(str,sizeof str,"priv [ %d ] ",tag);
88 BIO_snprintf(str,sizeof str,"cont [ %d ]",tag);
90 BIO_snprintf(str,sizeof str,"appl [ %d ]",tag);
91 else if (tag > 30)
92 BIO_snprintf(str,sizeof str,"<ASN1 %d>",tag);
94 p = ASN1_tag2str(tag);
98 if (BIO_printf(bp,fmt2,tag,p2) <= 0) goto err;
124 int tag,xclass,ret=0;
142 j=ASN1_get_object(&p,&len,&tag,&xclass,length);
171 if (!asn1_print_info(bp,tag,xclass,j,(indent)?depth:0))
212 if ( (tag == V_ASN1_PRINTABLESTRING) ||
213 (tag == V_ASN1_T61STRING) ||
214 (tag == V_ASN1_IA5STRING) ||
215 (tag == V_ASN1_VISIBLESTRING) ||
216 (tag == V_ASN1_UTCTIME) ||
217 (tag == V_ASN1_GENERALIZEDTIME))
225 else if (tag == V_ASN1_OBJECT)
239 else if (tag == V_ASN1_BOOLEAN)
252 else if (tag == V_ASN1_BMPSTRING)
256 else if (tag == V_ASN1_OCTET_STRING)
324 else if (tag == V_ASN1_INTEGER)
356 else if (tag == V_ASN1_ENUMERATED)
407 if ((tag == V_ASN1_EOC) && (xclass == 0))
423 const char *ASN1_tag2str(int tag)
436 if((tag == V_ASN1_NEG_INTEGER) || (tag == V_ASN1_NEG_ENUMERATED))
437 tag &= ~0x100;
439 if(tag < 0 || tag > 30) return "(unknown)";
440 return tag2str[tag];