Uganda has passed a law that makes being gay a crime punishable with up to life in prison.

The bill, which in its original form prescribed the death penalty for cases of "aggravated homosexuality" - for instance if someone is infected with HIV - reduced the penalty to life imprisonment before the vote.

Clauses that criminalize the "promotion" of homosexuality could cause activists and even doctors treating gay patients with HIV to face prison time.