Skip to content

Commit

Permalink
ifdef out the use of usesServerSideEncryption
Browse files Browse the repository at this point in the history
That field exists in S3ResponseProperties on the master branch of the
libs3 repo, but not on the "2.0" branch that Ubuntu 18.04 packages, so
the minimal usage of that field has been #ifdef'd out.  If it's really
desired, define the HAS_USESSERVERSIDEENCRYPTION macro when compiling.

Fixes #2
  • Loading branch information
david-macmahon committed Mar 15, 2018
1 parent 7532d66 commit 8db9d2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/s3util.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,11 @@ S3Status responsePropertiesCallback (const S3ResponseProperties *properties, voi
printf("x-amz-meta-%s: %s\n", properties->metaData[i].name,
properties->metaData[i].value);
}
#ifdef HAS_USESSERVERSIDEENCRYPTION
if (properties->usesServerSideEncryption) {
printf("UsesServerSideEncryption: true\n");
}
#endif

return S3StatusOK;
}
Expand Down

0 comments on commit 8db9d2a

Please sign in to comment.