diff options
Diffstat (limited to 'freefilesync/debian')
-rw-r--r-- | freefilesync/debian/changelog | 12 | ||||
-rw-r--r-- | freefilesync/debian/patches/ffs_libssl.patch | 53 | ||||
-rw-r--r-- | freefilesync/debian/patches/series | 1 |
3 files changed, 63 insertions, 3 deletions
diff --git a/freefilesync/debian/changelog b/freefilesync/debian/changelog index 93fc6b7..ca2a9c5 100644 --- a/freefilesync/debian/changelog +++ b/freefilesync/debian/changelog @@ -1,10 +1,10 @@ -freefilesync (10.21-2+devuan) obs; urgency=medium +freefilesync (10.22-2+devuan) albion; urgency=medium * gtk2 build - -- Ben Stack <bgstack15@gmail.com> Wed, 18 Mar 2020 11:18:01 -0400 + -- Ben Stack <bgstack15@gmail.com> Wed, 18 Mar 2020 14:24:32 -0400 -freefilesync (10.21-1+devuan) obs; urgency=medium +freefilesync (10.22-1+devuan) UNRELEASED; urgency=medium * BROKEN! This package does not actually exist. See README.debian * Preselect last-used email address @@ -22,6 +22,12 @@ freefilesync (10.21-1+devuan) obs; urgency=medium * Fixed IWbemServices::ConnectServer error after sync * Fixed aggregate email logs incomplete truncation + -- Ben Stack <bgstack15@gmail.com> Wed, 18 Mar 2020 14:22:58 -0400 + +freefilesync (10.21-1+devuan) UNRELEASED; urgency=medium + + * upstream changelog points to 10.22 + -- Ben Stack <bgstack15@gmail.com> Wed, 18 Mar 2020 09:18:01 -0400 freefilesync (10.20-1+devuan) obs; urgency=low diff --git a/freefilesync/debian/patches/ffs_libssl.patch b/freefilesync/debian/patches/ffs_libssl.patch new file mode 100644 index 0000000..1e043c1 --- /dev/null +++ b/freefilesync/debian/patches/ffs_libssl.patch @@ -0,0 +1,53 @@ +Author: bgstack15 +Message: Revert freefilesync 10.22 zen/open_ssl.cpp which depends on openssl 1.1.1e which is not available in this distro yet. +Date: 2020-03-18 +diff --git a/zen/open_ssl.cpp b/zen/open_ssl.cpp +index 0f1da3fc..b823f8ca 100644 +--- a/zen/open_ssl.cpp ++++ b/zen/open_ssl.cpp +@@ -18,7 +18,7 @@ using namespace zen; + #error FFS, we are royally screwed! + #endif + +-static_assert(OPENSSL_VERSION_NUMBER >= 0x1010105fL, "OpenSSL version too old"); ++static_assert(OPENSSL_VERSION_NUMBER >= 0x10100000L, "OpenSSL version too old"); + + + void zen::openSslInit() +@@ -68,7 +68,7 @@ std::wstring formatOpenSSLError(const std::wstring& functionName, unsigned long + + std::wstring formatLastOpenSSLError(const std::wstring& functionName) + { +- const auto ec = ::ERR_peek_last_error(); ++ const unsigned long ec = ::ERR_peek_last_error(); + ::ERR_clear_error(); //clean up for next OpenSSL operation on this thread + return formatOpenSSLError(functionName, ec); + } +@@ -566,16 +566,9 @@ public: + if (rv != 1) + { + const int sslError = ::SSL_get_error(ssl_, rv); +- if (sslError == SSL_ERROR_ZERO_RETURN) +- return 0; //EOF + close_notify alert +- +- warn_static("find a better solution for SSL_read_ex + EOF") +- //"sslError == SSL_ERROR_SYSCALL && ::ERR_peek_last_error() == 0" => obsolete as of OpenSSL 1.1.1e +- //https://github.com/openssl/openssl/issues/10880#issuecomment-575746226 +- const auto ec = ::ERR_peek_last_error(); +- if (sslError == SSL_ERROR_SSL && ERR_GET_REASON(ec) == SSL_R_UNEXPECTED_EOF_WHILE_READING) //EOF: only expected for HTTP/1.0 ++ if (sslError == SSL_ERROR_ZERO_RETURN || //EOF + close_notify alert ++ (sslError == SSL_ERROR_SYSCALL && ::ERR_peek_last_error() == 0)) //EOF: only expected for HTTP/1.0 + return 0; +- + throw SysError(formatLastOpenSSLError(L"SSL_read_ex") + L' ' + formatSslErrorCode(sslError)); + } + assert(bytesReceived > 0); //SSL_read_ex() considers EOF an error! +@@ -771,7 +764,7 @@ std::string zen::convertPuttyKeyToPkix(const std::string& keyStream, const std:: + + auto numToBeString = [](size_t n) -> std::string + { +- static_assert(usingLittleEndian()&& sizeof(n) >= 4); ++ static_assert(usingLittleEndian() && sizeof(n) >= 4); + const char* numStr = reinterpret_cast<const char*>(&n); + return { numStr[3], numStr[2], numStr[1], numStr[0] }; //big endian! + }; diff --git a/freefilesync/debian/patches/series b/freefilesync/debian/patches/series index 2d91735..48d9670 100644 --- a/freefilesync/debian/patches/series +++ b/freefilesync/debian/patches/series @@ -7,3 +7,4 @@ ffs_no_wx311.patch ffs_sftp.patch ffs_libssh2.patch ffs_curl.patch +ffs_libssl.patch |