Some clients (Mountpoint) might want to disable actually sending upload
checksums when talking to S3 endpoints that don't support the additional
checksums feature. But they still want to use the upload review callback
to at least check that the parts sent matched the checksums they expect,
to detect corruption while parts were sitting in CRT memory before being sent.
This change makes it possible to set a checksum location of AWS_SCL_NONE
while still computing checksums for each upload part. The upload review
callback will be invoked as normal, including per-part checksums, but the
checksums won't be included in the requests sent to S3.
(My C is pretty rusty these days, so, uh, feedback welcome)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Some clients (Mountpoint) might want to disable actually sending upload checksums when talking to S3 endpoints that don't support the additional checksums feature. But they still want to use the upload review callback to at least check that the parts sent matched the checksums they expect, to detect corruption while parts were sitting in CRT memory before being sent. This change makes it possible to set a checksum location of AWS_SCL_NONE while still computing checksums for each upload part. The upload review callback will be invoked as normal, including per-part checksums, but the checksums won't be included in the requests sent to S3.
(My C is pretty rusty these days, so, uh, feedback welcome)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.