This commit resurrects the old TLS code from 8f73c70d23. It also includes numerous stability fixes and support for isc_nm_cancelread() for the TLS layer. The code was resurrected to be used for DoH.
8f73c70d23