Port wincred keyring to PurpleCredentialManager

Review Request #466 — Created Jan. 29, 2021 and submitted — Latest diff uploaded

Information

pidgin/pidgin
default

Reviewers

  • Inline PURPLE_PLUGIN_INIT in wincred.
  • Add skeleton of wincred PurpleCredentialProvider object.
  • Implement password reading.
  • Implement wincred password writing.
  • Implement wincred password clearing.
  • Autoload wincred keyring plugin.
  • Cleanup formatting.

Added XMPP account, saved password, disabled and re-enabled account which kept the password. Restarted Pidgin and password was still saved. Removed XMPP account, and password was deleted from Credential Manager.

I'm not sure that the password needs to be converted from UTF-8 to "Unicode", as I did not test modifying the password in Credential Manager.