diff options
author | Izik Eidus <ieidus@redhat.com> | 2009-12-22 06:52:14 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2009-12-22 21:39:17 +0200 |
commit | cb0cd69933829cd5d346e4b466c11c35c6fe8efb (patch) | |
tree | 214dc4666f0ddeeed6ba32343858b94d405d2d95 /client/red_peer.cpp | |
parent | e93ef13b8f2d2880b02271306cd3b6889e51373c (diff) | |
download | spice-cb0cd69933829cd5d346e4b466c11c35c6fe8efb.tar.gz spice-cb0cd69933829cd5d346e4b466c11c35c6fe8efb.tar.xz spice-cb0cd69933829cd5d346e4b466c11c35c6fe8efb.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/red_peer.cpp')
-rw-r--r-- | client/red_peer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/red_peer.cpp b/client/red_peer.cpp index dad035d4..79409ed1 100644 --- a/client/red_peer.cpp +++ b/client/red_peer.cpp @@ -132,7 +132,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) { |