[vlc-devel] commit: http: check x509 common name against the URL ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Jun 25 20:03:43 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 25 21:02:56 2009 +0300| [8b5d2b4ca7e140a7715afaa17d7dee7259e6ea8d] | committer: 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...
(cherry picked from commit 02c05f0082cee5f297ac010eeb143817de9baf26)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8b5d2b4ca7e140a7715afaa17d7dee7259e6ea8d
---

 modules/access/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index 234a249..9952fcf 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -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" );




More information about the vlc-devel mailing list