summaryrefslogtreecommitdiffstats
path: root/ios/public
diff options
context:
space:
mode:
authorsdefresne <sdefresne@chromium.org>2015-11-23 07:42:38 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-23 15:44:33 +0000
commitcea915b5bfb88df2fa4b06d8aed7715b9ccc24fe (patch)
tree2632d11f54d69f5d39bfda0904a4947417dca53c /ios/public
parent19acda1ba5c116bbc4cea6c9163d10c65a9ba1c8 (diff)
downloadchromium_src-cea915b5bfb88df2fa4b06d8aed7715b9ccc24fe.zip
chromium_src-cea915b5bfb88df2fa4b06d8aed7715b9ccc24fe.tar.gz
chromium_src-cea915b5bfb88df2fa4b06d8aed7715b9ccc24fe.tar.bz2
Fix unrecoverable SSL interstitials.
Unrecoverable SSL errors were broken in Merge 229993, by the upstream CL: https://codereview.chromium.org/23965003/. This fix removes the iOS specific interstitial.mm and uses interstitial_page_impl instead. It also adds support for unrecoverable errors, by returning a DENIED judgment to some errors. BUG=310607 TEST=Go to https://test-sspev.verisign.com/. Clicking on "Revoked" should trigger an unrecoverable error, clicking on "Expired" should trigger a recoverable error (with a "proceed anyway" button) Review URL: https://chromereviews.googleplex.com/12347017 Review URL: https://codereview.chromium.org/1469063002 Cr-Commit-Position: refs/heads/master@{#361109}
Diffstat (limited to 'ios/public')
-rw-r--r--ios/public/provider/chrome/browser/browser_constants.cc11
-rw-r--r--ios/public/provider/chrome/browser/browser_constants.h17
2 files changed, 28 insertions, 0 deletions
diff --git a/ios/public/provider/chrome/browser/browser_constants.cc b/ios/public/provider/chrome/browser/browser_constants.cc
new file mode 100644
index 0000000..5b89c12
--- /dev/null
+++ b/ios/public/provider/chrome/browser/browser_constants.cc
@@ -0,0 +1,11 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ios/public/provider/chrome/browser/browser_constants.h"
+
+namespace ios {
+
+const char kSpoofingAttemptFlag[] = "SpoofingAttempt_IOS";
+
+} // namespace ios
diff --git a/ios/public/provider/chrome/browser/browser_constants.h b/ios/public/provider/chrome/browser/browser_constants.h
new file mode 100644
index 0000000..b40b26b
--- /dev/null
+++ b/ios/public/provider/chrome/browser/browser_constants.h
@@ -0,0 +1,17 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_CONSTANTS_H_
+#define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_CONSTANTS_H_
+
+namespace ios {
+
+// This string is a flag for net::SSLInfo signaling that the error is not a
+// typical certificate error, but rather is a spoofing attempt.
+// It can be used to customize the interstitial error page.
+extern const char kSpoofingAttemptFlag[];
+
+} // namespace ios
+
+#endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSER_CONSTANTS_H_