[azure-security-attestation-cpp] Use non-deprecated syntax (#40203)

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
Anton Kolesnyk 2024-08-01 16:00:41 -07:00 committed by GitHub
parent 4fbb777929
commit b8ac6696e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,13 @@
diff --git a/sdk/attestation/azure-security-attestation/inc/azure/attestation/attestation_client.hpp b/sdk/attestation/azure-security-attestation/inc/azure/attestation/attestation_client.hpp
index d7c44d494..31fcb8d3f 100644
--- a/sdk/attestation/azure-security-attestation/inc/azure/attestation/attestation_client.hpp
+++ b/sdk/attestation/azure-security-attestation/inc/azure/attestation/attestation_client.hpp
@@ -176,7 +176,7 @@ namespace Azure { namespace Security { namespace Attestation {
* specified service instance.
*/
Response<Models::OpenIdMetadata> GetOpenIdMetadata(
- Azure::Core::Context const& context = Azure::Core::Context::ApplicationContext) const;
+ Azure::Core::Context const& context = {}) const;
/**
* @brief Retrieve the attestation signing certificates for this attestation instance.

View File

@ -7,6 +7,8 @@ vcpkg_from_github(
REF "azure-security-attestation_${VERSION}"
SHA512 bf5c0ab830122838045e3e5ff03aae38f81082b50b9b0c61fa21a8c101a2fd98ad98b136d49702665d720f59baa6a89c8af3f161a44c09d24ad747fb1828cbca
HEAD_REF main
PATCHES
context_syntax.patch
)
if(EXISTS "${SOURCE_PATH}/sdk/attestation/azure-security-attestation")

View File

@ -5,7 +5,7 @@
],
"name": "azure-security-attestation-cpp",
"version-semver": "1.1.0",
"port-version": 3,
"port-version": 4,
"description": [
"Microsoft Azure Attestation Service SDK for C++",
"This library provides API access to the Microsoft Azure Attestation service."

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "bdd0a170a44d77a8ff2753846cb23008c90ab7ac",
"version-semver": "1.1.0",
"port-version": 4
},
{
"git-tree": "14d1242810e6d4de5c6fc523ae4d9ecb4904b58e",
"version-semver": "1.1.0",

View File

@ -486,7 +486,7 @@
},
"azure-security-attestation-cpp": {
"baseline": "1.1.0",
"port-version": 3
"port-version": 4
},
"azure-security-keyvault-administration-cpp": {
"baseline": "4.0.0-beta.4",