Barcelona wants to offer Messi an open-ended contract.