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

Side by Side Diff: content/browser/ssl/ssl_policy.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, 5 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 unified diff | Download patch
« no previous file with comments | « components/ssl_errors_strings.grdp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/ssl/ssl_policy.h" 5 #include "content/browser/ssl/ssl_policy.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // user every time they come back to the page. 62 // user every time they come back to the page.
63 int options_mask = 0; 63 int options_mask = 0;
64 switch (handler->cert_error()) { 64 switch (handler->cert_error()) {
65 case net::ERR_CERT_COMMON_NAME_INVALID: 65 case net::ERR_CERT_COMMON_NAME_INVALID:
66 case net::ERR_CERT_DATE_INVALID: 66 case net::ERR_CERT_DATE_INVALID:
67 case net::ERR_CERT_AUTHORITY_INVALID: 67 case net::ERR_CERT_AUTHORITY_INVALID:
68 case net::ERR_CERT_WEAK_SIGNATURE_ALGORITHM: 68 case net::ERR_CERT_WEAK_SIGNATURE_ALGORITHM:
69 case net::ERR_CERT_WEAK_KEY: 69 case net::ERR_CERT_WEAK_KEY:
70 case net::ERR_CERT_NAME_CONSTRAINT_VIOLATION: 70 case net::ERR_CERT_NAME_CONSTRAINT_VIOLATION:
71 case net::ERR_CERT_VALIDITY_TOO_LONG: 71 case net::ERR_CERT_VALIDITY_TOO_LONG:
72 case net::ERR_CERTIFICATE_TRANSPARENCY_REQUIRED:
72 if (!handler->fatal()) 73 if (!handler->fatal())
73 options_mask |= OVERRIDABLE; 74 options_mask |= OVERRIDABLE;
74 else 75 else
75 options_mask |= STRICT_ENFORCEMENT; 76 options_mask |= STRICT_ENFORCEMENT;
76 if (expired_previous_decision) 77 if (expired_previous_decision)
77 options_mask |= EXPIRED_PREVIOUS_DECISION; 78 options_mask |= EXPIRED_PREVIOUS_DECISION;
78 OnCertErrorInternal(handler, options_mask); 79 OnCertErrorInternal(handler, options_mask);
79 break; 80 break;
80 case net::ERR_CERT_NO_REVOCATION_MECHANISM: 81 case net::ERR_CERT_NO_REVOCATION_MECHANISM:
81 // Ignore this error. 82 // Ignore this error.
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 entry->GetURL(), entry->GetSSL().cert_id, entry->GetSSL().cert_status); 258 entry->GetURL(), entry->GetSSL().cert_id, entry->GetSSL().cert_status);
258 } 259 }
259 260
260 void SSLPolicy::OriginRanInsecureContent(const std::string& origin, int pid) { 261 void SSLPolicy::OriginRanInsecureContent(const std::string& origin, int pid) {
261 GURL parsed_origin(origin); 262 GURL parsed_origin(origin);
262 if (parsed_origin.SchemeIsCryptographic()) 263 if (parsed_origin.SchemeIsCryptographic())
263 backend_->HostRanInsecureContent(parsed_origin.host(), pid); 264 backend_->HostRanInsecureContent(parsed_origin.host(), pid);
264 } 265 }
265 266
266 } // namespace content 267 } // namespace content
OLDNEW
« no previous file with comments | « components/ssl_errors_strings.grdp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698