Skip to content

How to set useVirtualAddressing=false for S3EncryptionClient #3388

Answered by sbiscigl
zmw132 asked this question in Q&A
Discussion options

You must be logged in to vote

that is now merged and you should be able to do something like this on the latest version.

#include <aws/core/Aws.h>
#include <aws/s3-encryption/S3EncryptionClient.h>

using namespace Aws;
using namespace Aws::S3Encryption;
using namespace Aws::S3;
using namespace Aws::Utils;

namespace {
const char* LOG_TAG = "test-app";
}

auto main() -> int {
  SDKOptions options{};
  options.loggingOptions.logLevel = Logging::LogLevel::Debug;
  InitAPI(options);
  {
    CryptoBuffer symmetric_key{ByteBuffer{"symmetric_key"}};
    const auto simple_materials =
        Aws::MakeShared<Materials::SimpleEncryptionMaterialsWithGCMAAD>(
            LOG_TAG, symmetric_key);
    CryptoConfigurationV2 configur…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sbiscigl
Comment options

@sbiscigl
Comment options

Answer selected by zmw132
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants