TLS: support build with OpenSSL 1.1.0 Bug 1771