(n.) The chief law officer of the state, empowered to act in all litigation in which the law-executing power is a party, and to advise this supreme executive whenever required.