Commit 02c05f00 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

http: check x509 common name against the URL

When we connect through a proxy, the certificate common name does not
match the TCP-level hostname...
parent a427e327
......@@ -1106,7 +1106,7 @@ static int Connect( access_t *p_access, int64_t i_tell )
/* TLS/SSL handshake */
p_sys->p_tls = tls_ClientCreate( VLC_OBJECT(p_access), p_sys->fd,
srv.psz_host );
p_sys->url.psz_host );
if( p_sys->p_tls == NULL )
{
msg_Err( p_access, "cannot establish HTTP/TLS session" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment