Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1531)

Unified Diff: net/ssl/ssl_info.cc

Issue 1452053005: SSL - minor cleanup. Added UpdateSignedCertificateTimestamps to SSLInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/ssl/ssl_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/ssl_info.cc
diff --git a/net/ssl/ssl_info.cc b/net/ssl/ssl_info.cc
index 82d4a62aabd8e85ec76eb9111b8081549553b2c8..545bf7ec6dfa449d342904d2c5a9301f48ed38c4 100644
--- a/net/ssl/ssl_info.cc
+++ b/net/ssl/ssl_info.cc
@@ -64,4 +64,20 @@ void SSLInfo::SetCertError(int error) {
cert_status |= MapNetErrorToCertStatus(error);
}
+void SSLInfo::UpdateSignedCertificateTimestamps(
+ const ct::CTVerifyResult& ct_verify_result) {
+ for (const auto& sct : ct_verify_result.verified_scts) {
+ signed_certificate_timestamps.push_back(
+ SignedCertificateTimestampAndStatus(sct, ct::SCT_STATUS_OK));
+ }
+ for (const auto& sct : ct_verify_result.invalid_scts) {
+ signed_certificate_timestamps.push_back(
+ SignedCertificateTimestampAndStatus(sct, ct::SCT_STATUS_INVALID));
+ }
+ for (const auto& sct : ct_verify_result.unknown_logs_scts) {
+ signed_certificate_timestamps.push_back(
+ SignedCertificateTimestampAndStatus(sct, ct::SCT_STATUS_LOG_UNKNOWN));
+ }
+}
+
} // namespace net
« no previous file with comments | « net/ssl/ssl_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698