summaryrefslogtreecommitdiff
path: root/res/xml/vpn_authentification.xml
blob: 0444831bb3259af9198f75b50c0e7a4861f51e89 (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
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >

    <CheckBoxPreference
        android:key="remoteServerTLS"
        android:summary="Checks whether the server uses a TLS Server Certificate"
        android:title="Except TLS Server" />
    <CheckBoxPreference
        android:key="checkRemoteCN"
        android:summary="Checks the Remote Server Certificate CN against a String"
        android:title="Certificate Hostname Check" />

    <EditTextPreference
        android:dependency="checkRemoteCN"
        android:dialogMessage="Enter the String against which the remote Server is checked. Openvpn will use prefix matching. &quot;Server&quot; matches &quot;Server-1&quot; and &quot;Server-2&quot;\nLeave empty to check the CN against the server hostname."
        android:key="remotecn"
        android:title="Remote Hostname(CN)" />

    <PreferenceCategory android:title="TLS Authentication" >
        <SwitchPreference
            android:key="useTLSAuth"
            android:summary="Enables the TLS Key Authentication"
            android:title="@string/useTLSAuth" />

        <Preference
            android:dependency="useTLSAuth"
            android:key="tlsAuthFile"
            android:title="Title Auth File" />

        <ListPreference
            android:dependency="useTLSAuth"
            android:dialogMessage="Select the direction for TLS Auth."
            android:entries="@array/tls_directions"
            android:entryValues="@array/tls_directions_entries"
            android:key="tls_direction"
            android:title="TLS Direction" 
            android:persistent="false"/>
    </PreferenceCategory>

</PreferenceScreen>