The Kenyan law does not allow homosexuality.
The Kenyan homosexuals case was challenging the sections 162 (a), (c) and 165 of the Penal Code of Kenya which outlaw ‘carnal knowledge against the order of nature and indecent acts.
Section 162 on Unnatural offences states that:
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, is guilty of a felony and is liable to imprisonment for fourteen years: Provided that, in the case of an offence under paragraph (a), the offender shall be liable to imprisonment for twenty-one years if—(i) the offence was committed without the consent of the person who was carnally known; or (ii) the offence was committed with that person’s consent but the consent was obtained by force or by means of threats or intimidation of some kind, or by fear of bodily ha., or by means of false representations as to the nature of the act. [Act No. 5 of 2003, s. 32.]
If you read carefully, the law also outlaws anal sex (sodomy) between a man and a lady.
The Lesbian, Gay, Bisexual, Transexual, Intersex, Queer (LGBTiQ) movement has been campaigning for the repeal of the above section of the law.
Early this year, this group, led by The Gay & Lesbian Coalition of Kenya (GALCK) managed to register a National Gay and Lesbians Human Rights Commission (NGLHRC).
That was seen as win by them after the Court of Appeal overturned a decision by the NGO Coordination Board to refuse to register it.
Today the High Court said no to repealing of section 162 of the constitution.
The three judge bench ruled that the petitioners didn’t prove discrimination and violation or rights.
In Africa, homosexuality is outlawed in 34 countries, only South Africa and Cape Verde allows homosexuality, the rest have not criminalized homosexuality but it is frowned upon.
Here is what Kenyans had to say about that:
https://twitter.com/cjbarongo/status/1131907171875209217?s=19
I choose not to judge. Who are we to deny two consenting adults the joy of love and sex? It's time for us to live and let live. I wouldn't want to see any LGBTIQ+ Kenyan killed or thrown in jail just for being different. #GodIsLove #Repeal162
— Esther Muthoni Passaris (@EstherPassaris) May 24, 2019
Gay people often rush to conclude that anyone who doesn't support their cause is Homophobic. There is a Difference between disagreement and Condemnation. I can't like what you do but support your freedom of choice. Just don't insist on convincing me it is good for me. #Repeal162
— Hon Gurre (@HonGurre) May 24, 2019
https://twitter.com/she_wambui/status/1131896768243871744?s=19
Sex is primarily for reproduction and there is no known history or science where same sex animals ever reproduced. Same sex relationships are artificial creations to justify deviance. #Repeal162
— Mkulima Mwanafunzi (@tito_antony) May 24, 2019
https://twitter.com/ShazieKe/status/1131918488006791168