blob: 456766be4bc42ee97b7adae7d89f2488f0aec8bf [file] [log] [blame]
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -05001<?xml version="1.0" encoding="utf-8"?>
2<!--
Alexandre Lisionf3a2c9d2014-01-06 11:12:53 -05003Copyright (C) 2004-2014 Savoir-Faire Linux Inc.
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -05004
5Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 3 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21Additional permission under GNU GPL version 3 section 7:
22
23If you modify this program, or any covered work, by linking or
24combining it with the OpenSSL project's OpenSSL library (or a
25modified version of that library), containing parts covered by the
26terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
27grants you additional permission to convey the resulting work.
28Corresponding Source for a non-source form of such a combination
29shall include the source code for the parts of OpenSSL used as well
30as that of the covered work.
31-->
32
Alexandre Lision382f6842014-02-05 15:23:50 -050033<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
34 xmlns:app="http://schemas.android.com/apk/res/org.sflphone" >
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -050035 <CheckBoxPreference
Alexandre Lision06412a32014-02-05 17:33:04 -050036 android:id="@+id/account_tls_switch_tls"
Alexandre Lision8ad39592013-11-21 13:23:58 -050037 android:key="TLS.enable"
Alexandre Lision06412a32014-02-05 17:33:04 -050038 android:title="@string/account_tls_transport_switch_label" />
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -050039
40 <EditTextPreference
41 android:id="@+id/account_tls_listener_port"
42 android:key="TLS.listenerPort"
43 android:persistent="false"
Alexandre Lision06412a32014-02-05 17:33:04 -050044 android:title="@string/account_tls_port_label" />
Alexandre Lision8ad39592013-11-21 13:23:58 -050045
Alexandre Lision382f6842014-02-05 15:23:50 -050046 <org.sflphone.views.DoubleNumberPickerPreference
47 android:id="@+id/account_registration_expire"
48 android:key="Account.registrationExpire"
49 android:persistent="false"
50 android:title="@string/account_tls_port_label"
51 app:defaultValue1="6"
52 app:defaultValue2="0"
53 app:max1="99"
54 app:max2="99"
55 app:min1="1"
56 app:min2="0" />
57
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -050058 <Preference
59 android:id="@+id/account_tls_certificate_list_file"
60 android:key="TLS.certificateListFile"
61 android:persistent="false"
Alexandre Lision06412a32014-02-05 17:33:04 -050062 android:title="@string/account_tls_certificate_list_label" />
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -050063 <Preference
64 android:id="@+id/account_tls_certificate_file"
65 android:key="TLS.certificateFile"
66 android:persistent="false"
Alexandre Lision06412a32014-02-05 17:33:04 -050067 android:title="@string/account_tls_certificate_file_label" />
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -050068 <Preference
69 android:id="@+id/account_tls_private_key_file"
70 android:key="TLS.privateKeyFile"
71 android:persistent="false"
Alexandre Lision06412a32014-02-05 17:33:04 -050072 android:title="@string/account_tls_private_key_file_label" />
Alexandre Lision8ad39592013-11-21 13:23:58 -050073
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -050074 <EditTextPreference
75 android:id="@+id/account_tls_password"
76 android:key="TLS.password"
77 android:persistent="false"
Alexandre Lision382f6842014-02-05 15:23:50 -050078 android:singleLine="true"
Alexandre Lision06412a32014-02-05 17:33:04 -050079 android:title="@string/account_tls_password_label" />
Alexandre Lision382f6842014-02-05 15:23:50 -050080 <ListPreference
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -050081 android:id="@+id/account_tls_method"
82 android:key="TLS.method"
Alexandre Lision382f6842014-02-05 15:23:50 -050083 android:entries="@array/tls_methods_entries"
84 android:entryValues="@array/tls_methods_values"
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -050085 android:persistent="false"
Alexandre Lision06412a32014-02-05 17:33:04 -050086 android:title="@string/account_tls_method_label" />
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -050087 <EditTextPreference
88 android:id="@+id/account_tls_ciphers"
89 android:key="TLS.ciphers"
90 android:persistent="false"
Alexandre Lision06412a32014-02-05 17:33:04 -050091 android:title="@string/account_tls_ciphers_label" />
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -050092 <EditTextPreference
93 android:id="@+id/account_tls_server_name"
94 android:key="TLS.serverName"
95 android:persistent="false"
Alexandre Lision382f6842014-02-05 15:23:50 -050096 android:singleLine="true"
Alexandre Lision06412a32014-02-05 17:33:04 -050097 android:title="@string/account_tls_server_name_label" />
98
99 <EditTextPreference
100 android:id="@+id/account_tls_timeout_sec"
101 android:key="TLS.negotiationTimeoutSec"
102 android:persistent="false"
103 android:title="@string/account_tls_negotiation_timeout_sec" />
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -0500104
105 <CheckBoxPreference
106 android:id="@+id/account_tls_verify_server"
107 android:key="TLS.verifyServer"
108 android:persistent="false"
Alexandre Lision06412a32014-02-05 17:33:04 -0500109 android:title="@string/account_tls_verify_server_label" />
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -0500110 <CheckBoxPreference
111 android:id="@+id/account_tls_verify_client"
112 android:key="TLS.verifyClient"
113 android:persistent="false"
Alexandre Lision06412a32014-02-05 17:33:04 -0500114 android:title="@string/account_tls_verify_client_label" />
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -0500115 <CheckBoxPreference
116 android:id="@+id/account_tls_require_client_cert"
117 android:key="TLS.requireClientCertificate"
118 android:persistent="false"
119 android:title="TLS Require Client Certificate" />
120
Alexandre Lisiondd5d8de2013-11-18 16:26:14 -0500121</PreferenceScreen>