Added encrypted profile storage.
New profile string config option .passphrase. Can contain valid weechat expressions such as references to secure data storage, e.g. "${sec.data.}", or the environment "${env:*}". Uses libtoxencryptsave.so for full interoperability with other clients.
This commit is contained in:
parent
7d45b8c408
commit
fc3ce91cf4
3 changed files with 63 additions and 5 deletions
|
@ -48,6 +48,7 @@ char *twc_profile_option_names[TWC_PROFILE_NUM_OPTIONS] =
|
|||
"proxy_type",
|
||||
"udp",
|
||||
"ipv6",
|
||||
"passphrase",
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -210,6 +211,11 @@ twc_config_init_option(struct t_config_section *section,
|
|||
min = 0; max = INT_MAX;
|
||||
default_value = "100";
|
||||
break;
|
||||
case TWC_PROFILE_OPTION_PASSPHRASE:
|
||||
type = "string";
|
||||
description = "passphrase for encrypted profile";
|
||||
null_allowed = true;
|
||||
break;
|
||||
case TWC_PROFILE_OPTION_PROXY_ADDRESS:
|
||||
type = "string";
|
||||
description = "proxy address";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue