diff options
author | Gary Kramlich <grim@reaperworld.com> | 2021-04-21 18:43:42 -0500 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2021-04-21 18:43:42 -0500 |
commit | 2b656996d72230e280d8ab2d5a40ce286268227d (patch) | |
tree | 9142221a2aac58a47feef8fb6e8025f8f7f61d5d /libpurple/accounts.c | |
parent | 89f60f2fa1a65988cc13f4bb481c2b085ad4f0a1 (diff) | |
download | pidgin-2b656996d72230e280d8ab2d5a40ce286268227d.tar.gz |
Remove the deprecated keyring API.
I've disable the building of the internal keyring for now but left it so it
can be referenced when it is ported to the CredentialProvider API.
Testing Done:
Ran Pidgin and verified the preferences window worked.
Bugs closed: PIDGIN-17486
Reviewed at https://reviews.imfreedom.org/r/624/
Diffstat (limited to 'libpurple/accounts.c')
-rw-r--r-- | libpurple/accounts.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libpurple/accounts.c b/libpurple/accounts.c index 8a8ad644d8..ec63602399 100644 --- a/libpurple/accounts.c +++ b/libpurple/accounts.c @@ -500,25 +500,6 @@ parse_account(PurpleXmlNode *node) parse_current_error(child, ret); } - /* Read the password */ - child = purple_xmlnode_get_child(node, "password"); - if (child != NULL) - { - const char *keyring_id = purple_xmlnode_get_attrib(child, "keyring_id"); - const char *mode = purple_xmlnode_get_attrib(child, "mode"); - gboolean result; - - data = purple_xmlnode_get_data(child); - result = purple_keyring_import_password(ret, keyring_id, mode, data, NULL); - - if (result == TRUE || purple_keyring_get_inuse() == NULL) { - purple_account_set_remember_password(ret, TRUE); - } else { - purple_debug_error("accounts", "Failed to import password.\n"); - } - purple_str_wipe(data); - } - return ret; } @@ -874,14 +855,6 @@ connection_error_cb(PurpleConnection *gc, account, type, description); } -static void -password_migration_cb(PurpleAccount *account) -{ - /* account may be NULL (means: all) */ - - purple_accounts_schedule_save(); -} - void purple_accounts_init(void) { @@ -980,8 +953,6 @@ purple_accounts_init(void) PURPLE_CALLBACK(signed_off_cb), NULL); purple_signal_connect(conn_handle, "connection-error", handle, PURPLE_CALLBACK(connection_error_cb), NULL); - purple_signal_connect(purple_keyring_get_handle(), "password-migration", handle, - PURPLE_CALLBACK(password_migration_cb), NULL); load_accounts(); |