Neil wrote:
I also notice that checkPassword(""); logs out if there was a password. Can this behaviour be relied on, or should I call logoutSimple() too?
To answer my own question, nsPK11Token::CheckPassword calls PK11_CheckUserPassword which is documented as logging out if the password is incorrect. I think this works because PK11_CheckUserPassword calls C_Login immediately without calling IsLoggedIn first.
-- Warning: May contain traces of nuts. -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto