[EMAIL PROTECTED] wrote:
>> 5) After this I configure the socket to handshake as a server by calling
>> SSL_ConfigSecureServer.
>> 6) Now I call SSL_ResetHandshake(socket, PR_TRUE).
>>
>>     All these functions execute successfully without any errors.
> 
> 
>    Just thought I should give a bit more information.
>    These execute successfully only if the nsSocketInputStream::Read
> function doesn't get called. Otherwise, all functions execute correctly
> except SSL_ResetHandshake() which crashes at the point where it tries
> to lock the reader.
>    Also the nsSocketInputStream::Read() percolates down to functions like
> ssl_SecureRecv().

Sounds to me like you're sharing a socket with PSM (all that c++ code is
PSM, not NSS) and PSM is doing things to the socket at the same time that
your code is, probably on another thread.  Sounds like your socket is
getting closed while you're using it.  I can't help you with PSM.

/Nelson

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

Reply via email to