pidgin/pidgin

Port wincred keyring to PurpleCredentialManager

2021-01-30, Elliott Sales de Andrade
548fed625b8a
Port wincred keyring to PurpleCredentialManager

* 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.

Testing Done:
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.

Bugs closed: PIDGIN-17489

Reviewed at https://reviews.imfreedom.org/r/466/
af
am
ar
as
ast
az
be@latin
bg
bn_IN
bn
br
brx
bs
ca
ca@valencia
cs
da
de
dz
el
en_AU
en_CA
en_GB
eo
es_AR
es
et
eu
fa
fi
fr
ga
gl
gu
he
hi
hr
hu
hy
id
it
ja
ka
kk
km
kn
ko
ks
ku_IQ
ku
lt
lv
mai
mhr
mk
ml
mn
mr
ms_MY
my_MM
nb
ne
nl
nn
oc
or
pa
pl
ps
pt_BR
pt
ro
ru
sd
si
sk
sl
sq
sr@latin
sr
sv
sw
ta
te
th
tr
tt
uk
ur
uz
vi
xh
zh_CN
zh_HK
zh_TW