mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
schannel: fix unused variable warning
If CURL_DISABLE_VERBOSE_STRINGS is defined, hostname is not used in schannel_connect_step3.
This commit is contained in:
parent
a8e523f086
commit
f104f7d914
@ -690,8 +690,10 @@ schannel_connect_step3(struct connectdata *conn, int sockindex)
|
||||
struct ssl_connect_data *connssl = &conn->ssl[sockindex];
|
||||
SECURITY_STATUS sspi_status = SEC_E_OK;
|
||||
CERT_CONTEXT *ccert_context = NULL;
|
||||
#ifndef CURL_DISABLE_VERBOSE_STRINGS
|
||||
const char * const hostname = SSL_IS_PROXY() ? conn->http_proxy.host.name :
|
||||
conn->host.name;
|
||||
#endif
|
||||
#ifdef HAS_ALPN
|
||||
SecPkgContext_ApplicationProtocol alpn_result;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user