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

Unified Diff: components/ssl_errors/error_info.cc

Issue 2083913002: Add error strings for CERT_STATUS_CERTIFICATE_TRANSPARENCY_REQUIRED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@symantec_ct
Patch Set: protocol -> policy per file strings Created 4 years, 6 months 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 | « components/ssl_errors/error_info.h ('k') | components/ssl_errors_strings.grdp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ssl_errors/error_info.cc
diff --git a/components/ssl_errors/error_info.cc b/components/ssl_errors/error_info.cc
index 310abccf4a1fe79b9cbfe3d46b2290bf94982506..a405e1496f1b4af2c99e633d846ab20ff4e136d6 100644
--- a/components/ssl_errors/error_info.cc
+++ b/components/ssl_errors/error_info.cc
@@ -157,6 +157,12 @@ ErrorInfo ErrorInfo::CreateError(ErrorType error_type,
short_description = l10n_util::GetStringUTF16(
IDS_CERT_ERROR_UNABLE_TO_CHECK_REVOCATION_DESCRIPTION);
break;
+ case CERTIFICATE_TRANSPARENCY_REQUIRED:
+ details = l10n_util::GetStringUTF16(
+ IDS_CERT_ERROR_CERTIFICATE_TRANSPARENCY_REQUIRED_DETAILS);
+ short_description = l10n_util::GetStringUTF16(
+ IDS_CERT_ERROR_CERTIFICATE_TRANSPARENCY_REQUIRED_DESCRIPTION);
+ break;
case UNKNOWN:
details = l10n_util::GetStringUTF16(IDS_CERT_ERROR_UNKNOWN_ERROR_DETAILS);
short_description =
@@ -199,6 +205,8 @@ ErrorInfo::ErrorType ErrorInfo::NetErrorToErrorType(int net_error) {
return CERT_VALIDITY_TOO_LONG;
case net::ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN:
return CERT_PINNED_KEY_MISSING;
+ case net::ERR_CERTIFICATE_TRANSPARENCY_REQUIRED:
+ return CERTIFICATE_TRANSPARENCY_REQUIRED;
default:
NOTREACHED();
return UNKNOWN;
@@ -223,6 +231,7 @@ void ErrorInfo::GetErrorsForCertStatus(
net::CERT_STATUS_WEAK_KEY,
net::CERT_STATUS_NAME_CONSTRAINT_VIOLATION,
net::CERT_STATUS_VALIDITY_TOO_LONG,
+ net::CERT_STATUS_CERTIFICATE_TRANSPARENCY_REQUIRED,
};
const ErrorType kErrorTypes[] = {
@@ -237,6 +246,7 @@ void ErrorInfo::GetErrorsForCertStatus(
CERT_WEAK_KEY,
CERT_NAME_CONSTRAINT_VIOLATION,
CERT_VALIDITY_TOO_LONG,
+ CERTIFICATE_TRANSPARENCY_REQUIRED,
};
DCHECK(arraysize(kErrorFlags) == arraysize(kErrorTypes));
« no previous file with comments | « components/ssl_errors/error_info.h ('k') | components/ssl_errors_strings.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698