tls_write
n = tls_write(tls, buf, *bufpos);
ssize_t tls_write(struct tls *_ctx, const void *_buf, size_t _buflen);