diff options
| author | Mistivia <i@mistivia.com> | 2025-12-20 17:23:54 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-12-20 17:25:36 +0800 |
| commit | 05233a9bc6520190eb9550cb4a3cdf63d241ab71 (patch) | |
| tree | 416db5aa1e37e598dd9f79a4281af33bf0f015d1 /s3_client.cpp | |
| parent | 5e3d349b3fcf4a219ea7540059076ab7beed8ed2 (diff) | |
add windows support
Diffstat (limited to 's3_client.cpp')
| -rw-r--r-- | s3_client.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/s3_client.cpp b/s3_client.cpp index 8ef235b..28ab669 100644 --- a/s3_client.cpp +++ b/s3_client.cpp @@ -29,8 +29,10 @@ void S3Client_init() { Aws::Auth::AWSCredentials credentials; config.endpointOverride = ezlive_config->endpoint; config.region = ezlive_config->region; +#if !defined(_WIN32) config.checksumConfig.requestChecksumCalculation = Aws::Client::RequestChecksumCalculation::WHEN_REQUIRED; config.checksumConfig.responseChecksumValidation = Aws::Client::ResponseChecksumValidation::WHEN_REQUIRED; +#endif credentials = Aws::Auth::AWSCredentials(ezlive_config->access_key, ezlive_config->secret_key); s3client = new Aws::S3::S3Client(credentials, nullptr, config); } |
