OSDN Git Service

tls: Use TLSv1_client_method for OpenSSL
authorMartin Storsjö <martin@martin.st>
Thu, 17 Nov 2011 09:15:27 +0000 (11:15 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 17 Nov 2011 13:11:38 +0000 (15:11 +0200)
commit92db95e9ca5f8249e69e5ef7e1c31c835813e764
tree4594c6bf39a431fca605fd82779e97699adae27c
parent268fb3f9851590aed724dba83d3999c8369c929f
tls: Use TLSv1_client_method for OpenSSL

TLSv1 is compatible with SSLv3, so this doesn't change much
in terms of compatibility. By explicitly using TLSv1, OpenSSL
sends the server name indication (SNI) header, which we
already set using SSL_set_tlsext_host_name (earlier, this
didn't have any effect).

SNI allows servers to serve SSL content for different host
names with separate certificates on one single port (vhosts).

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/tls.c