Sassou-Nguesso legitimized his post-war rule in elections boycotted by major opposition figures.