mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
6b69b9c52c
## S3 Related Fixes * Add comprehensive support for specifying AWS profiles to provide access credentials. * Parse the files "~/.aws/config" and "~/.aws/credentials to provide credentials for the HDF5 ROS3 driver and to locate default region. * Add a function to obtain the currently active S3 credentials. The search rules are defined in docs/nczarr.md. * Provide documentation for the new features. * Modify the struct NCauth (in include/ncauth.h) to replace specific S3 credentials with a profile name. * Add a unit test to test the operation of profile and credentials management. * Add support for URLS of the form "s3://<bucket>/<key>"; this requires obtaining a default region. * Allows the specification of profile and/or region in a URL of the form "#mode=nczarr,...&aws.region=...&aws.profile=..." ## Misc. Fixes * Move the ezxml code to libdispatch so that it can be used both by DAP4 and nczarr. * Modify nclist to provide a deep clone operation. * Modify ncuri to provide a deep clone operation. * Modify the .rc file format to allow the specification of a path to be tested when looking for an entry in the .rc file. * Ensure that the NC_rcload function is called. * Modify nchttp to support setting request headers.
28 lines
556 B
C
28 lines
556 B
C
/*
|
|
* Copyright 1998-2018 University Corporation for Atmospheric Research/Unidata
|
|
* See the LICENSE file for more information.
|
|
*/
|
|
|
|
/**
|
|
Extra ezxml functionality
|
|
*/
|
|
|
|
#include "ezxml.h"
|
|
|
|
/**
|
|
Get list of all the xml attributes.
|
|
Returns NULL, if none
|
|
WARNING: returns actual list, so do not free
|
|
*/
|
|
const char**
|
|
ezxml_all_attr(ezxml_t xml, int* countp)
|
|
{
|
|
if(xml && xml->attr) {
|
|
char** p;
|
|
int count = 0;
|
|
for(p=xml->attr;*p;p+=2) count += 2; /* get number of attributes */
|
|
return (const char**)xml->attr;
|
|
}
|
|
return NULL;
|
|
}
|