aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-03-30 10:35:46 +0200
committerMarcel Raad <raad@teamviewer.com>2017-03-30 10:35:46 +0200
commitf104f7d914e1d802bdedcfcae6116eeab4a4a43e (patch)
tree8e6960cda5598fa4e23ab5d45ab1dd9778116547
parenta8e523f086c12e7bb9acb18d1ac84d92dde0605b (diff)
schannel: fix unused variable warning
If CURL_DISABLE_VERBOSE_STRINGS is defined, hostname is not used in schannel_connect_step3.
-rw-r--r--lib/vtls/schannel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index 0f59d9c4d..6d83e9ed1 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -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