Nelson B wrote:
Charles Majola wrote:

Can anyone tell me how I can go about changing firefox's saved proxy
password from an external program. I'm trying to use libnss but I can't
seem to figure out how it stores/retrieve the password.

There's a sample program that shows how to decrypt those passwords.
See it at
http://lxr.mozilla.org/security/source/security/nss/cmd/pwdecrypt/pwdecrypt.c

The difficult part is done by PK11SDR_Decrypt().
There's also a corresponding PK11SDR_Encrypt().
These are parts of the "Secret Decoder Ring" API.  See the prototypes at
http://lxr.mozilla.org/security/source/security/nss/lib/pk11wrap/pk11sdr.h#44



<snip>
// PK11_SetPasswordFunc(SECU_GetModulePassword);
rv = NSS_Init("/home/buildd/.netscape");
<snip>

NSS_Init fails, do I need to write something similar to SECU_GetModulePassword?
What does that function do?

--
chmj
_______________________________________________
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to