/[gentoo-x86]/net-p2p/dclib/files/dclib-0.3.23-openssl-1.patch
Gentoo

Contents of /net-p2p/dclib/files/dclib-0.3.23-openssl-1.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jul 29 08:45:01 2010 UTC (2 years, 9 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Fix building with OpenSSL >= 1.0.0 wrt #330291 by Diego E. Pettenò.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 http://bugs.gentoo.org/330291
2
3 --- dclib/core/cssl.cpp
4 +++ dclib/core/cssl.cpp
5 @@ -86,7 +86,11 @@
6 /** */
7 SSL_CTX * CSSL::InitClientCTX()
8 {
9 + #if OPENSSL_VERSION_NUMBER >= 0x10000000L
10 + const SSL_METHOD *method;
11 + #else
12 SSL_METHOD *method;
13 + #endif
14 SSL_CTX *ctx = NULL;
15
16 method = SSLv23_client_method(); /* Create new client-method instance */
17 @@ -109,7 +113,11 @@
18 /** */
19 SSL_CTX * CSSL::InitServerCTX()
20 {
21 + #if OPENSSL_VERSION_NUMBER >= 0x10000000L
22 + const SSL_METHOD *method;
23 + #else
24 SSL_METHOD *method;
25 + #endif
26 SSL_CTX *ctx = NULL;
27
28 method = SSLv23_server_method(); /* Create new client-method instance */
29 @@ -130,7 +138,11 @@
30 /** */
31 SSL_CTX * CSSL::NewTLSv1ClientCTX()
32 {
33 + #if OPENSSL_VERSION_NUMBER >= 0x10000000L
34 + const SSL_METHOD * method = TLSv1_client_method();
35 + #else
36 SSL_METHOD * method = TLSv1_client_method();
37 + #endif
38 SSL_CTX * ctx = NULL;
39
40 if ( method != NULL )
41 @@ -149,7 +161,11 @@
42 /** */
43 SSL_CTX * CSSL::NewTLSv1ServerCTX()
44 {
45 + #if OPENSSL_VERSION_NUMBER >= 0x10000000L
46 + const SSL_METHOD * method = TLSv1_server_method();
47 + #else
48 SSL_METHOD * method = TLSv1_server_method();
49 + #endif
50 SSL_CTX * ctx = NULL;
51
52 if ( method != NULL )

  ViewVC Help
Powered by ViewVC 1.1.13