Umesh Bywar wrote: > I am having a problem in configuring a socket to do hand shake as server. I > have a socket on which some communication has already taken place. When I try > to upgrade the socket to SSL, the SSL_LOCK_READER(ss) in SSL_ResetHandshake > throws an exception and everything is aborted.
I gather that you mean: it crashes. > Basically, _PR_MD_LOCK(&lock->ilock) in prulock.c throws the exception. I'll bet lock is NULL. > Now, before I > proceed on upgrading the socket, I've written something to the client and > client has sent its response, but I don't read it. I proceed to the socket > upgradation instead. By what means do you attempt this "upgrade"? What functions do you call? Do you check them to see if they return a failure indication? Do you check the error code if they fail? > Is it what is causing the problem in locking the reader? > Any idea how to tackle this? Strangely enough, this doesn't happen all the > time. Sometimes the SSL_ResetHandshake successfully upgrades the socket. There are other steps that must be performed first. You cannot use SSL_ResetHandshake until you have converted the socket to an SSL socket. That is what I would call the "upgrade". How do you do that? What steps do you do? Note, I don't want to read code here. You can just give a short summary. /Nelson _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto