N.Y. Domestic Relations Law § 111
1. Subject to the limitations hereinafter set forth consent to adoption shall be required as follows:
2. The consent shall not be required of a parent or of any other person having custody of the child:
3.
6. For the purposes of paragraph (a) of subdivision two: