From 3256c21d14c76659c4bf597f659c8ccebe25e490 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 27 Sep 2023 14:57:40 +0000 Subject: [PATCH] Restyled by clang-format --- .../attestation_verifier/CHIPAttCert_test_paa_store.cpp | 7 ++++--- .../attestation_verifier/CHIPAttCert_test_paa_store.h | 4 ++-- .../DefaultDeviceAttestationVerifier.cpp | 4 +--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/credentials/attestation_verifier/CHIPAttCert_test_paa_store.cpp b/src/credentials/attestation_verifier/CHIPAttCert_test_paa_store.cpp index 54b0b8b805a3d0..76637c130b547d 100644 --- a/src/credentials/attestation_verifier/CHIPAttCert_test_paa_store.cpp +++ b/src/credentials/attestation_verifier/CHIPAttCert_test_paa_store.cpp @@ -84,9 +84,10 @@ const Span kTestAttestationTrustStoreRoots((const ByteSpan[]){ sTestCert_PAA_NoVID_Cert, }); -const Span & GetTestPaaRootStore() { +const Span & GetTestPaaRootStore() +{ return kTestAttestationTrustStoreRoots; } -} // TestCerts -} // chip +} // namespace TestCerts +} // namespace chip diff --git a/src/credentials/attestation_verifier/CHIPAttCert_test_paa_store.h b/src/credentials/attestation_verifier/CHIPAttCert_test_paa_store.h index 78c7b307c0601c..6444c087427207 100644 --- a/src/credentials/attestation_verifier/CHIPAttCert_test_paa_store.h +++ b/src/credentials/attestation_verifier/CHIPAttCert_test_paa_store.h @@ -28,5 +28,5 @@ extern const ByteSpan sTestCert_PAA_NoVID_Cert; const Span & GetTestPaaRootStore(); -} // TestCerts -} // chip +} // namespace TestCerts +} // namespace chip diff --git a/src/credentials/attestation_verifier/DefaultDeviceAttestationVerifier.cpp b/src/credentials/attestation_verifier/DefaultDeviceAttestationVerifier.cpp index e3f70f56cb5418..1abcaa79e7d865 100644 --- a/src/credentials/attestation_verifier/DefaultDeviceAttestationVerifier.cpp +++ b/src/credentials/attestation_verifier/DefaultDeviceAttestationVerifier.cpp @@ -270,9 +270,7 @@ constexpr std::array gCdSigningKeys = { { struct TestAttestationTrustStore final : public ArrayAttestationTrustStore { - TestAttestationTrustStore() : - ArrayAttestationTrustStore(GetTestPaaRootStore().data(), GetTestPaaRootStore().size()) - {} + TestAttestationTrustStore() : ArrayAttestationTrustStore(GetTestPaaRootStore().data(), GetTestPaaRootStore().size()) {} }; Global gTestAttestationTrustStore;