summaryrefslogtreecommitdiff
path: root/src/SocketCore.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-02-17 19:04:22 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-02-17 19:04:22 +0000
commit8a70369dcf39adeb3fa6f3f4e0aaaa764ed6fc0d (patch)
tree2f081a4ab095afe84b454c95ded7a499171ef646 /src/SocketCore.cc
parent2c732211f45b4caea3f569971905f176887b4a4a (diff)
Make Socket::initiateSecureConnection an empty method when HAVE_LIBSSL
is undefined
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
+}
+