mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
aabbdbf64c
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. |
||
---|---|---|
.. | ||
bm_chunking.c | ||
bm_radar.c | ||
bzip2.cdl | ||
cdm_sea_soundings.c | ||
clear_cache.sh | ||
CMakeLists.txt | ||
findplugin.in | ||
h5testszip.c | ||
Makefile.am | ||
noop1.cdl | ||
noop.cdl | ||
ref_any.cdl | ||
ref_bzip2.c | ||
ref_fillonly.cdl | ||
ref_filter_order_create.txt | ||
ref_filter_order_read.txt | ||
ref_filter_repeat.txt | ||
ref_filtered.cdl | ||
ref_filteredvv.cdl | ||
ref_filterx_hdf5.txt | ||
ref_hdf5_compat1.nc | ||
ref_hdf5_compat2.nc | ||
ref_hdf5_compat3.nc | ||
ref_multi.cdl | ||
ref_nccopyF.cdl | ||
ref_ncgenF.cdl | ||
ref_szip.cdl | ||
ref_szip.h5 | ||
ref_tst_compounds.nc | ||
ref_tst_dims.nc | ||
ref_tst_interops4.nc | ||
ref_tst_xplatform2_1.nc | ||
ref_tst_xplatform2_2.nc | ||
ref_unfiltered.cdl | ||
ref_unfilteredvv.cdl | ||
renamegroup.c | ||
run_empty_vlen_test.sh | ||
run_grp_rename.sh | ||
run_par_test.sh.in | ||
t_type.c | ||
tdset.h5 | ||
test_fillonly.sh | ||
test_filter_misc.c | ||
test_filter_order.c | ||
test_filter_reg.c | ||
test_filter_repeat.c | ||
test_filter_vlen.c | ||
test_filter.c | ||
test_filterx_hdf5.c | ||
test_szip.c | ||
test_wrapper.in | ||
tst_alignment.c | ||
tst_atts1.c | ||
tst_atts2.c | ||
tst_atts3.c | ||
tst_atts_string_rewrite.c | ||
tst_atts.c | ||
tst_broken_files.c | ||
tst_bug324.c | ||
tst_bug1442.c | ||
tst_camrun.c | ||
tst_charvlenbug.c | ||
tst_chunks2.c | ||
tst_chunks.c | ||
tst_compounds2.c | ||
tst_compounds3.c | ||
tst_compounds.c | ||
tst_converts2.c | ||
tst_converts.c | ||
tst_coords2.c | ||
tst_coords3.c | ||
tst_coords.c | ||
tst_dims2.c | ||
tst_dims3.c | ||
tst_dims.c | ||
tst_elatefill.c | ||
tst_empty_vlen_unlim.c | ||
tst_endian_fill.c | ||
tst_enums.c | ||
tst_files4.c | ||
tst_files5.c | ||
tst_files6.c | ||
tst_files.c | ||
tst_fill_attr_vanish.c | ||
tst_fillbug.c | ||
tst_fillonly.c | ||
tst_fills2.c | ||
tst_fills.c | ||
tst_filter_avail.c | ||
tst_filter.sh | ||
tst_filterinstall.sh | ||
tst_filterparser.c | ||
tst_grps2.c | ||
tst_grps.c | ||
tst_h5_endians.c | ||
tst_h_converts.c | ||
tst_h_refs.c | ||
tst_h_scalar.c | ||
tst_h_strbug.c | ||
tst_h_strings3.c | ||
tst_h_vl2.c | ||
tst_hdf5_file_compat.c | ||
tst_interops4.c | ||
tst_interops5.c | ||
tst_interops6.c | ||
tst_interops_dims.c | ||
tst_interops.c | ||
tst_large2.c | ||
tst_large3.c | ||
tst_large5.c | ||
tst_large.c | ||
tst_misc.sh | ||
tst_mode.c | ||
tst_mpi_parallel.c | ||
tst_multifilter.c | ||
tst_nc4perf.c | ||
tst_nc_converts.c | ||
tst_opaques.c | ||
tst_parallel3.c | ||
tst_parallel4.c | ||
tst_parallel5.c | ||
tst_parallel6.c | ||
tst_parallel_compress.c | ||
tst_parallel_zlib.c | ||
tst_parallel.c | ||
tst_put_vars_two_unlim_dim.c | ||
tst_put_vars.c | ||
tst_quantize_par.c | ||
tst_quantize.c | ||
tst_rehash.c | ||
tst_rename2.c | ||
tst_rename3.c | ||
tst_rename.c | ||
tst_simplerw_coll_r.c | ||
tst_specific_filters.sh | ||
tst_strings2.c | ||
tst_strings.c | ||
tst_sync.c | ||
tst_szip.sh | ||
tst_types.c | ||
tst_udf.c | ||
tst_unknown.sh | ||
tst_unlim_vars.c | ||
tst_utf8.c | ||
tst_v2.c | ||
tst_varms.c | ||
tst_vars2.c | ||
tst_vars3.c | ||
tst_vars4.c | ||
tst_vars.c | ||
tst_varsperf.c | ||
tst_virtual_datasets.c | ||
tst_vl.c | ||
tst_vlenstr.c | ||
tst_xplatform2.c | ||
tst_xplatform.c | ||
unknown.cdl |