When using LibreSSL use its own libtls but when using OpenSSL use libtls from libretls. Reworked from PR: 252802 Submitted by: jbeich