The centralizer of a rank-one flow