Lines Matching refs:io_ch
115 static int do_esc_char(unsigned long c, unsigned char flags, char *do_quotes, char_io *io_ch, void *arg)
124 if(!io_ch(arg, tmphex, 10)) return -1;
129 if(!io_ch(arg, tmphex, 6)) return -1;
139 if(!io_ch(arg, &chtmp, 1)) return -1;
142 if(!io_ch(arg, "\\", 1)) return -1;
143 if(!io_ch(arg, &chtmp, 1)) return -1;
148 if(!io_ch(arg, tmphex, 3)) return -1;
151 if(!io_ch(arg, &chtmp, 1)) return -1;
164 int type, unsigned char flags, char *quotes, char_io *io_ch, void *arg)
211 len = do_esc_char(utfbuf[i], (unsigned char)(flags | orflags), quotes, io_ch, arg);
216 len = do_esc_char(c, (unsigned char)(flags | orflags), quotes, io_ch, arg);
226 static int do_hex_dump(char_io *io_ch, void *arg, unsigned char *buf, int buflen)
237 if(!io_ch(arg, hextmp, 2)) return -1;
250 static int do_dump(unsigned long lflags, char_io *io_ch, void *arg, ASN1_STRING *str)
259 if(!io_ch(arg, "#", 1)) return -1;
262 outlen = do_hex_dump(io_ch, arg, str->data, str->length);
273 outlen = do_hex_dump(io_ch, arg, der_buf, der_len);
307 static int do_print_ex(char_io *io_ch, void *arg, unsigned long lflags, ASN1_STRING *str)
326 if(!io_ch(arg, tagname, outlen) || !io_ch(arg, ":", 1)) return -1;
344 len = do_dump(lflags, io_ch, arg, str);
360 len = do_buf(str->data, str->length, type, flags, "es, io_ch, NULL);
365 if(quotes && !io_ch(arg, "\"", 1)) return -1;
366 if(do_buf(str->data, str->length, type, flags, NULL, io_ch, arg) < 0)
368 if(quotes && !io_ch(arg, "\"", 1)) return -1;
374 static int do_indent(char_io *io_ch, void *arg, int indent)
378 if(!io_ch(arg, " ", 1)) return 0;
385 static int do_name_ex(char_io *io_ch, void *arg, X509_NAME *n,
400 if(!do_indent(io_ch, arg, indent)) return -1;
455 if(!io_ch(arg, sep_mv, sep_mv_len)) return -1;
458 if(!io_ch(arg, sep_dn, sep_dn_len)) return -1;
460 if(!do_indent(io_ch, arg, indent)) return -1;
487 if(!io_ch(arg, objbuf, objlen)) return -1;
489 if (!do_indent(io_ch, arg, fld_len - objlen)) return -1;
492 if(!io_ch(arg, sep_eq, sep_eq_len)) return -1;
503 len = do_print_ex(io_ch, arg, flags | orflags, val);