SAN FRANCISCO (AP) — Yahoo has added more layers of security in its effort to shield people’s online lives from government spying and other snooping.