Emmanuel Dreyfus <m...@netbsd.org> wrote: > popChallengeResponse seems do do what I need: > https://developer.mozilla.org/en/PopChallengeResponse > > But there is not a lot of information about that function. Is there any > sample code using it?
I found the usage example I was looking for in security/nss/cmd/crmftest/testcrmf.c, but the thing is really disapointing, as Firefox tells me this when I attempt to use crypto.popChallengeResponse() in javascript: Erreur : uncaught exception: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMCrypto.popChallengeResponse]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: http://bacasable.example.net/test/ :: test :: line 5" data: no] Looking at Mozilla sources, I have this in security/manager/ssl/src/nsCrypto.cpp: NS_IMETHODIMP nsCrypto::PopChallengeResponse(const nsAString& aChallenge, nsAString& aReturn) { return NS_ERROR_NOT_IMPLEMENTED; } So as I understand, it is not implemented yet. This is a quite disapointing, since the documentation does suggests it is fully supported. This should be updated. Now that I wrote the code in C for producing a base64 encoded popChallengeResponses, I have the feeling implemnting the reply would not be very complicated. Is anyone working on it? Would a contribution for this have a chance to be integrated? -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz m...@netbsd.org -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto