summaryrefslogtreecommitdiff
path: root/net-misc/megasync/files/megasync-libressl.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-01-05 01:24:58 +0000
committerV3n3RiX <venerix@redcorelinux.org>2017-01-05 01:24:58 +0000
commit403ba1d07355ab3c8990db5f2102111fe42224d0 (patch)
tree507e45528db182c91fa9b83e83f747c700ff7f18 /net-misc/megasync/files/megasync-libressl.patch
parent2f48a91704a4cb55d8adc84ce895b21606f8e4a1 (diff)
add megasync
Diffstat (limited to 'net-misc/megasync/files/megasync-libressl.patch')
-rw-r--r--net-misc/megasync/files/megasync-libressl.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/net-misc/megasync/files/megasync-libressl.patch b/net-misc/megasync/files/megasync-libressl.patch
new file mode 100644
index 00000000..13930b6f
--- /dev/null
+++ b/net-misc/megasync/files/megasync-libressl.patch
@@ -0,0 +1,12 @@
+diff -ru MEGAsync_orig/src/MEGASync/mega/src/posix/net.cpp MEGAsync/src/MEGASync/mega/src/posix/net.cpp
+--- MEGAsync_orig/src/MEGASync/mega/src/posix/net.cpp 2016-09-04 00:57:26.709821499 +0200
++++ MEGAsync/src/MEGASync/mega/src/posix/net.cpp 2016-09-04 01:00:18.596739533 +0200
+@@ -34,7 +34,7 @@
+ std::transform(curlssl.begin(), curlssl.end(), curlssl.begin(), ::tolower);
+
+ #if !defined(USE_CURL_PUBLIC_KEY_PINNING) || defined(WINDOWS_PHONE)
+- if (!strstr(curlssl.c_str(), "openssl"))
++ if (!strstr(curlssl.c_str(), "openssl") && !strstr(curlssl.c_str(), "libressl"))
+ {
+ LOG_fatal << "cURL built without OpenSSL support. Aborting.";
+ exit(EXIT_FAILURE);