All bonds, recognizances, or acknowledgments of indebtedness, conditioned for the appearance of any party before any court or officer, in any state case or criminal proceeding, which shall have the effect to free such party from jail or legal custody of any sort, shall be valid and bind the party and sureties, according to the condition of such bond, recognizance, or acknowledgment, whether it was taken by the proper officer or under circumstances authorized by law or not, or whether the officer’s return identify it or not.
It shall not be an objection to any bail-bond or recognizance that it is in the form of an acknowledgment before a court or officer and is without the signature of any person, or is without the indorsement of approval by any officer; but all persons who, by their acknowledgment before any officer of liability to pay a sum of money to the state if some person shall not appear before some court or officer in a criminal prosecution, procure the discharge from custody of such person, shall be bound accordingly upon the recognizance. An obligation signed by a person to obtain the discharge from custody of another shall not be invalid, if it have that effect, because it does not have indorsed on it the approval of any officer, or because the taking thereof be not recited in the return of the officer.