From 3ba38eafa8ff0a53937fafebc0f8754944d57601 Mon Sep 17 00:00:00 2001 From: Stefan <79058696+StefanKropp@users.noreply.github.com> Date: Sat, 17 Apr 2021 13:28:54 +0200 Subject: OMEMO - trust mode (#1506) Add OMEMO trust mode capabilities. * ToFu / first usage * blind trust * manual --- src/command/cmd_defs.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/command/cmd_defs.c') diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index 239467a1..93e12077 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -2292,6 +2292,7 @@ static struct cmd_t command_defs[] = { { "log", cmd_omemo_log }, { "start", cmd_omemo_start }, { "end", cmd_omemo_end }, + { "trustmode", cmd_omemo_trust_mode }, { "trust", cmd_omemo_trust }, { "untrust", cmd_omemo_untrust }, { "fingerprint", cmd_omemo_fingerprint }, @@ -2310,6 +2311,7 @@ static struct cmd_t command_defs[] = { "/omemo end", "/omemo fingerprint []", "/omemo char ", + "/omemo trustmode manual|firstusage|blind", "/omemo policy manual|automatic|always", "/omemo clear_device_list") CMD_DESC( @@ -2322,6 +2324,9 @@ static struct cmd_t command_defs[] = { { "log redact", "Log OMEMO encrypted messages, but replace the contents with [redacted]. This is the default." }, { "fingerprint []", "Show contact fingerprints, or current recipient if omitted." }, { "char ", "Set the character to be displayed next to OMEMO encrypted messages." }, + { "trustmode manual", "Set the global OMEMO trust mode to manual, OMEMO keys has to be trusted manually." }, + { "trustmode firstusage", "Set the global OMEMO trust mode to ToFu, first OMEMO keys trusted automatically." }, + { "trustmode blind", "Set the global OMEMO trust mode to blind, ALL OMEMO keys trusted automatically." }, { "policy manual", "Set the global OMEMO policy to manual, OMEMO sessions must be started manually." }, { "policy automatic", "Set the global OMEMO policy to opportunistic, an OMEMO session will be attempted upon starting a conversation." }, { "policy always", "Set the global OMEMO policy to always, an error will be displayed if an OMEMO session cannot be initiated upon starting a conversation." }, -- cgit 1.4.1-2-gfad0