Hans Leidekker : winhttp: Verify certificates against the hostname instead of the server name.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Sep 25 15:22:02 CDT 2015


Module: wine
Branch: master
Commit: d22e21f96d5069a235a9a814f7126b5ca5ed4c1a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d22e21f96d5069a235a9a814f7126b5ca5ed4c1a

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Sep 22 15:57:12 2015 +0200

winhttp: Verify certificates against the hostname instead of the server name.

The server name is different when connections are made through a proxy server.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>

---

 dlls/winhttp/request.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index d3f4d91..380edb8 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -1051,7 +1051,7 @@ static BOOL open_connection( request_t *request )
                 return FALSE;
             }
         }
-        if (!netconn_secure_connect( &request->netconn, connect->servername ))
+        if (!netconn_secure_connect( &request->netconn, connect->hostname ))
         {
             netconn_close( &request->netconn );
             heap_free( addressW );




More information about the wine-cvs mailing list