Hello Bob and others,

I'm still trying to have nsSDR use my opencryptoki-tpm-pkcs11-token. For the moment, instanciating a pk11SlotInfo "linked" to that token works, but authentication doesn't. I'm searching the code to find the reason, but haven't been able to do so for the moment. I observed that after PK11_DoPassword() in pk11auth.c is executed for the first time, the user-PIN of the token is reset or at least changed. I don't know why. Maybe it has something to do with the fact that usually the internal token is used for that purpose. Well I don't really think so, doesn't really make sense, but maybe you already know the reason for my problem, so I wanted to ask if by chance you know?

By the way, which tools do you use for debugging?
For the moment a use a simple editor, insert printfs at "strategic positions", and generate a sdtout-console-output to try to do some "reverse engineering" and understand the implementation. I'm sure there's a better way, for instance to execute the prog "step by step", which one would you use?

Thanks!

Marc
--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to