avformat: Add the tls protocol, using OpenSSL or gnutls