Lines Matching refs:out
102 static int asn1_item_print_ctx(BIO *out, const ASN1_VALUE **fld, int indent,
107 static int asn1_template_print_ctx(BIO *out, const ASN1_VALUE **fld, int indent,
110 static int asn1_primitive_print(BIO *out, const ASN1_VALUE **fld,
115 static int asn1_print_fsname(BIO *out, int indent,
119 int ASN1_item_print(BIO *out, const ASN1_VALUE *ifld, int indent, in ASN1_item_print() argument
129 return asn1_item_print_ctx(out, &ifld, indent, it, NULL, sname, 0, pctx); in ASN1_item_print()
132 static int asn1_item_print_ctx(BIO *out, const ASN1_VALUE **fld, int indent, in asn1_item_print_ctx() argument
145 parg.out = out; in asn1_item_print_ctx()
155 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx()
157 if (BIO_puts(out, "<ABSENT>\n") <= 0) in asn1_item_print_ctx()
166 if (!asn1_template_print_ctx(out, fld, indent, in asn1_item_print_ctx()
173 if (!asn1_primitive_print(out, fld, it, indent, fname, sname, pctx)) in asn1_item_print_ctx()
178 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx()
183 i = ef->asn1_ex_print(out, fld, indent, "", pctx); in asn1_item_print_ctx()
186 if ((i == 2) && (BIO_puts(out, "\n") <= 0)) in asn1_item_print_ctx()
190 BIO_printf(out, ":EXTERNAL TYPE %s\n", sname) <= 0) in asn1_item_print_ctx()
199 if (BIO_printf(out, "ERROR: selector [%d] invalid\n", i) <= 0) in asn1_item_print_ctx()
205 if (!asn1_template_print_ctx(out, tmpfld, indent, tt, pctx)) in asn1_item_print_ctx()
211 if (!nohdr && !asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_item_print_ctx()
215 if (BIO_puts(out, " {\n") <= 0) in asn1_item_print_ctx()
218 if (BIO_puts(out, "\n") <= 0) in asn1_item_print_ctx()
238 if (!asn1_template_print_ctx(out, tmpfld, in asn1_item_print_ctx()
243 if (BIO_printf(out, "%*s}\n", indent, "") < 0) in asn1_item_print_ctx()
255 BIO_printf(out, "Unprocessed type %d\n", it->itype); in asn1_item_print_ctx()
262 static int asn1_template_print_ctx(BIO *out, const ASN1_VALUE **fld, int indent, in asn1_template_print_ctx() argument
299 if (BIO_printf(out, "%*s%s OF %s {\n", in asn1_template_print_ctx()
302 } else if (BIO_printf(out, "%*s%s:\n", indent, "", fname) <= 0) in asn1_template_print_ctx()
307 if ((i > 0) && (BIO_puts(out, "\n") <= 0)) in asn1_template_print_ctx()
311 if (!asn1_item_print_ctx(out, &skitem, indent + 2, in asn1_template_print_ctx()
316 if (i == 0 && BIO_printf(out, "%*s<%s>\n", indent + 2, "", in asn1_template_print_ctx()
320 if (BIO_printf(out, "%*s}\n", indent, "") <= 0) in asn1_template_print_ctx()
325 return asn1_item_print_ctx(out, fld, indent, ASN1_ITEM_ptr(tt->item), in asn1_template_print_ctx()
329 static int asn1_print_fsname(BIO *out, int indent, in asn1_print_fsname() argument
337 if (BIO_write(out, spaces, nspaces) != nspaces) in asn1_print_fsname()
341 if (BIO_write(out, spaces, indent) != indent) in asn1_print_fsname()
350 if (BIO_puts(out, fname) <= 0) in asn1_print_fsname()
355 if (BIO_printf(out, " (%s)", sname) <= 0) in asn1_print_fsname()
358 if (BIO_puts(out, sname) <= 0) in asn1_print_fsname()
362 if (BIO_write(out, ": ", 2) != 2) in asn1_print_fsname()
367 static int asn1_print_boolean(BIO *out, int boolval) in asn1_print_boolean() argument
385 if (BIO_puts(out, str) <= 0) in asn1_print_boolean()
391 static int asn1_print_integer(BIO *out, const ASN1_INTEGER *str) in asn1_print_integer() argument
398 if (BIO_puts(out, s) <= 0) in asn1_print_integer()
404 static int asn1_print_oid(BIO *out, const ASN1_OBJECT *oid) in asn1_print_oid() argument
412 if (BIO_printf(out, "%s (%s)", ln, objbuf) <= 0) in asn1_print_oid()
417 static int asn1_print_obstring(BIO *out, const ASN1_STRING *str, int indent) in asn1_print_obstring() argument
420 if (BIO_printf(out, " (%ld unused bits)\n", str->flags & 0x7) <= 0) in asn1_print_obstring()
422 } else if (BIO_puts(out, "\n") <= 0) in asn1_print_obstring()
425 && BIO_dump_indent(out, (const char *)str->data, str->length, in asn1_print_obstring()
431 static int asn1_primitive_print(BIO *out, const ASN1_VALUE **fld, in asn1_primitive_print() argument
442 if (!asn1_print_fsname(out, indent, fname, sname, pctx)) in asn1_primitive_print()
445 return pf->prim_print(out, fld, it, indent, pctx); in asn1_primitive_print()
473 if (BIO_puts(out, "NULL\n") <= 0) in asn1_primitive_print()
479 if (BIO_puts(out, pname) <= 0) in asn1_primitive_print()
481 if (BIO_puts(out, ":") <= 0) in asn1_primitive_print()
491 ret = asn1_print_boolean(out, boolval); in asn1_primitive_print()
497 ret = asn1_print_integer(out, str); in asn1_primitive_print()
501 ret = ASN1_UTCTIME_print(out, str); in asn1_primitive_print()
505 ret = ASN1_GENERALIZEDTIME_print(out, str); in asn1_primitive_print()
509 ret = asn1_print_oid(out, (const ASN1_OBJECT *)*fld); in asn1_primitive_print()
514 ret = asn1_print_obstring(out, str, indent); in asn1_primitive_print()
521 if (BIO_puts(out, "\n") <= 0) in asn1_primitive_print()
523 if (ASN1_parse_dump(out, str->data, str->length, indent, 0) <= 0) in asn1_primitive_print()
529 ret = ASN1_STRING_print_ex(out, str, pctx->str_flags); in asn1_primitive_print()
534 if (needlf && BIO_puts(out, "\n") <= 0) in asn1_primitive_print()