diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2020-06-01 11:20:47 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-06-01 23:03:31 +0200 |
commit | 21ed48e8d99b8c172ba0a5871bdd8a22ba43612c (patch) | |
tree | d90ce31ee6e85eaa0d967de1fe4952b4cd9027e2 /lib/vtls/schannel_verify.c | |
parent | b77a2528f8d76f7d9878a9e3d1f7744a5becfdd4 (diff) |
vtls: repair the build with `CURL_DISABLE_PROXY`
`http_proxy` will not be available in `conndata` if `CURL_DISABLE_PROXY`
is enabled. Repair the build with that configuration.
Follow-up to f3d501dc67
Closes #5498
Diffstat (limited to 'lib/vtls/schannel_verify.c')
-rw-r--r-- | lib/vtls/schannel_verify.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/vtls/schannel_verify.c b/lib/vtls/schannel_verify.c index aca279114..bdd7199e4 100644 --- a/lib/vtls/schannel_verify.c +++ b/lib/vtls/schannel_verify.c @@ -537,9 +537,13 @@ CURLcode Curl_verify_certificate(struct connectdata *conn, int sockindex) const CERT_CHAIN_CONTEXT *pChainContext = NULL; HCERTCHAINENGINE cert_chain_engine = NULL; HCERTSTORE trust_store = NULL; +#ifndef CURL_DISABLE_PROXY const char * const conn_hostname = SSL_IS_PROXY() ? conn->http_proxy.host.name : conn->host.name; +#else + const char * const conn_hostname = conn->host.name; +#endif sspi_status = s_pSecFn->QueryContextAttributes(&BACKEND->ctxt->ctxt_handle, |