summaryrefslogtreecommitdiff
path: root/src/Socket.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-02-17 18:51:12 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-02-17 18:51:12 +0000
commit2c732211f45b4caea3f569971905f176887b4a4a (patch)
treeb86f8ec0803c8f66ec08756b2bc69db09caa0461 /src/Socket.h
parent8acb1181f9b6879b9520a824d1e15fa0dd889624 (diff)
* Added HTTPS support.
* Added SocketCore. Socket is now handle class for SocketCore. * Fixed bug in ChunkedEncoding: expanding buffer size is wrong * Fixed bug in DownloadCommand: In Chunked Encoding, it wrongly adds to Segment.ds buff length from the socket.
Diffstat (limited to 'src/Socket.h')
-rw-r--r--src/Socket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Socket.h b/src/Socket.h
index e6254f17..45f2d298 100644
--- a/src/Socket.h
+++ b/src/Socket.h
@@ -24,6 +24,7 @@
#include <string>
#include "SocketCore.h"
+#include "common.h"
using namespace std;
@@ -74,6 +75,11 @@ public:
// Reads up to len bytes from this socket, but bytes are not removed from
// this socket.
void peekData(char* data, int& len, int timeout = 5);
+
+#ifdef HAVE_LIBSSL
+ // for SSL
+ void initiateSecureConnection();
+#endif // HAVE_LIBSSL
};
#endif // _D_SOCKET_H_