This is what the Penal Code says....!
154. Unnatural offences Ord. No. 47 of 1954 s. 3; Act No. 4 of 1998 s. 16
(1) Any person who–
(a) has carnal knowledge of any person against the order of nature; or
(b) has carnal knowledge of an animal; or
(c) permits a male person to have carnal knowledge of him or her against the order of nature,
commits an offence, and is liable to imprisonment for life and in any case to imprisonment for a term of not less than thirty years.
(2) Where the offence under subsection (1) of this section is committed to a child under the age of ten years the offender shall be sentenced to life imprisonment.
155. Attempt to commit unnatural offences Ord. No. 47 of 1954 s. 3; Act No. 4 of 1998 s. 17
Any person who attempts to commit any of the offences specified under section 154 commits an offence and shall on conviction be sentenced to imprisonment for a term of not less than twenty years.
156. Indecent assault of boys under fourteen Ord. No. 10 of 1959 s. 3; Act No. 4 of 1998 s. 18
(1) Any person who unlawfully and indecently assaults a boy under the age of fourteen years is guilty of an offence and is liable to imprisonment for life.
(2) Where a charge for indecent assault under this section relates to a boy under the age of fifteen years, it shall be no defence to the charge that he consented to the act of indecency.
157. Indecent practices between males Ord. No. 47 of 1954 s. 3
Any male person who, whether in public or private, commits any act of gross indecency with another male person or procures another male person to commit any act of gross indecency with him, or attempts to procure the commission of any such act by any male person, with himself or with another male person, whether in public or private, is guilty of an offence and is liable to imprisonment for five years.
158. Incest by males Act No. 4 of 1998 s. 19
(1) Any male person who has prohibited sexual intercourse with a female person, who is to his knowledge his granddaughter, daughter, sister or mother, commits the offence of incest, and is liable on conviction–
(a) if the female is of the age of less than eighteen years, to imprisonment for a term of not less than thirty years;
(b) if the female is of the age of eighteen years or more, to imprisonment for a term of not less than twenty years.
(2) It is immaterial that the sexual intercourse was had with the consent of the woman.
(3) A male person who attempts to commit an offence under this section is guilty of an offence.