File tree Expand file tree Collapse file tree 6 files changed +5
-9
lines changed Expand file tree Collapse file tree 6 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ if (LEGACY_BUILD)
65
65
option (BUILD_OPTEL_OTLP_BENCHMARKS "Enables building the benchmark tests with open telemetry OTLP clients" OFF )
66
66
option (USE_TLS_V1_2 "Set http client to enforce TLS 1.2" ON )
67
67
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 )
69
68
70
69
set (AWS_USER_AGENT_CUSTOMIZATION "" CACHE STRING "User agent extension" )
71
70
set (AWS_TEST_REGION "US_EAST_1" CACHE STRING "Region to target integration tests against" )
Original file line number Diff line number Diff line change 1
1
/* *
2
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
* SPDX-License-Identifier: Apache-2.0.
4
4
*/
5
5
Original file line number Diff line number Diff line change @@ -15,13 +15,10 @@ namespace Aws
15
15
{
16
16
namespace Crypto
17
17
{
18
- class AWS_CORE_API CRT_SHA256HMAC : public HMAC
18
+ class AWS_CORE_API CRTSha256Hmac : public HMAC
19
19
{
20
20
public:
21
21
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 ;
25
22
};
26
23
}
27
24
}
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ namespace Aws
91
91
index += cryptoBuffer.GetLength ();
92
92
}
93
93
94
- if (cryptoBuffer.GetLength ())
94
+ if (cryptoBuffer.GetLength () && m_cipher )
95
95
{
96
96
CryptoBuffer putBackArea (m_putBack);
97
97
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ namespace Aws
11
11
namespace Crypto
12
12
{
13
13
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)
15
15
{
16
16
auto toSignCur = Crt::ByteCursorFromArray (toSign.GetUnderlyingData (), toSign.GetLength ());
17
17
auto secretCur = Crt::ByteCursorFromArray (secret.GetUnderlyingData (), secret.GetLength ());
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ class DefaultSHA256HmacFactory : public HMACFactory
218
218
std::shared_ptr<Aws::Utils::Crypto::HMAC> CreateImplementation () const override
219
219
{
220
220
#ifndef NO_ENCRYPTION
221
- return Aws::MakeShared<CRT_SHA256HMAC >(s_allocationTag);
221
+ return Aws::MakeShared<CRTSha256Hmac >(s_allocationTag);
222
222
#else
223
223
return nullptr ;
224
224
#endif
You can’t perform that action at this time.
0 commit comments