]> granicus.if.org Git - curl/commit
doh: inherit some SSL options from user's easy handle
authorJay Satiro <raysatiro@yahoo.com>
Sat, 9 Mar 2019 08:16:33 +0000 (03:16 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 11 Mar 2019 05:50:12 +0000 (01:50 -0400)
commit9e6af114ea9e5fbc6d997a5409ff451c9086b29f
treebcc2e2d090ce700499703ef6bc79e38fe2d0fd7a
parentff7e5a29c781802ae5f37730e076df44a3936717
doh: inherit some SSL options from user's easy handle

- Inherit SSL options for the doh handle but not SSL client certs,
  SSL ALPN/NPN, SSL engine, SSL version, SSL issuer cert,
  SSL pinned public key, SSL ciphers, SSL id cache setting,
  SSL kerberos or SSL gss-api settings.

- Fix inheritance of verbose setting.

- Inherit NOSIGNAL.

There is no way for the user to set options for the doh (DNS-over-HTTPS)
handles and instead we inherit some options from the user's easy handle.

My thinking for the SSL options not inherited is they are most likely
not intended by the user for the DOH transfer. I did inherit insecure
because I think that should still be in control of the user.

Prior to this change doh did not work for me because CAINFO was not
inherited. Also verbose was set always which AFAICT was a bug (#3660).

Fixes https://github.com/curl/curl/issues/3660
Closes https://github.com/curl/curl/pull/3661
lib/doh.c