netcdf-c/oc2
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
..
auth.html.in Misc. source comment typos 2018-04-26 23:04:01 -04:00
CMakeLists.txt nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
dap.y nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
daplex.c Thread safety: step 1: cleanup 2019-03-30 14:06:20 -06:00
dapparse.c nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
dapparselex.h nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
dapy.c Fix for github issue https://github.com/Unidata/netcdf-c/issues/310. 2017-06-28 13:51:01 -06:00
dapy.h Fix for Github issue 314. 2016-09-01 22:06:07 -06:00
dodsrc.example
Makefile.am nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
oc.c Spelling fixes 2019-09-18 08:03:01 -06:00
oc.css Github issue 152: https://github.com/Unidata/netcdf-c/issues/152 2015-11-29 20:38:12 -07:00
oc.h Thread safety: step 1: cleanup 2019-03-30 14:06:20 -06:00
occompile.c Fix errors when building on big-endian machine 2019-01-31 21:13:06 -07:00
occompile.h nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
occonstraints.h nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
occurlflags.c Add support for CURLOPT_CONNECTTIMEOUT 2020-01-09 11:48:04 -07:00
occurlfunctions.c Use proper CURLOPT values for VERIFYHOST and VERIFYPEER 2020-04-10 13:42:27 -06:00
occurlfunctions.h nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
ocdata.c nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
ocdata.h nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
ocdatatypes.h nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
ocdebug.c nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
ocdebug.h nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
ocdump.c Thread safety: step 1: cleanup 2019-03-30 14:06:20 -06:00
ocdump.h nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
ochttp.c Add support for CURLOPT_CONNECTTIMEOUT 2020-01-09 11:48:04 -07:00
ochttp.h nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
ocinternal.c Force error report when DAP gets error response. 2020-03-11 13:36:20 -06:00
ocinternal.h nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
ocnode.c nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
ocnode.h nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
ocread.c nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
ocread.h nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
ocutil.c Spelling fixes 2019-09-18 08:03:01 -06:00
ocutil.h Thread safety: step 1: cleanup 2019-03-30 14:06:20 -06:00
ocx.h nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
xxdr.c nctest, oc2 files updated. 2018-12-06 15:47:47 -07:00
xxdr.h Spelling fixes 2019-09-18 08:03:01 -06:00