diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-12-01 23:37:57 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-12-01 23:37:57 +0900 |
| commit | 8ac433a8e9ab8bddd96c62db4bbeac3adce2b3ba (patch) | |
| tree | 9b3e27376e480cd2edf1cfad0aad35e91e552194 /src/SocketCore.cc | |
| parent | 2cbdd8b8452f0946693b2a283f08f3de4a8f1eb1 (diff) | |
Fixed compile error without SSL/TLS librelease-1.16.0
Diffstat (limited to 'src/SocketCore.cc')
| -rw-r--r-- | src/SocketCore.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc index 9bac58d4..9a138a54 100644 --- a/src/SocketCore.cc +++ b/src/SocketCore.cc @@ -829,6 +829,8 @@ void SocketCore::readData(char* data, size_t& len) len = ret; } +#ifdef ENABLE_SSL + bool SocketCore::tlsAccept() { return tlsHandshake(svTlsContext_.get(), A2STR::NIL); @@ -1162,6 +1164,8 @@ bool SocketCore::tlsHandshake(TLSContext* tlsctx, const std::string& hostname) return true; } +#endif // ENABLE_SSL + ssize_t SocketCore::writeData(const char* data, size_t len, const std::string& host, uint16_t port) { |
