The Criminal Law (Sexual Offences and Related Matters) Amendment Act, 2007 (Act No. 32 of 2007; also referred to as the Sexual Offences Act) is an act of the Parliament of South Africa that reformed and codified the law relating to sex offences. It repealed various common law crimes (including rape and indecent assault) and replaced them with statutory crimes defined on a gender-neutral basis. It expanded the definition of rape, previously limited to vaginal sex, to include all non-consensual penetration; and it equalised the age of consent for heterosexual and homosexual sex at 16. The act provides various services to the victims of sexual offences, including free post-exposure prophylaxis for HIV, and the ability to obtain a court order to compel HIV testing of the alleged offender. It also created the National Register for Sex Offenders, which records the details of those convicted of sexual offences against children or people who are mentally disabled. List of offences The following offences are prohibited by the act. Rape (sec. 3) Compelled rape (sec. 4) Sexual assault (sec. 5) Compelled sexual assault (sec. 6) Compelled self-sexual assault (sec. 7) Compelling or causing a person 18 years or older to witness a sexual offence, a sexual act, or self-masturbation (sec. 8) Exposing or displaying or causing the exposure or display of genital organs, anus or female breasts to a person 18 years or older (flashing) (sec. 9) Exposing or displaying or causing the exposure or display of child pornography to a person 18 years or older (sec. 10) Engaging the sexual services of a person 18 years or older (sec. 11) Incest (sec. 12) Bestiality (sec. 13) Committing a sexual act with a corpse (necrophilia) (sec. 14) Committing an act of consensual sexual penetration with a child (statutory rape) (sec. 15) Committing an act of consensual sexual violation with a child (statutory sexual assault) (sec. 16) Sexual exploitation of a child; being involved in, furthering, benefiting from, or living from the earnings of the sexual exploitation of a child; or promoting child sex tours (sec. 17) Sexual grooming of a child or promoting the sexual grooming of a child (sec. 18) Exposing or displaying or causing the exposure or display of child pornography or pornography to a child (sec. 19) Using a child for or benefiting from child pornography (sec. 20) Compelling or causing a child to witness a sexual offence, a sexual