Fixed the user-agent string sent to the service to include the "keys" suffix in the value, when using CryptographyClient. (#4467)

* Fixed the user-agent string sent to the service to include the "keys"
suffix in the value, when using `CryptographyClient`.

* Fix clang format.
This commit is contained in:
Ahson Khan 2023-03-29 17:36:44 -07:00 committed by GitHub
parent 97c7630c2d
commit 57a4f8de9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

View File

@ -8,6 +8,8 @@
### Bugs Fixed
- [3366](https://github.com/Azure/azure-sdk-for-cpp/issues/4466) Fixed the user-agent string sent to the service to include the "keys" suffix in the value, when using `CryptographyClient`.
### Other Changes
## 4.3.0 (2022-10-11)

View File

@ -111,7 +111,7 @@ CryptographyClient::CryptographyClient(
m_pipeline = std::make_shared<Azure::Core::Http::_internal::HttpPipeline>(
options,
"KeyVault",
KeyVaultServicePackageName,
PackageVersion::ToString(),
std::move(perRetrypolicies),
std::move(perCallpolicies));

View File

@ -29,7 +29,6 @@ using namespace Azure::Core::Http::Policies::_internal;
using namespace Azure::Core::Http::_internal;
namespace {
constexpr static const char KeyVaultServicePackageName[] = "keyvault-keys";
constexpr static const char CreateValue[] = "create";
} // namespace

View File

@ -10,6 +10,8 @@
#pragma once
namespace Azure { namespace Security { namespace KeyVault { namespace Keys { namespace _detail {
constexpr static const char KeyVaultServicePackageName[] = "keyvault-keys";
/***************** KeyVault Key *****************/
constexpr static const char KeyPropertyName[] = "key";