summaryrefslogtreecommitdiff
path: root/src/SocketCore.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/SocketCore.cc')
-rw-r--r--src/SocketCore.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc
index 07b4b3c1..94b986ed 100644
--- a/src/SocketCore.cc
+++ b/src/SocketCore.cc
@@ -193,9 +193,9 @@ void SocketCore::peekData(char* data, int& len, int timeout) {
}
}
-#ifdef HAVE_LIBSSL
-// for SSL
void SocketCore::initiateSecureConnection() {
+#ifdef HAVE_LIBSSL
+ // for SSL
if(!secure) {
sslCtx = SSL_CTX_new(SSLv23_client_method());
if(sslCtx == NULL) {
@@ -215,5 +215,6 @@ void SocketCore::initiateSecureConnection() {
}
secure = true;
}
-}
#endif // HAVE_LIBSSL
+}
+