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
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);
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