From 8e1a2573b9812fba2c5d6f965524ea1f53411238 Mon Sep 17 00:00:00 2001 From: masensio Date: Thu, 6 Mar 2014 18:26:35 +0100 Subject: [PATCH] OC-3116: Add a warning dialog for untrusted SslCertificates and show it instead of call proceed() directly --- res/layout/ssl_untrusted_cert_layout.xml | 413 +++++++++++++++++++++ res/values/strings.xml | 1 + .../authentication/AuthenticatorActivity.java | 22 ++ .../android/authentication/SsoWebViewClient.java | 61 +-- .../android/ui/dialog/SamlWebViewDialog.java | 5 + .../android/ui/dialog/SslUntrustedCertDialog.java | 347 +++++++++++++++++ .../android/ui/dialog/SslValidatorDialog.java | 1 + 7 files changed, 826 insertions(+), 24 deletions(-) create mode 100644 res/layout/ssl_untrusted_cert_layout.xml create mode 100644 src/com/owncloud/android/ui/dialog/SslUntrustedCertDialog.java diff --git a/res/layout/ssl_untrusted_cert_layout.xml b/res/layout/ssl_untrusted_cert_layout.xml new file mode 100644 index 00000000..4ac3ac7a --- /dev/null +++ b/res/layout/ssl_untrusted_cert_layout.xml @@ -0,0 +1,413 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +