42. Whoever knowingly infringes any provision of this act respecting the confidential nature of any proceeding or any record of adoption, or violates the secrecy of such proceeding or record, is guilty of an offence and liable, on summary proceeding, in addition to payment of the costs, to a fine not exceeding $1,000 or to imprisonment for not more than one year or to both penalties together.