Home | History | Annotate | Download | only in asn1

Lines Matching full:fld

70 static int asn1_item_print_nm(BIO *out, void *fld, int indent, const ASN1_ITEM *it, const char *name);
72 int ASN1_item_print(BIO *out, void *fld, int indent, const ASN1_ITEM *it)
74 return asn1_item_print_nm(out, fld, indent, it, it->sname);
77 static int asn1_item_print_nm(BIO *out, void *fld, int indent, const ASN1_ITEM *it, const char *name)
83 if(!fld) {
91 return ASN1_template_print(out, fld, indent, it->templates);
92 return asn1_primitive_print(out, fld, it->utype, indent, name);
96 str = fld;
97 return asn1_primitive_print(out, fld, str->type, indent, name);
100 BIO_printf(out, "%*s%s:EXTERNAL TYPE %s %s\n", indent, "", name, it->sname, fld ? "" : "ABSENT");
103 BIO_printf(out, "%*s%s:COMPATIBLE TYPE %s %s\n", indent, "", name, it->sname, fld ? "" : "ABSENT");
109 i = asn1_get_choice_selector(fld, it);
116 tmpfld = asn1_get_field(fld, tt);
123 tmpfld = asn1_get_field(fld, tt);
134 int ASN1_template_print(BIO *out, void *fld, int indent, const ASN1_TEMPLATE *tt)
138 if(!fld) return 0;
147 if(fld) {
149 for(i = 0; i < sk_num(fld); i++) {
150 skitem = sk_value(fld, i);
158 return asn1_item_print_nm(out, fld, indent, tt->item, tt->field_name);
161 static int asn1_primitive_print(BIO *out, void *fld, long utype, int indent, const char *name)
163 ASN1_STRING *str = fld;
164 if(fld) {
166 int *bool = fld;
172 s = i2s_ASN1_INTEGER(NULL, fld);
187 ln = OBJ_nid2ln(OBJ_obj2nid(fld));
189 OBJ_obj2txt(objbuf, sizeof objbuf, fld, 1);