diff options
author | Stefan <79058696+StefanKropp@users.noreply.github.com> | 2021-04-17 13:28:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-17 13:28:54 +0200 |
commit | 3ba38eafa8ff0a53937fafebc0f8754944d57601 (patch) | |
tree | 73daec63c0830b8393e4a906c02b7fbcd4f33cfd /src/command/cmd_defs.c | |
parent | c79979401b316e66ae13eba89f3d552fbe95780b (diff) | |
download | profani-tty-3ba38eafa8ff0a53937fafebc0f8754944d57601.tar.gz |
OMEMO - trust mode (#1506)
Add OMEMO trust mode capabilities. * ToFu / first usage * blind trust * manual
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r-- | src/command/cmd_defs.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 [<contact>]", "/omemo char <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 [<contact>]", "Show contact fingerprints, or current recipient if omitted." }, { "char <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." }, |