mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +00:00
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>
This commit is contained in:
parent
e93ef13b8f
commit
cb0cd69933
@ -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) {
|
||||
|
||||
@ -3165,7 +3165,11 @@ static void openssl_thread_setup()
|
||||
|
||||
static void reds_init_ssl()
|
||||
{
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
||||
const SSL_METHOD *ssl_method;
|
||||
#else
|
||||
SSL_METHOD *ssl_method;
|
||||
#endif
|
||||
int return_code;
|
||||
long ssl_options = SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user