netcdf-c/libdap4
Dennis Heimbigner 313121a229 Use proper CURLOPT values for VERIFYHOST and VERIFYPEER
re: https://github.com/Unidata/netcdf-c/issues/1684
re: e-support VZL-904142

Two issues:
1. As of libcurl 7.66, the semantics of CURLOPT_SSL_VERIFYHOST
   changed so that the non-zero values affects certificate processing.
2. The current library was forcing the values of VERIFYPEER
   and VERIFYHOST to zero instead of leaving them to the default values.

Solution was first to leave the defaults in place for VERIFYPEER and VERIFYHOST
as long as they are not set in .ocrc/.dodsrc file.
Second, the value of HTTP.SSL.VERIFYPEER or HTTP.SSL.VERIFYHOST
as set in .ocrc/.dodrc is used to set the corresponding CURLOPT flags.
So for example, adding
> HTTP.SSL.VERIFYHOST=2
will set the value of CURLOPT_SSL_VERIFYHOST to 2, the default.
Using
> HTTP.SSL.VERIFYHOST=0
will set the value of CURLOPT_SSL_VERIFYHOST to 0, which disables it.
Similarly for VERIFYPEER.

Finally the semantics of HTTP.SSL.VALIDATE is now equivalent to
> HTTP.SSL.VERIFYPEER=1
> HTTP.SSL.VERIFYHOST=2
2020-04-10 13:42:27 -06:00
..
CMakeLists.txt Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4bytes.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4bytes.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4chunk.c Make the dap4 code resistant to various server errors. 2020-01-08 15:18:31 -07:00
d4chunk.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4crc32.c Modify DAP2 and DAP4 to optionally allow Fillvalue/Variable mismatch 2018-10-01 15:51:43 -06:00
d4curlflags.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4curlfunctions.c Use proper CURLOPT values for VERIFYHOST and VERIFYPEER 2020-04-10 13:42:27 -06:00
d4curlfunctions.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4cvt.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4data.c Fix errors when building on big-endian machine 2019-01-31 21:13:06 -07:00
d4debug.c Thread safety: step 1: cleanup 2019-03-30 14:06:20 -06:00
d4debug.h Fix errors when building on big-endian machine 2019-01-31 21:13:06 -07:00
d4dump.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4file.c Change (again), and hopefully simplify, the file model inference algorithm. 2019-09-29 12:59:28 -06:00
d4fix.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4http.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4http.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4includes.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4mem.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4meta.c Spelling fixes 2019-09-18 08:03:01 -06:00
d4odom.c Spelling fixes 2019-09-18 08:03:01 -06:00
d4odom.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4parser.c Force error report when DAP gets error response. 2020-03-11 13:36:20 -06:00
d4printer.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4read.c Thread safety: step 1: cleanup 2019-03-30 14:06:20 -06:00
d4read.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4swap.c Fix errors when building on big-endian machine 2019-01-31 21:13:06 -07:00
d4util.c Make the dap4 code resistant to various server errors. 2020-01-08 15:18:31 -07:00
d4util.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4varx.c Thread safety: step 1: cleanup 2019-03-30 14:06:20 -06:00
ezxml_extra.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
ezxml.c Thread safety: step 1: cleanup 2019-03-30 14:06:20 -06:00
ezxml.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
Makefile.am Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
ncd4.h Make the dap4 code resistant to various server errors. 2020-01-08 15:18:31 -07:00
ncd4dispatch.c Fix conflicts with master 2020-02-27 14:06:45 -07:00
ncd4dispatch.h removed NC from open in dispatch table 2019-08-01 14:30:20 -06:00
ncd4types.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00