#5628 Initialize SSL on secure client sockets
This commit is contained in:
parent
0d84e4eed6
commit
55a2d1231f
|
@ -43,15 +43,14 @@ TCPSocketFactory::~TCPSocketFactory()
|
||||||
IDataSocket*
|
IDataSocket*
|
||||||
TCPSocketFactory::create(bool secure) const
|
TCPSocketFactory::create(bool secure) const
|
||||||
{
|
{
|
||||||
IDataSocket* socket = NULL;
|
|
||||||
if (secure) {
|
if (secure) {
|
||||||
socket = new SecureSocket(m_events, m_socketMultiplexer);
|
SecureSocket* secureSocket = new SecureSocket(m_events, m_socketMultiplexer);
|
||||||
|
secureSocket->initSsl (false);
|
||||||
|
return secureSocket;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
socket = new TCPSocket(m_events, m_socketMultiplexer);
|
return new TCPSocket(m_events, m_socketMultiplexer);
|
||||||
}
|
}
|
||||||
|
|
||||||
return socket;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
IListenSocket*
|
IListenSocket*
|
||||||
|
|
Loading…
Reference in New Issue