rgw/sse-s3: +get_encryption_defaults, use new crypt_attribute_map
putobj and postobj: get_encryption_defaults
this fetches bucketencryption policy and resolves defaults.
also errors for various conflicts between parameters (& policy).
verify_permisions
fetch encryption attributes from crypt_attribute_map not x_meta_map
for postobj, x_meta_map only gets meta attributes, not sse.
if bucketencryption policy exists, it *may* be correct to
prepopulate this before bucket policy sees it.
map_qs_metadata
for putobj it now also copies sse attributes into crypt_attribute_map.
Signed-off-by: Marcus Watts <mwatts@redhat.com>
(cherry picked from commit
464fda8bcd2e3b605d94d68a9e530148846e9297)