This commit is contained in:
Dennis Heimbigner 2023-04-29 19:45:51 -06:00
parent cccbc2ebea
commit 75e3012ff3
2 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,7 @@
/* Local Macros */ /* Local Macros */
/****************/ /****************/
#define TRACING #undef TRACING
#undef DEBUG #undef DEBUG
#define SUCCEED NC_NOERR #define SUCCEED NC_NOERR

View File

@ -178,6 +178,8 @@ NC_s3sdkcreateclient(NCS3INFO* info)
if(info->profile != NULL) { if(info->profile != NULL) {
if((stat = NC_s3profilelookup(info->profile, "aws_access_key_id", &accessid))) goto done; if((stat = NC_s3profilelookup(info->profile, "aws_access_key_id", &accessid))) goto done;
if((stat = NC_s3profilelookup(info->profile, "aws_secret_access_key", &accesskey))) goto done; if((stat = NC_s3profilelookup(info->profile, "aws_secret_access_key", &accesskey))) goto done;
fprintf(stderr,">>> (x) aws_access_key_id=%s\n",accessid);
fprintf(stderr,">>> (x) aws_secret_access_key=%s\n",accesskey);
} }
if((s3client->rooturl = makes3rooturl(info))==NULL) {stat = NC_ENOMEM; goto done;} if((s3client->rooturl = makes3rooturl(info))==NULL) {stat = NC_ENOMEM; goto done;}
s3client->h5s3client = NCH5_s3comms_s3r_open(s3client->rooturl,info->region,accessid,accesskey); s3client->h5s3client = NCH5_s3comms_s3r_open(s3client->rooturl,info->region,accessid,accesskey);