A Pakistani court has sentenced former prime minister Imran Khan and his close aide Shah Mahmood Qureshi to ten years in prison for violating the nation’s Official Secrets Act by making a diplomatic cable public when he was in power.