diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-08-01 11:53:00 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-08-01 11:53:00 +0200 |
commit | c32590697cea9cc8b7bdd586e5f4791bdec4fef5 (patch) | |
tree | e118bc4aad6b4609ffa14f6ad378bfe90a3fd814 /src/main/res | |
parent | 8cf22e633d4fdff7714b72ff0ff0eea3ea919868 (diff) |
made DNSEC hostname validation opt-in
Diffstat (limited to 'src/main/res')
-rw-r--r-- | src/main/res/values/defaults.xml | 1 | ||||
-rw-r--r-- | src/main/res/values/strings.xml | 2 | ||||
-rw-r--r-- | src/main/res/xml/preferences.xml | 5 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/main/res/values/defaults.xml b/src/main/res/values/defaults.xml index e191286a1..5a7a1c057 100644 --- a/src/main/res/values/defaults.xml +++ b/src/main/res/values/defaults.xml @@ -46,4 +46,5 @@ <bool name="use_white_background">false</bool> <bool name="send_crashreport">true</bool> <bool name="plain_text_logs">false</bool> + <bool name="validate_hostname">false</bool> </resources>
\ No newline at end of file diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index d2a894ae2..403902149 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -778,4 +778,6 @@ <string name="pref_headsup_notifications">Heads-up Notifications</string> <string name="pref_headsup_notifications_summary">Show Heads-up Notifications</string> <string name="yesterday">Yesterday</string> + <string name="pref_validate_hostname">Validate hostname with DNSSEC</string> + <string name="pref_validate_hostname_summary">Server certificates that contain the validated hostname are considered verified</string> </resources> diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml index 60fa80f4a..a3cfc15ed 100644 --- a/src/main/res/xml/preferences.xml +++ b/src/main/res/xml/preferences.xml @@ -275,6 +275,11 @@ android:key="dont_trust_system_cas" android:summary="@string/pref_dont_trust_system_cas_summary" android:title="@string/pref_dont_trust_system_cas_title" /> + <CheckBoxPreference + android:defaultValue="@bool/validate_hostname" + android:key="validate_hostname" + android:summary="@string/pref_validate_hostname_summary" + android:title="@string/pref_validate_hostname" /> <Preference android:key="remove_trusted_certificates" android:summary="@string/pref_remove_trusted_certificates_summary" |