mirror of
https://github.com/curl/curl.git
synced 2026-04-15 13:41:40 +03: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue