40. No authority to commit illegal acts.

By virtue of general rules of the common law, an agent cannot be given authority to do an illegal act, and no agent can recover remuneration or indemnity against a principal for the performance of an act known by him to be illegal