trace_write
static int trace_write(BIO *b, const char *buf,
trace_write,
if (trace_write(channel, str, strlen(str), &written))