summaryrefslogtreecommitdiff
blob: f8b4a4bc2af2586fcfbb64cc4029aee9100a3b8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
http://bugs.gentoo.org/330291

--- dclib/core/cssl.cpp
+++ dclib/core/cssl.cpp
@@ -86,7 +86,11 @@
 /** */
 SSL_CTX * CSSL::InitClientCTX()
 {
+	#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+	const SSL_METHOD *method;
+	#else
 	SSL_METHOD *method;
+	#endif
 	SSL_CTX *ctx = NULL;
 
 	method = SSLv23_client_method();		/* Create new client-method instance */
@@ -109,7 +113,11 @@
 /** */
 SSL_CTX * CSSL::InitServerCTX()
 {
+	#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+	const SSL_METHOD *method;
+	#else
 	SSL_METHOD *method;
+	#endif
 	SSL_CTX *ctx = NULL;
 
 	method = SSLv23_server_method();		/* Create new client-method instance */
@@ -130,7 +138,11 @@
 /** */
 SSL_CTX * CSSL::NewTLSv1ClientCTX()
 {
+	#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+	const SSL_METHOD * method = TLSv1_client_method();
+	#else
 	SSL_METHOD * method = TLSv1_client_method();
+	#endif
 	SSL_CTX * ctx = NULL;
 	
 	if ( method != NULL )
@@ -149,7 +161,11 @@
 /** */
 SSL_CTX * CSSL::NewTLSv1ServerCTX()
 {
+	#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+	const SSL_METHOD * method = TLSv1_server_method();
+	#else
 	SSL_METHOD * method = TLSv1_server_method();
+	#endif
 	SSL_CTX * ctx = NULL;
 	
 	if ( method != NULL )