netcdf-c/include
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
..
.gitignore
ceconstraints.h
CMakeLists.txt
err_macros.h
fbits.h
hdf4dispatch.h
hdf5dispatch.h
hdf5internal.h
isnan.h
Makefile.am
nc3dispatch.h
nc3internal.h
nc4dispatch.h
nc4internal.h Merge branch 'dimscale_attachement_optional' of https://github.com/gsjaardema/netcdf-c into gh2161.wif 2022-04-19 11:06:34 -06:00
nc_hashmap.h
nc_logging.h
nc_provenance.h
nc_tests.h
nc.h
ncauth.h
ncbytes.h
ncconfigure.h
nccrc.h
ncdap.h
ncdimscale.h
ncdispatch.h fixed parallel functions for netcdf-fortran build 2022-04-24 05:41:14 -06:00
ncexhash.h
ncexternl.h
nchashmap.h
nchttp.h
ncindex.h
ncjson.h Allow the read/write of JSON-valued Zarr attributes. 2022-04-06 18:22:59 -06:00
nclist.h
nclog.h
ncmodel.h
ncoffsets.h
ncpathmgr.h
ncrc.h Make public a limited API for programmatic access to internal .rc tables 2022-06-17 14:35:12 -06:00
ncs3sdk.h
nctestserver.h restore 2022-04-29 12:36:33 -06:00
nctime.h
ncuri.h
ncurlmodel.h
ncutf8.h
ncxcache.h
ncxml.h Fix dll exports for ncxml 2022-04-12 19:16:58 +10:00
netcdf_aux.h
netcdf_dispatch.h.in
netcdf_f.h
netcdf_filter_build.h Support installation of filters into user-specified location 2022-04-29 14:31:55 -06:00
netcdf_filter_hdf5_build.h
netcdf_filter.h added netcdf_filter.h to doxygen build 2022-05-04 13:12:48 -06:00
netcdf_json.h
netcdf_mem.h
netcdf_meta.h.in added BENCHMARKS to the summary 2022-04-26 06:18:52 -06:00
netcdf_par.h
netcdf.h Make public a limited API for programmatic access to internal .rc tables 2022-06-17 14:35:12 -06:00
onstack.h
rnd.h
XGetopt.h