talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 8959d16e49de13c2cd0e289ac5364bbcaf03dec8
parent ca90fcd9d2b67fd53a8da274e936efbe84d602a5
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Thu, 28 Jul 2016 13:12:03 +0200

Remove the (now unused) master_passphrase_change plugin function.

Diffstat:
Msrc/common/plugin.c | 11-----------
Msrc/common/plugin.h | 2--
Msrc/password.c | 5-----
3 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/src/common/plugin.c b/src/common/plugin.c @@ -747,17 +747,6 @@ const gchar *plugin_get_error(Plugin *plugin) return plugin->error; } -void plugins_master_passphrase_change(const gchar *oldp, const gchar *newp) { - Plugin *plugin = NULL; - GSList *cur; - for (cur = plugin_get_list(); cur; cur = g_slist_next(cur)) { - plugin = (Plugin *)cur->data; - if (plugin->master_passphrase_change != NULL) { - plugin->master_passphrase_change(oldp, newp); - } - } -} - /* Generally called in plugin_init() function of each plugin. It check the * minimal and compiled version of claws binary required by the plugin. * If (@minimum_claws_version == 0 || @compiled_claws_version == 0), don't diff --git a/src/common/plugin.h b/src/common/plugin.h @@ -59,8 +59,6 @@ void plugin_unload_all (const gchar *type); void plugin_save_list (void); void plugin_load_standard_plugins (void); -void plugins_master_passphrase_change(const gchar *oldp, const gchar *newp); - GSList *plugin_get_list (void); GSList *plugin_get_unloaded_list(void); const gchar *plugin_get_name (Plugin *plugin); diff --git a/src/password.c b/src/password.c @@ -266,11 +266,6 @@ void master_passphrase_change(const gchar *oldp, const gchar *newp) debug_print("Reencrypting all account passwords...\n"); passwd_store_reencrypt_all(oldp, newp); - /* Now reencrypt all plugins passwords fields - * FIXME: Unloaded plugins won't be able to update their stored passwords - */ - plugins_master_passphrase_change(oldp, newp); - master_passphrase_forget(); } #endif