curl/lib
Jay Satiro 53022e1893 doh: add options to disable ssl verification
- New libcurl options CURLOPT_DOH_SSL_VERIFYHOST,
  CURLOPT_DOH_SSL_VERIFYPEER and CURLOPT_DOH_SSL_VERIFYSTATUS do the
  same as their respective counterparts.

- New curl tool options --doh-insecure and --doh-cert-status do the same
  as their respective counterparts.

Prior to this change DOH SSL certificate verification settings for
verifyhost and verifypeer were supposed to be inherited respectively
from CURLOPT_SSL_VERIFYHOST and CURLOPT_SSL_VERIFYPEER, but due to a bug
were not. As a result DOH verification remained at the default, ie
enabled, and it was not possible to disable. This commit changes
behavior so that the DOH verification settings are independent and not
inherited.

Ref: https://github.com/curl/curl/pull/4579#issuecomment-554723676

Fixes https://github.com/curl/curl/issues/4578
Closes https://github.com/curl/curl/pull/6597
2021-02-14 18:20:48 -05:00
..
vauth gsasl: fix errors/warnings building against libgsasl 2021-02-10 18:55:58 +00:00
vquic ngtcp2: clarify calculation precedence 2021-02-10 16:47:49 +01:00
vssh ftp: add 'list_only' to the transfer state struct 2021-02-09 14:06:28 +01:00
vtls urldata: don't touch data->set.httpversion at run-time 2021-02-12 08:13:37 +01:00
.gitattributes
.gitignore
altsvc.c
altsvc.h
amigaos.c
amigaos.h
arpa_telnet.h
asyn-ares.c hostip: remove conn->data from resolver functions 2021-01-22 08:25:09 +01:00
asyn-thread.c lib: drop USE_SOCKETPAIR in favor of CURL_DISABLE_SOCKETPAIR 2021-02-09 02:47:51 -05:00
asyn.h hostip: remove conn->data from resolver functions 2021-01-22 08:25:09 +01:00
base64.c
c-hyper.c urldata: don't touch data->set.httpversion at run-time 2021-02-12 08:13:37 +01:00
c-hyper.h
checksrc.pl
CMakeLists.txt cmake: fix import library name for non-MS compiler on Windows 2021-02-09 02:43:04 -05:00
config-amigaos.h
config-dos.h
config-mac.h
config-os400.h
config-plan9.h
config-riscos.h
config-tpf.h
config-vxworks.h
config-win32.h
config-win32ce.h
conncache.c lib: more conn->data cleanups 2021-01-19 09:14:51 +01:00
conncache.h lib: more conn->data cleanups 2021-01-19 09:14:51 +01:00
connect.c lib: use int type for more port variables 2021-02-09 02:53:31 -05:00
connect.h lib: use int type for more port variables 2021-02-09 02:53:31 -05:00
content_encoding.c lib: remove conn->data uses 2021-01-24 18:15:03 +01:00
content_encoding.h chunk/encoding: remove conn->data references 2021-01-21 13:19:58 +01:00
cookie.c
cookie.h copyright: fix missing year (range) updates 2021-01-29 14:35:13 +01:00
curl_addrinfo.c copyright: fix missing year (range) updates 2021-01-29 14:35:13 +01:00
curl_addrinfo.h
curl_base64.h
curl_config.h.cmake copyright: fix missing year (range) updates 2021-01-29 14:35:13 +01:00
curl_ctype.c
curl_ctype.h
curl_des.c
curl_des.h
curl_endian.c
curl_endian.h
curl_fnmatch.c
curl_fnmatch.h
curl_get_line.c
curl_get_line.h
curl_gethostname.c
curl_gethostname.h
curl_gssapi.c lib: pass in 'struct Curl_easy *' to most functions 2021-01-17 23:56:09 +01:00
curl_gssapi.h
curl_hmac.h
curl_krb5.h lib: remove conn->data uses 2021-01-26 15:19:41 +01:00
curl_ldap.h
curl_md4.h
curl_md5.h
curl_memory.h
curl_memrchr.c
curl_memrchr.h
curl_multibyte.c curl_multibyte: fall back to local code page stat/access on Windows 2021-02-09 02:47:05 -05:00
curl_multibyte.h
curl_ntlm_core.c
curl_ntlm_core.h
curl_ntlm_wb.c lib: remove conn->data uses 2021-01-24 18:15:03 +01:00
curl_ntlm_wb.h lib: remove conn->data uses 2021-01-24 18:15:03 +01:00
curl_path.c curl_path: remove conn->data use 2021-01-19 17:08:49 +01:00
curl_path.h curl_path: remove conn->data use 2021-01-19 17:08:49 +01:00
curl_printf.h
curl_range.c curl_range: remove conn->data 2021-01-20 14:59:11 +01:00
curl_range.h curl_range: remove conn->data 2021-01-20 14:59:11 +01:00
curl_rtmp.c lib: remove conn->data uses 2021-01-24 18:15:03 +01:00
curl_rtmp.h
curl_sasl.c sasl: support SCRAM-SHA-1 and SCRAM-SHA-256 via libgsasl 2021-02-09 10:53:25 +01:00
curl_sasl.h sasl: support SCRAM-SHA-1 and SCRAM-SHA-256 via libgsasl 2021-02-09 10:53:25 +01:00
curl_setup_once.h
curl_setup.h vtls: initial implementation of rustls backend 2021-02-09 11:06:18 +01:00
curl_sha256.h
curl_sspi.c
curl_sspi.h
curl_threads.c
curl_threads.h
curlx.h
dict.c lib: pass in 'struct Curl_easy *' to most functions 2021-01-17 23:56:09 +01:00
dict.h
doh.c doh: add options to disable ssl verification 2021-02-14 18:20:48 -05:00
doh.h hostip: remove conn->data from resolver functions 2021-01-22 08:25:09 +01:00
dotdot.c
dotdot.h
dynbuf.c
dynbuf.h
easy.c hostip: remove conn->data from resolver functions 2021-01-22 08:25:09 +01:00
easygetopt.c
easyif.h
easyoptions.c doh: add options to disable ssl verification 2021-02-14 18:20:48 -05:00
easyoptions.h
escape.c
escape.h
file.c curl_range: remove conn->data 2021-01-20 14:59:11 +01:00
file.h
fileinfo.c
fileinfo.h
firefox-db2pem.sh
formdata.c
formdata.h copyright: fix missing year (range) updates 2021-01-29 14:35:13 +01:00
ftp.c ftp: fix Codacy/cppcheck warning about null pointer arithmetic 2021-02-10 16:46:52 +01:00
ftp.h lib: save a bit of space with some structure packing 2021-01-20 22:52:34 -05:00
ftplistparser.c lib: remove redundant code 2021-02-10 16:47:27 +01:00
ftplistparser.h
getenv.c
getinfo.c urldata: move 'followlocation' to UrlState 2021-02-09 08:22:45 +01:00
getinfo.h
gopher.c vtls: reduce conn->data use 2021-01-19 09:14:40 +01:00
gopher.h
hash.c
hash.h
hmac.c
hostasyn.c hostip: remove conn->data from resolver functions 2021-01-22 08:25:09 +01:00
hostcheck.c
hostcheck.h
hostip4.c hostip: remove conn->data from resolver functions 2021-01-22 08:25:09 +01:00
hostip6.c hostip: remove conn->data from resolver functions 2021-01-22 08:25:09 +01:00
hostip.c hostip: fix crash in sync resolver builds that use DOH 2021-02-13 23:03:58 -05:00
hostip.h hostip/proxy: remove conn->data use 2021-01-26 10:04:47 +01:00
hostsyn.c
hsts.c copyright: fix missing year (range) updates 2021-01-29 14:35:13 +01:00
hsts.h
http2.c urldata: remove duplicate 'upkeep_interval_ms' from connectdata 2021-01-27 09:19:08 +01:00
http2.h lib: pass in 'struct Curl_easy *' to most functions 2021-01-17 23:56:09 +01:00
http_aws_sigv4.c http: use credentials from transfer, not connection 2021-02-13 22:36:15 +01:00
http_aws_sigv4.h lib: remove conn->data uses 2021-01-24 18:15:03 +01:00
http_chunks.c Curl_chunker: shrink the struct 2021-01-27 08:48:08 +01:00
http_chunks.h Curl_chunker: shrink the struct 2021-01-27 08:48:08 +01:00
http_digest.c http: use credentials from transfer, not connection 2021-02-13 22:36:15 +01:00
http_digest.h http: use credentials from transfer, not connection 2021-02-13 22:36:15 +01:00
http_negotiate.c lib: remove conn->data uses 2021-01-24 18:15:03 +01:00
http_negotiate.h lib: remove conn->data uses 2021-01-24 18:15:03 +01:00
http_ntlm.c http: use credentials from transfer, not connection 2021-02-13 22:36:15 +01:00
http_ntlm.h lib: more conn->data cleanups 2021-01-19 09:14:51 +01:00
http_proxy.c http_proxy: fix typo in http_proxy.c 2021-02-09 08:21:56 +01:00
http_proxy.h hostip/proxy: remove conn->data use 2021-01-26 10:04:47 +01:00
http.c http: use credentials from transfer, not connection 2021-02-13 22:36:15 +01:00
http.h lib: remove conn->data uses 2021-01-26 15:19:41 +01:00
idn_win32.c
if2ip.c
if2ip.h
imap.c pingpong: rename the curl_pp_transfer enum to use PP prefix 2021-02-04 23:06:03 +01:00
imap.h
inet_ntop.c
inet_ntop.h
inet_pton.c
inet_pton.h
krb5.c lib: remove conn->data uses 2021-01-26 15:19:41 +01:00
ldap.c lib: remove conn->data uses 2021-01-26 15:19:41 +01:00
libcurl.plist
libcurl.rc
libcurl.vers.in
llist.c
llist.h
Makefile.am
makefile.amiga
makefile.dj copyright: fix missing year (range) updates 2021-01-29 14:35:13 +01:00
Makefile.inc vtls: initial implementation of rustls backend 2021-02-09 11:06:18 +01:00
Makefile.m32 Makefile.m32: add support for libgsasl dependency 2021-02-10 18:48:29 +00:00
Makefile.netware
Makefile.vxworks
md4.c
md5.c
memdebug.c lib: remove redundant code 2021-02-10 16:47:27 +01:00
memdebug.h
mime.c mime: make sure setting MIMEPOST to NULL resets properly 2021-01-15 08:33:27 +01:00
mime.h copyright: fix missing year (range) updates 2021-01-29 14:35:13 +01:00
mk-ca-bundle.pl copyright: fix missing year (range) updates 2021-01-29 14:35:13 +01:00
mk-ca-bundle.vbs
mprintf.c
mqtt.c lib: pass in 'struct Curl_easy *' to most functions 2021-01-17 23:56:09 +01:00
mqtt.h
multi.c urldata: don't touch data->set.httpversion at run-time 2021-02-12 08:13:37 +01:00
multihandle.h lib: drop USE_SOCKETPAIR in favor of CURL_DISABLE_SOCKETPAIR 2021-02-09 02:47:51 -05:00
multiif.h lib: pass in 'struct Curl_easy *' to most functions 2021-01-17 23:56:09 +01:00
netrc.c
netrc.h
non-ascii.c
non-ascii.h
nonblock.c
nonblock.h
nwlib.c
nwos.c
openldap.c hostip/proxy: remove conn->data use 2021-01-26 10:04:47 +01:00
optiontable.pl
parsedate.c
parsedate.h
pingpong.c pingpong: remove the 'conn' struct member 2021-01-26 10:12:59 +01:00
pingpong.h pingpong: rename the curl_pp_transfer enum to use PP prefix 2021-02-04 23:06:03 +01:00
pop3.c ftp: add 'list_only' to the transfer state struct 2021-02-09 14:06:28 +01:00
pop3.h lib: save a bit of space with some structure packing 2021-01-20 22:52:34 -05:00
progress.c lib: more conn->data cleanups 2021-01-19 09:14:51 +01:00
progress.h lib: more conn->data cleanups 2021-01-19 09:14:51 +01:00
psl.c
psl.h
quic.h quic: remove conn->data use 2021-01-19 16:56:35 +01:00
rand.c
rand.h
rename.c
rename.h
rtsp.c lib: remove conn->data uses 2021-01-24 18:15:03 +01:00
rtsp.h lib: remove conn->data uses 2021-01-24 18:15:03 +01:00
select.c select: convert Curl_select() to private static function 2021-01-27 09:05:31 +01:00
select.h select: convert Curl_select() to private static function 2021-01-27 09:05:31 +01:00
sendf.c lib: remove redundant code 2021-02-10 16:47:27 +01:00
sendf.h lib: pass in 'struct Curl_easy *' to most functions 2021-01-17 23:56:09 +01:00
setopt.c doh: add options to disable ssl verification 2021-02-14 18:20:48 -05:00
setopt.h
setup-os400.h
setup-vms.h
setup-win32.h
sha256.c
share.c urldata: make magic be the first struct field 2021-01-20 08:51:01 +01:00
share.h urldata: make magic be the first struct field 2021-01-20 08:51:01 +01:00
sigpipe.h
slist.c
slist.h
smb.c transfer: remove conn->data use 2021-01-19 17:07:02 +01:00
smb.h
smtp.c pingpong: rename the curl_pp_transfer enum to use PP prefix 2021-02-04 23:06:03 +01:00
smtp.h lib: save a bit of space with some structure packing 2021-01-20 22:52:34 -05:00
sockaddr.h
socketpair.c
socketpair.h lib: drop USE_SOCKETPAIR in favor of CURL_DISABLE_SOCKETPAIR 2021-02-09 02:47:51 -05:00
socks_gssapi.c lib: more conn->data cleanups 2021-01-19 09:14:51 +01:00
socks_sspi.c lib: more conn->data cleanups 2021-01-19 09:14:51 +01:00
socks.c hostip/proxy: remove conn->data use 2021-01-26 10:04:47 +01:00
socks.h lib: more conn->data cleanups 2021-01-19 09:14:51 +01:00
speedcheck.c
speedcheck.h
splay.c
splay.h
strcase.c
strcase.h
strdup.c
strdup.h
strerror.c copyright: fix missing year (range) updates 2021-01-29 14:35:13 +01:00
strerror.h
strtok.c
strtok.h
strtoofft.c
strtoofft.h
system_win32.c
system_win32.h
telnet.c lib: save a bit of space with some structure packing 2021-01-20 22:52:34 -05:00
telnet.h
tftp.c lib: remove redundant code 2021-02-10 16:47:27 +01:00
tftp.h
timeval.c
timeval.h
transfer.c http: use credentials from transfer, not connection 2021-02-13 22:36:15 +01:00
transfer.h transfer: remove conn->data use 2021-01-19 17:07:02 +01:00
url.c doh: add options to disable ssl verification 2021-02-14 18:20:48 -05:00
url.h url: reduce conn->data references 2021-01-26 10:00:59 +01:00
urlapi-int.h
urlapi.c
urldata.h doh: add options to disable ssl verification 2021-02-14 18:20:48 -05:00
version_win32.c
version_win32.h
version.c curl: provide libgsasl version and feature info in -V output 2021-02-11 16:16:45 +01:00
warnless.c warnless: remove curlx_ultosi 2021-01-26 16:30:29 +01:00
warnless.h warnless.h: remove the prototype for curlx_ultosi 2021-01-26 16:32:27 +01:00
wildcard.c
wildcard.h
x509asn1.c lib: pass in 'struct Curl_easy *' to most functions 2021-01-17 23:56:09 +01:00
x509asn1.h lib: pass in 'struct Curl_easy *' to most functions 2021-01-17 23:56:09 +01:00