mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-04-21 21:52:03 +02:00
sip: remove unused settings
Change-Id: Ifa8a5fa9ac0e41fddb85b163339ff1d0159c79fe
This commit is contained in:
parent
84c8478d94
commit
a5755bbdb8
6 changed files with 0 additions and 112 deletions
|
@ -110,10 +110,7 @@ Item {
|
|||
property string verifyCertificatesClient: qsTr("Verify server TLS certificates")
|
||||
property string tlsRequireConnections: qsTr("Require certificate for incoming TLS connections")
|
||||
property string disableSecureDlgCheck: qsTr("Disable secure dialog check for incoming TLS data")
|
||||
property string tlsProtocol: qsTr("TLS protocol method")
|
||||
property string audioDeviceSelector: qsTr("Audio input device selector")
|
||||
property string tlsServerName: qsTr("TLS server name")
|
||||
property string negotiationTimeOut: qsTr("Negotiation timeout (seconds)")
|
||||
property string selectPrivateKey: qsTr("Select a private key")
|
||||
property string selectUserCert: qsTr("Select a user certificate")
|
||||
property string selectCACert: qsTr("Select a CA certificate")
|
||||
|
|
|
@ -161,9 +161,6 @@ CurrentAccount::updateData()
|
|||
set_certificateFileTLS(accConfig.TLS.certificateFile, true);
|
||||
set_privateKeyFileTLS(accConfig.TLS.privateKeyFile, true);
|
||||
set_passwordTLS(accConfig.TLS.password, true);
|
||||
set_serverNameTLS(accConfig.TLS.serverName, true);
|
||||
set_methodTLS(accConfig.TLS.method, true);
|
||||
set_negotiationTimeoutSecTLS(accConfig.TLS.negotiationTimeoutSec, true);
|
||||
|
||||
// SRTP
|
||||
set_enableSRTP(accConfig.SRTP.enable, true);
|
||||
|
|
|
@ -157,9 +157,6 @@ class CurrentAccount final : public QObject
|
|||
QML_ACCOUNT_CONFIG_CATEGORY_SETTINGS_PROPERTY(QString, certificateFile, TLS)
|
||||
QML_ACCOUNT_CONFIG_CATEGORY_SETTINGS_PROPERTY(QString, privateKeyFile, TLS)
|
||||
QML_ACCOUNT_CONFIG_CATEGORY_SETTINGS_PROPERTY(QString, password, TLS)
|
||||
QML_ACCOUNT_CONFIG_CATEGORY_SETTINGS_PROPERTY(QString, serverName, TLS)
|
||||
QML_ACCOUNT_CONFIG_CATEGORY_SETTINGS_PROPERTY(lrc::api::account::TlsMethod, method, TLS)
|
||||
QML_ACCOUNT_CONFIG_CATEGORY_SETTINGS_PROPERTY(int, negotiationTimeoutSec, TLS)
|
||||
|
||||
// SRTP settings
|
||||
QML_ACCOUNT_CONFIG_CATEGORY_SETTINGS_PROPERTY(bool, enable, SRTP)
|
||||
|
|
|
@ -176,68 +176,5 @@ ColumnLayout {
|
|||
checked: CurrentAccount.disableSecureDlgCheck_TLS
|
||||
onSwitchToggled: CurrentAccount.disableSecureDlgCheck_TLS = checked
|
||||
}
|
||||
|
||||
SettingsComboBox {
|
||||
id: tlsProtocolComboBox
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
||||
labelText: JamiStrings.tlsProtocol
|
||||
comboModel: ListModel {
|
||||
ListElement {
|
||||
textDisplay: "Default"
|
||||
firstArg: "Default"
|
||||
secondArg: 0
|
||||
}
|
||||
ListElement {
|
||||
textDisplay: "TLSv1"
|
||||
firstArg: "TLSv1"
|
||||
secondArg: 1
|
||||
}
|
||||
ListElement {
|
||||
textDisplay: "TLSv1.1"
|
||||
firstArg: "TLSv1.1"
|
||||
secondArg: 2
|
||||
}
|
||||
ListElement {
|
||||
textDisplay: "TLSv1.2"
|
||||
firstArg: "TLSv1.2"
|
||||
secondArg: 3
|
||||
}
|
||||
}
|
||||
widthOfComboBox: root.itemWidth
|
||||
tipText: JamiStrings.audioDeviceSelector
|
||||
role: "textDisplay"
|
||||
|
||||
modelIndex: CurrentAccount.method_TLS
|
||||
|
||||
onActivated: CurrentAccount.method_TLS = parseInt(comboModel.get(modelIndex).secondArg)
|
||||
}
|
||||
|
||||
SettingsMaterialTextEdit {
|
||||
id: outgoingTLSServerNameLineEdit
|
||||
|
||||
Layout.fillWidth: true
|
||||
itemWidth: root.itemWidth
|
||||
titleField: JamiStrings.tlsServerName
|
||||
|
||||
staticText: CurrentAccount.serverName_TLS
|
||||
|
||||
onEditFinished: CurrentAccount.serverName_TLS = dynamicText
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
id: negotiationTimeoutSpinBox
|
||||
Layout.fillWidth: true
|
||||
|
||||
title: JamiStrings.negotiationTimeOut
|
||||
itemWidth: root.itemWidth
|
||||
bottomValue: 0
|
||||
topValue: 3000
|
||||
|
||||
valueField: CurrentAccount.negotiationTimeoutSec_TLS
|
||||
|
||||
onNewValue: CurrentAccount.negotiationTimeoutSec_TLS = valueField
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -912,26 +912,12 @@ account::Info::fromDetails(const MapStringString& details)
|
|||
confProperties.TLS.certificateFile = details[ConfProperties::TLS::CERTIFICATE_FILE];
|
||||
confProperties.TLS.privateKeyFile = details[ConfProperties::TLS::PRIVATE_KEY_FILE];
|
||||
confProperties.TLS.password = details[ConfProperties::TLS::PASSWORD];
|
||||
auto method = toStdString(details[ConfProperties::TLS::METHOD]);
|
||||
if (method == "TLSv1") {
|
||||
confProperties.TLS.method = account::TlsMethod::TLSv1;
|
||||
} else if (method == "TLSv1.1") {
|
||||
confProperties.TLS.method = account::TlsMethod::TLSv1_1;
|
||||
} else if (method == "TLSv1.2") {
|
||||
confProperties.TLS.method = account::TlsMethod::TLSv1_2;
|
||||
} else {
|
||||
confProperties.TLS.method = account::TlsMethod::DEFAULT;
|
||||
}
|
||||
confProperties.TLS.ciphers = details[ConfProperties::TLS::CIPHERS];
|
||||
confProperties.TLS.serverName = details[ConfProperties::TLS::SERVER_NAME];
|
||||
confProperties.TLS.verifyServer = toBool(details[ConfProperties::TLS::VERIFY_SERVER]);
|
||||
confProperties.TLS.verifyClient = toBool(details[ConfProperties::TLS::VERIFY_CLIENT]);
|
||||
confProperties.TLS.requireClientCertificate = toBool(
|
||||
details[ConfProperties::TLS::REQUIRE_CLIENT_CERTIFICATE]);
|
||||
confProperties.TLS.disableSecureDlgCheck = toBool(
|
||||
details[ConfProperties::TLS::DISABLE_SECURE_DLG_CHECK]);
|
||||
confProperties.TLS.negotiationTimeoutSec = toInt(
|
||||
details[ConfProperties::TLS::NEGOTIATION_TIMEOUT_SEC]);
|
||||
// DHT
|
||||
confProperties.DHT.port = toInt(details[ConfProperties::DHT::PORT]);
|
||||
confProperties.DHT.PublicInCalls = toBool(details[ConfProperties::DHT::PUBLIC_IN_CALLS]);
|
||||
|
@ -1031,31 +1017,12 @@ account::ConfProperties_t::toDetails() const
|
|||
details[ConfProperties::TLS::CERTIFICATE_FILE] = this->TLS.certificateFile;
|
||||
details[ConfProperties::TLS::PRIVATE_KEY_FILE] = this->TLS.privateKeyFile;
|
||||
details[ConfProperties::TLS::PASSWORD] = this->TLS.password;
|
||||
switch (this->TLS.method) {
|
||||
case account::TlsMethod::TLSv1:
|
||||
details[ConfProperties::TLS::METHOD] = "TLSv1";
|
||||
break;
|
||||
case account::TlsMethod::TLSv1_1:
|
||||
details[ConfProperties::TLS::METHOD] = "TLSv1.1";
|
||||
break;
|
||||
case account::TlsMethod::TLSv1_2:
|
||||
details[ConfProperties::TLS::METHOD] = "TLSv1.2";
|
||||
break;
|
||||
case account::TlsMethod::DEFAULT:
|
||||
default:
|
||||
details[ConfProperties::TLS::METHOD] = "Default";
|
||||
break;
|
||||
}
|
||||
details[ConfProperties::TLS::CIPHERS] = this->TLS.ciphers;
|
||||
details[ConfProperties::TLS::SERVER_NAME] = this->TLS.serverName;
|
||||
details[ConfProperties::TLS::VERIFY_SERVER] = toQString(this->TLS.verifyServer);
|
||||
details[ConfProperties::TLS::VERIFY_CLIENT] = toQString(this->TLS.verifyClient);
|
||||
details[ConfProperties::TLS::REQUIRE_CLIENT_CERTIFICATE] = toQString(
|
||||
this->TLS.requireClientCertificate);
|
||||
details[ConfProperties::TLS::DISABLE_SECURE_DLG_CHECK] = toQString(
|
||||
this->TLS.disableSecureDlgCheck);
|
||||
details[ConfProperties::TLS::NEGOTIATION_TIMEOUT_SEC] = toQString(
|
||||
this->TLS.negotiationTimeoutSec);
|
||||
// DHT
|
||||
details[ConfProperties::DHT::PORT] = toQString(this->DHT.port);
|
||||
details[ConfProperties::DHT::PUBLIC_IN_CALLS] = toQString(this->DHT.PublicInCalls);
|
||||
|
|
|
@ -74,9 +74,6 @@ to_status(const QString& type)
|
|||
enum class KeyExchangeProtocol { NONE, SDES };
|
||||
Q_ENUM_NS(KeyExchangeProtocol)
|
||||
|
||||
enum class TlsMethod { DEFAULT, TLSv1, TLSv1_1, TLSv1_2 };
|
||||
Q_ENUM_NS(TlsMethod)
|
||||
|
||||
struct ConfProperties_t
|
||||
{
|
||||
QString mailbox;
|
||||
|
@ -171,14 +168,10 @@ struct ConfProperties_t
|
|||
QString certificateFile;
|
||||
QString privateKeyFile;
|
||||
QString password;
|
||||
TlsMethod method;
|
||||
QString ciphers;
|
||||
QString serverName;
|
||||
bool verifyServer;
|
||||
bool verifyClient;
|
||||
bool requireClientCertificate;
|
||||
bool disableSecureDlgCheck;
|
||||
int negotiationTimeoutSec;
|
||||
} TLS;
|
||||
struct DHT_t
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue