winhttp: Pass hostname to netconn_secure_connect.

This commit is contained in:
Juan Lang 2009-11-12 13:28:23 -08:00 committed by Alexandre Julliard
parent 59820c2e5c
commit a33c4bfd0b
3 changed files with 3 additions and 3 deletions

View File

@ -418,7 +418,7 @@ BOOL netconn_connect( netconn_t *conn, const struct sockaddr *sockaddr, unsigned
return ret;
}
BOOL netconn_secure_connect( netconn_t *conn )
BOOL netconn_secure_connect( netconn_t *conn, WCHAR *hostname )
{
#ifdef SONAME_LIBSSL
X509 *cert;

View File

@ -957,7 +957,7 @@ static BOOL open_connection( request_t *request )
return FALSE;
}
}
if (!netconn_secure_connect( &request->netconn ))
if (!netconn_secure_connect( &request->netconn, connect->servername ))
{
netconn_close( &request->netconn );
heap_free( addressW );

View File

@ -219,7 +219,7 @@ void netconn_unload( void );
BOOL netconn_query_data_available( netconn_t *, DWORD * );
BOOL netconn_recv( netconn_t *, void *, size_t, int, int * );
BOOL netconn_resolve( WCHAR *, INTERNET_PORT, struct sockaddr *, socklen_t * );
BOOL netconn_secure_connect( netconn_t * );
BOOL netconn_secure_connect( netconn_t *, WCHAR * );
BOOL netconn_send( netconn_t *, const void *, size_t, int, int * );
DWORD netconn_set_timeout( netconn_t *, BOOL, int );
const void *netconn_get_certificate( netconn_t * );