Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,13 @@ static S3Status compose_auth_header(const RequestParams *params,
printf("--\nCanonical Request:\n%s\n", canonicalRequest);
#endif

if (params->bucketContext.accessKeyId == NULL || params->bucketContext.secretAccessKey == NULL) {
#ifdef SIGNATURE_DEBUG
printf("--\nNo authorization header\n");
#endif
return S3StatusOK;
}

len = 0;
unsigned char canonicalRequestHash[S3_SHA256_DIGEST_LENGTH];
#ifdef __APPLE__
Expand Down