netcdf-c/libsrc4
Dennis Heimbigner aabbdbf64c Make public a limited API for programmatic access to internal .rc tables
re: https://github.com/Unidata/netcdf-c/issues/2337
re: https://github.com/Unidata/netcdf-c/issues/2407

Add two functions to netcdf.h to allow programs to get/set
selected entries into the internal .rc tables. This should fix
the above issues by allowing HTTP.CAINFO to be set to the
certificates directory.  Note that the changes should be
performed as early as possible in the program because some of
the .rc table entries may get cached internally and changing the
entry after that caching occurs may have no effect.

The new signatures are as follows:

1. Get the value of a simple .rc entry of the form "key=value".
Note that caller must free the returned value, which might be NULL.
````
char* nc_rc_get(char* const * key);

@param key table entry key
@return value if .rc table has entry of the form key=value
@return NULL if no such entry is found.
````

2. Insert/Overwrite the specified key=value pair in the .rc table.
````
int nc_rc_set(const char* key, const char* value);

@param key table entry key -- may not be NULL
@param value table entry value -- may not be NULL
@return NC_NOERR if no error
@return NC_EINVAL if error
````

Addendum:

re: https://github.com/Unidata/netcdf-c/issues/2407

Modify dhttp.c to use the .rc entry HTTP.CAINFO if defined.
2022-06-17 14:35:12 -06:00
..
CMakeLists.txt starting to make logging output files for each process for parallel IO builds 2022-02-04 10:35:15 -07:00
Makefile.am starting to make logging output files for each process for parallel IO builds 2022-02-04 10:35:15 -07:00
nc4attr.c Fix various problem around VLEN's 2022-01-08 18:30:00 -07:00
nc4cache.c Add support for setting HDF5 alignment property when creating a file 2022-01-29 15:27:52 -07:00
nc4dim.c Regularize the scoping of dimensions 2021-05-31 15:51:12 -06:00
nc4dispatch.c Add support for multiple filters per variable. 2020-02-16 12:59:33 -07:00
nc4filters.c Mostly revert the filter code to reduce its complexity of use. 2020-09-27 12:43:46 -06:00
nc4grp.c Regularize the scoping of dimensions 2021-05-31 15:51:12 -06:00
nc4internal.c Make public a limited API for programmatic access to internal .rc tables 2022-06-17 14:35:12 -06:00
nc4type.c 1. Fix an additional flaw in fill_value handling where non-atomic default values were not properly being handled. 2022-01-10 15:27:16 -07:00
nc4var.c Merge branch 'csz_bitround' of https://github.com/nco/netcdf-c into gh2232.wif 2022-04-01 10:43:34 -06:00
ncfunc.c Spelling fixes 2019-09-18 08:03:01 -06:00
ncindex.c Provide a Number of fixes/improvements to NCZarr 2020-11-19 17:01:04 -07:00