On Tue, Aug 24, 2004, Edward Chan wrote: > Hi there, > > Can anybody tell me what the following error means? > > error:00000005:lib(0):func(0):DH lib > > It seems to happen when I do an SSL_read(). > > I've downloaded and built openssl-0.9.7d on Windows. I'm using OpenSSL on > my server. The client does not use OpenSSL. It uses WinINET API's to > handle the SSL handshake. > > As far as I can tell, the SSL_accept() call was successful. The client was > also able to receive the certificate that I generated using OpenSSL, and it > popped up the dialog box that warns that it is from an untrusted Certificate > Authority, as expected. I select "Yes" to continue. But even before that, > on the server side, the call to SSL_read() fails with the error above. Can > anybody tell me what it means? > > BTW, I've set the SSL_MODE_AUTO_RETRY mode on the SSL_CTX used to create the > SSL object passed to SSL_read(). > > I've also called SSL_CTX_set_tmp_dh_callback() to setup the DH callback. > But it doesn't get called. >
What code are you using to display that error? It looks like something is being passed to the error routines that isn't a valid error. Woth regard to your main problem: it is possible the client closes the connection while it is waiting for the dialog boz response (possibly impolitely) and opens a new one later: that could be the cause. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
