summaryrefslogtreecommitdiff
path: root/net-p2p/dclib/files/patch-dclib-core_cssl.cpp
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2017-01-11 11:15:27 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2017-01-11 11:15:27 +0000
commit156dbca08f14bfff74de784ffc8d21debbe8af83 (patch)
tree11ca933d20c434da02636cea0d294f1bfe21ca93 /net-p2p/dclib/files/patch-dclib-core_cssl.cpp
parentRead and write Ruby-marshalled data. (diff)
- Add LICENSE
- Switch to USES=ssl - Switch to USES=localbase - Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL
Diffstat (limited to 'net-p2p/dclib/files/patch-dclib-core_cssl.cpp')
-rw-r--r--net-p2p/dclib/files/patch-dclib-core_cssl.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/net-p2p/dclib/files/patch-dclib-core_cssl.cpp b/net-p2p/dclib/files/patch-dclib-core_cssl.cpp
new file mode 100644
index 000000000000..af5ea03b98a1
--- /dev/null
+++ b/net-p2p/dclib/files/patch-dclib-core_cssl.cpp
@@ -0,0 +1,38 @@
+--- dclib/core/cssl.cpp.orig 2013-09-07 16:26:31.000000000 +0200
++++ dclib/core/cssl.cpp 2013-09-07 16:28:11.000000000 +0200
+@@ -86,7 +86,7 @@
+ /** */
+ SSL_CTX * CSSL::InitClientCTX()
+ {
+- SSL_METHOD *method;
++ const SSL_METHOD *method;
+ SSL_CTX *ctx = NULL;
+
+ method = SSLv23_client_method(); /* Create new client-method instance */
+@@ -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 )