Add outform to openssl.
Move ssl_socket::write to cpp and remove debug.