]> git.sesse.net Git - vlc/commitdiff
http: check x509 common name against the URL
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 25 Jun 2009 18:02:56 +0000 (21:02 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 25 Jun 2009 18:02:56 +0000 (21:02 +0300)
When we connect through a proxy, the certificate common name does not
match the TCP-level hostname...

modules/access/http.c

index 234a2499766b58c1559c5803dc6dc81b8f5d39f0..9952fcfabd3484547e4afe77c3aa260f500d1ed5 100644 (file)
@@ -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" );