summaryrefslogtreecommitdiff
path: root/network/dclib/dclib-0.3.23.patch
blob: 49ca6c8840c1ecbc5fd94e6b79544e2af02ed7bc (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
--- dclib/core/cssl.cpp	2009-01-07 23:13:52.000000000 +0100
+++ dclib/core/cssl.cpp.new	2013-09-29 13:19:29.489059230 +0200
@@ -86,10 +86,10 @@
 /** */
 SSL_CTX * CSSL::InitClientCTX()
 {
-	SSL_METHOD *method;
+	const SSL_METHOD *method;
 	SSL_CTX *ctx = NULL;
 
-	method = SSLv23_client_method();		/* Create new client-method instance */
+        method = SSLv23_client_method();		/* Create new client-method instance */
 	
 	// sanity check
 	if ( method != NULL )
@@ -109,7 +109,7 @@
 /** */
 SSL_CTX * CSSL::InitServerCTX()
 {
-	SSL_METHOD *method;
+	const SSL_METHOD *method;
 	SSL_CTX *ctx = NULL;
 
 	method = SSLv23_server_method();		/* Create new client-method instance */
@@ -130,7 +130,7 @@
 /** */
 SSL_CTX * CSSL::NewTLSv1ClientCTX()
 {
-	SSL_METHOD * method = TLSv1_client_method();
+	const SSL_METHOD * method = TLSv1_client_method();
 	SSL_CTX * ctx = NULL;
 	
 	if ( method != NULL )
@@ -149,7 +149,7 @@
 /** */
 SSL_CTX * CSSL::NewTLSv1ServerCTX()
 {
-	SSL_METHOD * method = TLSv1_server_method();
+	const SSL_METHOD * method = TLSv1_server_method();
 	SSL_CTX * ctx = NULL;
 	
 	if ( method != NULL )