A single program he leaked was illegal. The vast majority was not, including the hacking of Chinese targets that he leaked directly to SCMP.