]> git.ipfire.org Git - thirdparty/curl.git/commit
doh: add options to disable ssl verification
authorJay Satiro <raysatiro@yahoo.com>
Thu, 11 Feb 2021 22:09:59 +0000 (17:09 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 14 Feb 2021 23:20:48 +0000 (18:20 -0500)
commit53022e1893de74b73554396b697f5a06cc7bc3f2
treec771a0d256d150a43481f1b48b13656a6d9f4b93
parentb68026f7f4f4f99926fabf7f7b8ec948d5fcdc72
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
22 files changed:
docs/cmdline-opts/Makefile.inc
docs/cmdline-opts/cert-status.d
docs/cmdline-opts/doh-cert-status.d [new file with mode: 0644]
docs/cmdline-opts/doh-insecure.d [new file with mode: 0644]
docs/libcurl/curl_easy_setopt.3
docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYHOST.3 [new file with mode: 0644]
docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYPEER.3 [new file with mode: 0644]
docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYSTATUS.3 [new file with mode: 0644]
docs/libcurl/opts/Makefile.inc
docs/libcurl/symbols-in-versions
docs/options-in-versions
include/curl/curl.h
lib/doh.c
lib/easyoptions.c
lib/setopt.c
lib/url.c
lib/urldata.h
packages/OS400/curl.inc.in
src/tool_cfgable.h
src/tool_getparam.c
src/tool_help.c
src/tool_operate.c