summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorIzik Eidus <ieidus@redhat.com>2009-12-22 06:52:14 +0200
committerYaniv Kamay <ykamay@redhat.com>2010-01-03 17:47:13 +0200
commit6333e034a3dbe00a9826cb5d802477dd78047221 (patch)
treeda5be634eea904280af126294cfbe475bcdcba01 /client
parent6b065f80dee389490c20289beb97415b06108d02 (diff)
downloadspice-6333e034a3dbe00a9826cb5d802477dd78047221.tar.gz
spice-6333e034a3dbe00a9826cb5d802477dd78047221.tar.xz
spice-6333e034a3dbe00a9826cb5d802477dd78047221.zip
spice: fix ssl compiling errors
(openssl api was changed, so lets have ifdef to compile in all cases) Signed-off-by: Izik Eidus <ieidus@redhat.com>
Diffstat (limited to 'client')
-rw-r--r--client/red_peer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/red_peer.cpp b/client/red_peer.cpp
index e20d5ca6..d0868725 100644
--- a/client/red_peer.cpp
+++ b/client/red_peer.cpp
@@ -174,7 +174,11 @@ void RedPeer::connect_secure(const ConnectionOptions& options, uint32_t ip)
ASSERT(_ctx == NULL && _ssl == NULL && _peer != INVALID_SOCKET);
try {
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+ const SSL_METHOD *ssl_method = TLSv1_method();
+#else
SSL_METHOD *ssl_method = TLSv1_method();
+#endif
_ctx = SSL_CTX_new(ssl_method);
if (_ctx == NULL) {