Update state machine to be closer to TLS1.3