mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-21 08:39:46 +08:00
27f615bebc
NOTE: it is important that this fix gets into 4.9.3 re: Issue https://github.com/Unidata/netcdf-c/issues/2798 ## Modifications * This PR includes PR https://github.com/Unidata/netcdf-c/pull/2813 * Support the following AWS environment variables in the internal S3 library (they are already supported by aws-sdk-cpp). - AWS_REGION - AWS_DEFAULT_REGION - AWS_ACCESS_KEY_ID - AWS_CONFIG_FILE - AWS_PROFILE - AWS_SECRET_ACCESS_KEY - (source https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html). * Support an empty region when specifying s3.amazonaws.com as the host. * Move some S3/AWS related functions to ds3util.c * Add a test case to test empty region and AWS_[DEFAULT]_REGION.
56 lines
1.8 KiB
C
56 lines
1.8 KiB
C
/*********************************************************************
|
|
* Copyright 2018, UCAR/Unidata
|
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
|
* ********************************************************************/
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
* Copyright by The HDF Group. *
|
|
* All rights reserved. *
|
|
* *
|
|
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
|
* terms governing use, modification, and redistribution, is contained in *
|
|
* the COPYING file, which can be found at the root of the source code *
|
|
* distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
|
|
* If you do not have access to either file, you may request a copy from *
|
|
* help@hdfgroup.org. *
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
/*
|
|
* Programmer: Dennis Heimbigner (dmh@ucar.edu)
|
|
* Dec. 26 2018
|
|
*
|
|
* Purpose: The public header file for the s3 driver.
|
|
*
|
|
* Derived from the HDF5 Source file H5FDstdio.c
|
|
*/
|
|
|
|
#ifndef H5FDHTTP_H
|
|
#define H5FDHTTP_H
|
|
|
|
#include "H5Ipublic.h"
|
|
|
|
#if H5_VERSION_GE(1,13,2)
|
|
#define H5_VFD_HTTP ((H5FD_class_value_t)(514))
|
|
#define H5FD_HTTP (H5FDperform_init(H5FD_http_init))
|
|
#else
|
|
#define H5FD_HTTP (H5FD_http_init())
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if 0
|
|
H5_DLL hid_t H5FD_http_init(void);
|
|
H5_DLL herr_t H5Pset_fapl_http(hid_t fapl_id);
|
|
#else
|
|
EXTERNL hid_t H5FD_http_init(void);
|
|
EXTERNL herr_t H5Pset_fapl_http(hid_t fapl_id);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /*H5FDHTTP_H*/
|