Pre-Vatican II Catholic teaching:
Pope Leo XIII, Satis Cognitum (# 9), June 29, 1896: "The Church alone offers to the human race that religion - that state of absolute perfection - which He wished, as it were, to be incorporated in it. And it alone supplies those means of salvation which accord with the ordinary counsels of Providence."
I’m getting the idea that in the RCC, salvation is negotiable depending on who is pope today.