Skip to content

Commit 046c08f

Browse files
committed
use constants for reserved EC keys
1 parent ce40520 commit 046c08f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/aws-cpp-sdk-s3-encryption/source/s3-encryption/S3EncryptionClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ namespace Aws
7777
// everything in stored, if it does not begin with 'amz:' must be in passed.
7878
// if it is, then we already checked the value
7979
for (const auto& pair : stored) {
80-
if (strcmp(pair.first.c_str(), "aws:x-amz-cek-alg") && strcmp(pair.first.c_str(), "kms_cmk_id")) {
80+
if (strcmp(pair.first.c_str(), Materials::kmsEncryptionContextKey)
81+
&& strcmp(pair.first.c_str(),Materials::cmkID_Identifier)) {
8182
auto it = passed.find(pair.first);
8283
if (it == passed_end) return false;
8384
}

0 commit comments

Comments
 (0)