Skip to content

Commit e61128a

Browse files
committed
cleanup
1 parent 0b50891 commit e61128a

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ if (LEGACY_BUILD)
6565
option(BUILD_OPTEL_OTLP_BENCHMARKS "Enables building the benchmark tests with open telemetry OTLP clients" OFF)
6666
option(USE_TLS_V1_2 "Set http client to enforce TLS 1.2" ON)
6767
option(USE_TLS_V1_3 "Set http client to enforce TLS 1.3" OFF)
68-
option(USE_OPENSSL "Set this if you want to use your system's OpenSSL 1.0.2/1.1.1 compatible libcrypto" ON)
6968

7069
set(AWS_USER_AGENT_CUSTOMIZATION "" CACHE STRING "User agent extension")
7170
set(AWS_TEST_REGION "US_EAST_1" CACHE STRING "Region to target integration tests against")

src/aws-cpp-sdk-core/include/aws/core/utils/base64/Base64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

src/aws-cpp-sdk-core/include/aws/core/utils/crypto/crt/CRTHMAC.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@ namespace Aws
1515
{
1616
namespace Crypto
1717
{
18-
class AWS_CORE_API CRT_SHA256HMAC : public HMAC
18+
class AWS_CORE_API CRTSha256Hmac : public HMAC
1919
{
2020
public:
2121
HashResult Calculate(const Aws::Utils::ByteBuffer& toSign, const Aws::Utils::ByteBuffer& secret) override;
22-
23-
// @private but made public for the sake of make_shared.
24-
CRT_SHA256HMAC() = default;
2522
};
2623
}
2724
}

src/aws-cpp-sdk-core/source/utils/crypto/CryptoBuf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ namespace Aws
9191
index += cryptoBuffer.GetLength();
9292
}
9393

94-
if (cryptoBuffer.GetLength())
94+
if (cryptoBuffer.GetLength() && m_cipher)
9595
{
9696
CryptoBuffer putBackArea(m_putBack);
9797

src/aws-cpp-sdk-core/source/utils/crypto/crt/CRTHMAC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Aws
1111
namespace Crypto
1212
{
1313

14-
HashResult CRT_SHA256HMAC::Calculate(const Aws::Utils::ByteBuffer &toSign, const Aws::Utils::ByteBuffer &secret)
14+
HashResult CRTSha256Hmac::Calculate(const Aws::Utils::ByteBuffer &toSign, const Aws::Utils::ByteBuffer &secret)
1515
{
1616
auto toSignCur = Crt::ByteCursorFromArray(toSign.GetUnderlyingData(), toSign.GetLength());
1717
auto secretCur = Crt::ByteCursorFromArray(secret.GetUnderlyingData(), secret.GetLength());

src/aws-cpp-sdk-core/source/utils/crypto/factory/Factories.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class DefaultSHA256HmacFactory : public HMACFactory
218218
std::shared_ptr<Aws::Utils::Crypto::HMAC> CreateImplementation() const override
219219
{
220220
#ifndef NO_ENCRYPTION
221-
return Aws::MakeShared<CRT_SHA256HMAC>(s_allocationTag);
221+
return Aws::MakeShared<CRTSha256Hmac>(s_allocationTag);
222222
#else
223223
return nullptr;
224224
#endif

0 commit comments

Comments
 (0)