Patches item #586158, was opened at 2002-07-24 21:36
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=304593&aid=586158&group_id=4593
Category: devel
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Andy Bach (afbach)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix for ssl/https connection
Initial Comment:
I found on https connections failed on the 2nd connect
for 3.2b4 on Solaris and linux. I appear to have fixed
it by changing the SSLConnection destructor, adding a
ctx = NULL;
to
htnet/SSLConnection.cc
SSLConnection::~SSLConnection()
{
if ( ctx != NULL )
SSL_CTX_free(ctx);
ctx = NULL;
}
I'd added much debug to track it down to the failure in
SSLConnection::Connect, at the SSL_new(ctx) call for
the seg fault. ctx had the same value as when the first
connection, yet that connection was closed.
SSLConnection::InitSSL only inits if ctx is NULL so ...
Anyway, it seems to have fixed it. I did have to
manually alter include/htconfig.h to #define
HAVE_SSL_H HAVE_LIBSSL and HAVE_LIBCRYPTO
even though configure found ssl and -lssl -lcrypto got
added to the Makefiles as needed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=304593&aid=586158&group_id=4593
|