summaryrefslogtreecommitdiff
path: root/main/src/ui/res/xml/vpn_authentification.xml
blob: 770f65995e4bf225e4d0a25e93e91cb53901534f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright (c) 2012-2016 Arne Schwabe
  ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
  -->

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto">
    <PreferenceCategory android:title="@string/tls_settings">
        <ListPreference
                android:entries="@array/tls_profile_entries"
                android:entryValues="@array/tls_profile_values"
                android:key="tls_profile"
                android:persistent="false"
                android:title="@string/tls_profile"
                app:useSimpleSummaryProvider="true" />
        <CheckBoxPreference
                android:key="remoteServerTLS"
                android:summary="@string/check_remote_tlscert"
                android:title="@string/check_remote_tlscert_title" />
        <CheckBoxPreference
                android:key="checkRemoteCN"
                android:summary="@string/remote_tlscn_check_summary"
                android:title="@string/remote_tlscn_check_title" />

        <de.blinkt.openvpn.views.RemoteCNPreference
                android:dependency="checkRemoteCN"
                android:key="remotecn"
                android:negativeButtonText="@string/cancel"
                android:positiveButtonText="@android:string/ok"
                android:title="@string/enter_tlscn_title" />

        <EditTextPreference
                android:dependency="checkRemoteCN"
                android:dialogMessage="Field  in  the X.509 certificate subject to be used as the username (default=CN)."
                android:key="remotex509name"
                android:persistent="false"
                android:title="X509 Username Field" />

    </PreferenceCategory>
    <PreferenceCategory android:title="@string/tls_authentication">
        <SwitchPreference

                android:key="useTLSAuth"
                android:summary="@string/tls_key_auth"
                android:title="@string/useTLSAuth" />

        <Preference
                android:dependency="useTLSAuth"

                android:key="tlsAuthFile"
                android:title="@string/tls_auth_file"
                app:useSimpleSummaryProvider="true" />

        <ListPreference
                android:dependency="useTLSAuth"

                android:entries="@array/tls_directions_entries"
                android:entryValues="@array/tls_directions_values"
                android:key="tls_direction"
                android:persistent="false"
                android:title="@string/tls_direction"
                app:useSimpleSummaryProvider="true" />
    </PreferenceCategory>
    <PreferenceCategory android:title="@string/encryption">
        <EditTextPreference
                android:dialogMessage="@string/chipher_dialog_message"
                android:dialogTitle="@string/cipher_dialog_title"
                android:key="dataciphers"
                android:persistent="false"
                android:title="@string/encryption_cipher"
                app:useSimpleSummaryProvider="true" />
        <EditTextPreference
                android:dialogMessage="@string/auth_dialog_message"
                android:dialogTitle="@string/auth_dialog_title"
                android:key="auth"
                android:persistent="false"
                android:title="@string/packet_auth"

                app:useSimpleSummaryProvider="true" />
    </PreferenceCategory>

</PreferenceScreen>