Prevent SSLv2 and SSLv3, and better logging in ssl do_write().