state: negotiate version and ciphers