winhttp: Pass hostname to netconn_secure_connect.
This commit is contained in:
parent
59820c2e5c
commit
a33c4bfd0b
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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 * );
|
||||
|
|
Loading…
Reference in New Issue