replaced cipherinfo
added hostname verification