mirror of
https://github.com/anope/anope.git
synced 2026-07-06 07:53:14 +02:00
Cleanup some excess whitespaces and tabs, and fix a few typos along the way.
This commit is contained in:
@@ -205,7 +205,7 @@ void MySSLService::Init(Socket *s)
|
||||
{
|
||||
if (s->io != &NormalSocketIO)
|
||||
throw CoreException("Socket initializing SSL twice");
|
||||
|
||||
|
||||
s->io = new SSLSocketIO();
|
||||
}
|
||||
|
||||
@@ -283,7 +283,7 @@ ClientSocket *SSLSocketIO::Accept(ListenSocket *s)
|
||||
|
||||
newsocket->flags[SF_ACCEPTING] = true;
|
||||
this->FinishAccept(newsocket);
|
||||
|
||||
|
||||
return newsocket;
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ SocketFlag SSLSocketIO::FinishAccept(ClientSocket *cs)
|
||||
throw SocketException("SSLSocketIO::FinishAccept called for a socket not accepted nor accepting?");
|
||||
|
||||
SSLSocketIO *io = anope_dynamic_static_cast<SSLSocketIO *>(cs->io);
|
||||
|
||||
|
||||
int ret = SSL_accept(io->sslsock);
|
||||
if (ret <= 0)
|
||||
{
|
||||
@@ -378,7 +378,7 @@ SocketFlag SSLSocketIO::FinishConnect(ConnectionSocket *s)
|
||||
if (!SSL_set_fd(io->sslsock, s->GetFD()))
|
||||
throw SocketException("Unable to set SSL fd");
|
||||
}
|
||||
|
||||
|
||||
int ret = SSL_connect(io->sslsock);
|
||||
if (ret <= 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user