A British court says U.S. authorities asked a Guantanamo Bay detainee to drop allegations of torture in exchange for his freedom.

A ruling by two British High Court judges published Monday says the U.S. offered Binyam Mohamed a plea bargain deal in October. Mohamed refused the deal and the U.S. dropped all charges against him later last year. He was released last month.

Mohamed is an Ethiopian who moved to Britain when he was a teenager. He was arrested in Pakistan in 2002 and claims he was tortured both there and in Morocco. He was transferred to Guantanamo in 2004.

The court said the plea bargain also asked Mohamed to plead guilty to two charges and agree not to speak publicly about his ordeal.