United Nations Secretary-General Kofi Annan has warned governments around the world not to ignore international agreements prohibiting torture .