TLS transport code refactoring and unit tests
This merge request contains refactored TLS transport code and unit tests for it. Also, fixes a crash in dig and improves bad responses handling in DoH client code.
Edited by Artem Boldariev
This merge request contains refactored TLS transport code and unit tests for it. Also, fixes a crash in dig and improves bad responses handling in DoH client code.