Nancy Pelosi 's talks with General Musharraf focused on the war on terrorism and the situation in Afghanistan .