| Index: net/cert/ct_verify_result.cc
|
| diff --git a/net/cert/ct_verify_result.cc b/net/cert/ct_verify_result.cc
|
| index 227bc120f94bf2732a45b5c53c29cc956d9f4677..5587b67ed78ad1e19dc8d291f5561624ebded2b8 100644
|
| --- a/net/cert/ct_verify_result.cc
|
| +++ b/net/cert/ct_verify_result.cc
|
| @@ -20,6 +20,17 @@ CTVerifyResult::CTVerifyResult(const CTVerifyResult& other) = default;
|
|
|
| CTVerifyResult::~CTVerifyResult() {}
|
|
|
| +SCTList SCTsMatchingStatus(
|
| + const SignedCertificateTimestampAndStatusList& sct_and_status_list,
|
| + SCTVerifyStatus match_status) {
|
| + SCTList result;
|
| + for (const auto& sct_and_status : sct_and_status_list)
|
| + if (sct_and_status.status == match_status)
|
| + result.push_back(sct_and_status.sct);
|
| +
|
| + return result;
|
| +}
|
| +
|
| } // namespace ct
|
|
|
| } // namespace net
|
|
|