On 24.01.2011 01:56, Ben Bucksch wrote:
> I am trying to implement XMPP, in chrome-JS.
[...]
>  From what I understand, the app should be able to tell the security lib 
> which hostname to check against, because we're supposed to check against 
> what the user entered originally, not necessarily what we end up with. 
> Most libs, e.g. java and Python, even require the app author to 
> explicitly set this. So, I assume that possibility is somewhere, I just 
> didn't find the API.

You're looking for SSL_SetURL
(http://mxr.mozilla.org/mozilla/ident?i=SSL_SetURL), but note that this
is currently not exposed to JS land... maybe something to add to PSM's
nsNSSSocketInfo?

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

Reply via email to