misc: remove unused doh flags when CURL_DISABLE_DOH is defined

Closes #8148
This commit is contained in:
MAntoniak 2021-09-06 16:36:34 +02:00 committed by Daniel Stenberg
parent 867ad1cd8b
commit 39406280bb
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 28 additions and 1 deletions

View file

@ -540,8 +540,10 @@ CURLcode Curl_init_userdefined(struct Curl_easy *data)
* libcurl 7.10 introduced SSL verification *by default*! This needs to be
* switched off unless wanted.
*/
#ifndef CURL_DISABLE_DOH
set->doh_verifyhost = TRUE;
set->doh_verifypeer = TRUE;
#endif
set->ssl.primary.verifypeer = TRUE;
set->ssl.primary.verifyhost = TRUE;
#ifdef USE_TLS_SRP