Fwd: Bug and fix in handshake negotiation - apache 1.x series (2.8.16-1.3.29)

Fwd: Bug and fix in handshake negotiation - apache 1.x series (2.8.16-1.3.29)

am 15.04.2004 19:49:44 von a k

--0-1631972726-1082051384=:67103
Content-Type: text/plain; charset=us-ascii
Content-Id:
Content-Disposition: inline


Note: forwarded message attached.





__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
--0-1631972726-1082051384=:67103
Content-Type: message/rfc822

Received: from [80.67.64.10] by web80801.mail.yahoo.com via HTTP; Thu, 15 Apr 2004 10:10:11 PDT
Date: Thu, 15 Apr 2004 10:10:10 -0700 (PDT)
From: a k
Subject: Bug and fix in handshake negotiation - apache 1.x series (2.8.16-1.3.29)
To: modssl-users@modssl.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Length: 481

If an interrupt (EINTR) occurs during the handshake
the current code will abort the handshake with:

ssl_log(srvr,
SSL_LOG_ERROR|SSL_ADD_SSLERR|SSL_ADD_ERRNO,
"SSL handshake failed (server
%s, client %s)", cpVHostID,
conn->remote_ip != NULL ?
conn->remote_ip : "unknown");

-- the following will fix this problem:

int err;

err = SSL_get_error(ssl, rc);
if( err == SSL_ERROR_WANT_READ &&

BIO_should_retry(SSL_get_rbio(ssl)) ) {
ssl_log(srvr,SSL_LOG_INFO,"SSL
READ ERROR IGNORED on pid (%d)\n",getpid());
continue;
} else if( err == SSL_ERROR_WANT_WRITE
&&

BIO_should_retry(SSL_get_wbio(ssl)) ) {
ssl_log(srvr,SSL_LOG_INFO,"SSL
READ ERROR IGNORED on pid (%d)\n",getpid());
continue;
}






__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

--0-1631972726-1082051384=:67103--
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org