diff options
| author | Robby <robby@chatbelgie.be> | 2017-01-17 05:03:25 +0100 |
|---|---|---|
| committer | Robby <robby@chatbelgie.be> | 2017-01-17 05:03:25 +0100 |
| commit | 76ce8ece1a4803c98bfe9460f40bf8e0fbc409e6 (patch) | |
| tree | 26e6da47f20de64ef76fe4afc459bbb7889bd417 /modules/extra/m_ssl_openssl.cpp | |
| parent | 464093d36e87f3df999145e42ed30fc0dfc55c52 (diff) | |
Cleanup some excess whitespaces and tabs, and fix a few typos along the way.
Diffstat (limited to 'modules/extra/m_ssl_openssl.cpp')
| -rw-r--r-- | modules/extra/m_ssl_openssl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/extra/m_ssl_openssl.cpp b/modules/extra/m_ssl_openssl.cpp index 65b06604e..391ab2f9f 100644 --- a/modules/extra/m_ssl_openssl.cpp +++ b/modules/extra/m_ssl_openssl.cpp @@ -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) { |
