Ottawa listed the Taliban as a terrorist group in 2013, making it a criminal offence for Canadians to have dealings with terrorists
source https://www.thenews.com.pk/latest/1048259-canada-amends-anti-terrorism-laws-to-deliver-aid-to-taliban-controlled-afghanistan