Commit cd9a2477 authored by johan's avatar johan
Browse files

Lime gets curve config from rc file

+secure group chat tests using curve448
parent ab93dcb4
......@@ -119,10 +119,16 @@ LimeX3dhEncryptionEngine::LimeX3dhEncryptionEngine (
const shared_ptr<Core> core
) : EncryptionEngine(core) {
engineType = EncryptionEngine::EngineType::LimeX3dh;
curve = lime::CurveId::c25519; // c448
auto cCore = core->getCCore();
// get the curve to use in the config file, default is c25519
const std::string curveConfig = linphone_config_get_string(cCore->config, "lime", "curve", "c25519");
if (curveConfig.compare("c448") == 0) {
curve = lime::CurveId::c448;
} else {
curve = lime::CurveId::c25519;
}
_dbAccess = dbAccess;
x3dhServerUrl = serverUrl;
auto cCore = core->getCCore();
limeManager = unique_ptr<LimeManager>(new LimeManager(dbAccess, prov, core));
lastLimeUpdate = linphone_config_get_int(cCore->config, "lime", "last_update_time", 0);
if (x3dhServerUrl.empty())
......
This diff is collapsed.
......@@ -145,6 +145,8 @@ extern const char* test_password;
extern const char* test_route;
extern const char* userhostsfile;
extern const char* file_transfer_url;
extern const char* lime_server_c25519_url;
extern const char* lime_server_c448_url;
extern bool_t liblinphone_tester_keep_uuid;
extern bool_t liblinphone_tester_tls_support_disabled;
extern const MSAudioDiffParams audio_cmp_params;
......
......@@ -57,6 +57,8 @@ const char* test_password="secret";
const char* test_route="sip2.linphone.org";
const char *userhostsfile = "tester_hosts";
const char *file_transfer_url="https://transfer.example.org:9444/http-file-transfer-server/hft.php";
const char *lime_server_c25519_url="https://lime.wildcard1.linphone.org:8443/lime-server-c25519/lime-server.php";
const char *lime_server_c448_url="https://lime.wildcard1.linphone.org:8443/lime-server-c448/lime-server.php";
bool_t liblinphonetester_ipv6 = TRUE;
bool_t liblinphonetester_show_account_manager_logs = FALSE;
bool_t liblinphonetester_no_account_creator = FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment