The legal code regarding homosexuality in the Vatican City
is based on the Italian penal code of 1929, the time of the founding of the sovereign state Vatican City. However, it was announced in late 2008 that the Vatican "will no longer automatically adopt new Italian laws as its own, a top Vatican official said, citing the vast number of laws Italy churns out, many of which are in odds with Catholic doctrine".
There are no criminal laws against non-commercial, private, adult and consensual same-sex sexual activity.
The Vatican does not have its own separate criminal code...