Lines Matching defs:io_ch

120 static int do_esc_char(unsigned long c, unsigned char flags, char *do_quotes, char_io *io_ch, void *arg)
129 if(!io_ch(arg, tmphex, 10)) return -1;
134 if(!io_ch(arg, tmphex, 6)) return -1;
144 if(!io_ch(arg, &chtmp, 1)) return -1;
147 if(!io_ch(arg, "\\", 1)) return -1;
148 if(!io_ch(arg, &chtmp, 1)) return -1;
153 if(!io_ch(arg, tmphex, 3)) return -1;
160 if(!io_ch(arg, "\\\\", 2)) return -1;
163 if(!io_ch(arg, &chtmp, 1)) return -1;
176 int type, unsigned char flags, char *quotes, char_io *io_ch, void *arg)
223 len = do_esc_char(utfbuf[i], (unsigned char)(flags | orflags), quotes, io_ch, arg);
228 len = do_esc_char(c, (unsigned char)(flags | orflags), quotes, io_ch, arg);
238 static int do_hex_dump(char_io *io_ch, void *arg, unsigned char *buf, int buflen)
249 if(!io_ch(arg, hextmp, 2)) return -1;
262 static int do_dump(unsigned long lflags, char_io *io_ch, void *arg, ASN1_STRING *str)
271 if(!io_ch(arg, "#", 1)) return -1;
274 outlen = do_hex_dump(io_ch, arg, str->data, str->length);
285 outlen = do_hex_dump(io_ch, arg, der_buf, der_len);
314 static int do_print_ex(char_io *io_ch, void *arg, unsigned long lflags, ASN1_STRING *str)
333 if(!io_ch(arg, tagname, outlen) || !io_ch(arg, ":", 1)) return -1;
351 len = do_dump(lflags, io_ch, arg, str);
367 len = do_buf(str->data, str->length, type, flags, &quotes, io_ch, NULL);
372 if(quotes && !io_ch(arg, "\"", 1)) return -1;
373 if(do_buf(str->data, str->length, type, flags, NULL, io_ch, arg) < 0)
375 if(quotes && !io_ch(arg, "\"", 1)) return -1;
381 static int do_indent(char_io *io_ch, void *arg, int indent)
385 if(!io_ch(arg, " ", 1)) return 0;
392 static int do_name_ex(char_io *io_ch, void *arg, X509_NAME *n,
407 if(!do_indent(io_ch, arg, indent)) return -1;
462 if(!io_ch(arg, sep_mv, sep_mv_len)) return -1;
465 if(!io_ch(arg, sep_dn, sep_dn_len)) return -1;
467 if(!do_indent(io_ch, arg, indent)) return -1;
494 if(!io_ch(arg, objbuf, objlen)) return -1;
496 if (!do_indent(io_ch, arg, fld_len - objlen)) return -1;
499 if(!io_ch(arg, sep_eq, sep_eq_len)) return -1;
510 len = do_print_ex(io_ch, arg, flags | orflags, val);