A former CIA agent convicted of the largest data breach in agency history along with child pornography is set to spend 40 years in prison.