Canada was complicit in the torture. 

Here's what the unanimous Supreme Court of Canada said in 2010:

"Canada actively participated in a process contrary to its international human rights obligations and contributed to K’s ongoing detention so as to deprive him of his right to liberty and security of the person, guaranteed by s. 7 of the Charter, not in accordance with the principles of fundamental justice."

That's why the Canadian Khadr sued Canada.