[prev in list] [next in list] [prev in thread] [next in thread]
List: mozilla-crypto
Subject: Re: master password prompt
From: paxunix () acm ! org (paxunix)
Date: 2003-06-21 3:45:10
[Download RAW message or body]
paxunix@acm.org (paxunix) wrote in message news:<95a9ca70.0306191256.258233e0@posting.google.com>...
[ ... searching source, find which component ... ]
> I was hopeful that perhaps nsITokenPasswordDialogs, nsITokenDialogs,
> nsIPK11Token, or nsIPK11TokenDB might do what I want, but it doesn't
> look promising.
After much searching and debugging (long live Venkman) I found a
solution. You can get the nsIPK11TokenDB interface and retrieve the
internal token (for the "Software Security Device") and now you can
verify a password string against the password for that token.
Wrap some prompt-service goodies around that and there you go.
Those looking for code can take a look at the attachment to bug
#78754, specifically at ConfirmShowPasswords().
Given the idl for nsITokenPasswordDialogs, it looks like I should have
been able to use it instead of having to set up my own prompt, but I
couldn't figure out what I was supposed to pass as the first parameter
to nsITokenPasswordDialogs.getPassword().
--
paxunix
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic