diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2006-08-29 00:36:17 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2006-08-29 00:36:17 +0000 |
| commit | a0f8a4cd6c9b06d9c9afed29ac705969a227c9a5 (patch) | |
| tree | 1acd45a1154b6a2c554ab489464acf1367a381ed /src | |
| parent | better handle startTls() if client not built with ssl (diff) | |
| download | inkscape-a0f8a4cd6c9b06d9c9afed29ac705969a227c9a5.tar.gz inkscape-a0f8a4cd6c9b06d9c9afed29ac705969a227c9a5.zip | |
better handle startTls() if client not built with ssl
(bzr r1654)
Diffstat (limited to 'src')
| -rw-r--r-- | src/pedro/pedroutil.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/pedro/pedroutil.cpp b/src/pedro/pedroutil.cpp index 36180c556..6d988c719 100644 --- a/src/pedro/pedroutil.cpp +++ b/src/pedro/pedroutil.cpp @@ -880,13 +880,6 @@ TcpSocket::TcpSocket() } -TcpSocket::TcpSocket(const char *hostnameArg, int port) -{ - init(); - hostname = hostnameArg; - portno = port; -} - TcpSocket::TcpSocket(const std::string &hostnameArg, int port) { init(); @@ -1023,6 +1016,15 @@ bool TcpSocket::isConnected() return true; } +bool TcpSocket::getHaveSSL() +{ +#ifdef HAVE_SSL + return true; +#else + return false; +#endif +} + void TcpSocket::enableSSL(bool val) { sslEnabled = val; @@ -1034,12 +1036,6 @@ bool TcpSocket::getEnableSSL() } -bool TcpSocket::connect(const char *hostnameArg, int portnoArg) -{ - hostname = hostnameArg; - portno = portnoArg; - return connect(); -} bool TcpSocket::connect(const std::string &hostnameArg, int portnoArg) { |
