Skip to content

Commit efcf68a

Browse files
authored
Fix clang tidy errors for C++ attestation verification (#4841)
1 parent ef2aa8b commit efcf68a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ UseColor: true
33
Checks: >
44
bugprone-*,
55
google-*,
6+
misc-*,
67
performance-*,
78
-bugprone-reserved-identifier,
89
-bugprone-narrowing-conversions,

cc/attestation/verification/utils.cc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#include "cc/attestation/verification/utils.h"
1818

19-
#include <chrono>
2019
#include <string>
2120

2221
#include "absl/status/statusor.h"
@@ -40,13 +39,11 @@ absl::StatusOr<std::string> ExtractPublicKey(absl::string_view certificate) {
4039
return std::string(public_key.begin(), public_key.end());
4140
}
4241

43-
absl::StatusOr<std::string> ExtractEncryptionPublicKey(
44-
const ::oak::attestation::v1::Evidence& evidence) {
42+
absl::StatusOr<std::string> ExtractEncryptionPublicKey(const Evidence& evidence) {
4543
return ExtractPublicKey(evidence.application_keys().encryption_public_key_certificate());
4644
}
4745

48-
absl::StatusOr<std::string> ExtractSigningPublicKey(
49-
const ::oak::attestation::v1::Evidence& evidence) {
46+
absl::StatusOr<std::string> ExtractSigningPublicKey(const Evidence& evidence) {
5047
return ExtractPublicKey(evidence.application_keys().signing_public_key_certificate());
5148
}
5249

0 commit comments

Comments
 (0)