Glenn Greenwald took to Twitter to denounce the charges as ‘an attack on press freedom’. Photo: AP