From 8959d16e49de13c2cd0e289ac5364bbcaf03dec8 Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Thu, 28 Jul 2016 13:12:03 +0200 Subject: [PATCH 1/1] Remove the (now unused) master_passphrase_change plugin function. --- src/common/plugin.c | 11 ----------- src/common/plugin.h | 2 -- src/password.c | 5 ----- 3 files changed, 18 deletions(-) diff --git a/src/common/plugin.c b/src/common/plugin.c index 0e431902f..e31dcd658 100644 --- 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 index b153b6b33..cc7274620 100644 --- 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 index 2040698ca..ccbba17d5 100644 --- 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 -- 2.25.1