The attorney general of this state is the legal adviser of the governor and of the adjutant general.
N.D.C.C. § 37-02-05