Chromium Code Reviews| 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..7c1fd802a31b4194f8106776f74d7923cc73af87 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 (auto sct_and_status : sct_and_status_list) |
|
estark
2016/08/09 02:43:22
const auto& sct_and_status
Eran Messeri
2016/08/09 08:14:21
Done.
|
| + if (sct_and_status.status == match_status) |
| + result.push_back(sct_and_status.sct); |
| + |
| + return result; |
| +} |
| + |
| } // namespace ct |
| } // namespace net |