diff options
Diffstat (limited to 'net/freerdp/files')
-rw-r--r-- | net/freerdp/files/patch-libfreerdp_core_nla.c | 22 | ||||
-rw-r--r-- | net/freerdp/files/patch-libfreerdp_crypto_tls.c | 27 | ||||
-rw-r--r-- | net/freerdp/files/patch-uwac_libuwac_CMakeLists.txt | 21 | ||||
-rw-r--r-- | net/freerdp/files/patch-uwac_libuwac_uwac-os.c | 29 | ||||
-rw-r--r-- | net/freerdp/files/patch-winpr_libwinpr_crypto_hash.c | 29 | ||||
-rw-r--r-- | net/freerdp/files/patch-winpr_libwinpr_utils_ssl.c | 47 | ||||
-rw-r--r-- | net/freerdp/files/patch-winpr_tools_makecert_makecert.c | 11 |
7 files changed, 0 insertions, 186 deletions
diff --git a/net/freerdp/files/patch-libfreerdp_core_nla.c b/net/freerdp/files/patch-libfreerdp_core_nla.c deleted file mode 100644 index b4c1df754922..000000000000 --- a/net/freerdp/files/patch-libfreerdp_core_nla.c +++ /dev/null @@ -1,22 +0,0 @@ ---- libfreerdp/core/nla.c.orig 2018-03-21 03:26:15 UTC -+++ libfreerdp/core/nla.c -@@ -1663,14 +1663,18 @@ BOOL nla_send(rdpNla* nla) - static int nla_decode_ts_request(rdpNla* nla, wStream* s) - { - int length; -+ UINT32 version = 0; - - /* TSRequest */ - if (!ber_read_sequence_tag(s, &length) || - !ber_read_contextual_tag(s, 0, &length, TRUE) || -- !ber_read_integer(s, &nla->version)) -+ !ber_read_integer(s, &version)) - { - return -1; - } -+ -+ if (version < nla->version) -+ nla->version = version; - - /* [1] negoTokens (NegoData) */ - if (ber_read_contextual_tag(s, 1, &length, TRUE) != FALSE) diff --git a/net/freerdp/files/patch-libfreerdp_crypto_tls.c b/net/freerdp/files/patch-libfreerdp_crypto_tls.c deleted file mode 100644 index 848c3c7213af..000000000000 --- a/net/freerdp/files/patch-libfreerdp_crypto_tls.c +++ /dev/null @@ -1,27 +0,0 @@ ---- libfreerdp/crypto/tls.c.orig 2017-07-24 08:46:54 UTC -+++ libfreerdp/crypto/tls.c -@@ -853,13 +853,13 @@ int tls_connect(rdpTls* tls, BIO* underlying) - if (!tls_prepare(tls, underlying, SSLv23_client_method(), options, TRUE)) - return FALSE; - --#ifndef OPENSSL_NO_TLSEXT -+#if !defined(OPENSSL_NO_TLSEXT) && !defined(LIBRESSL_VERSION_NUMBER) - SSL_set_tlsext_host_name(tls->ssl, tls->hostname); - #endif - return tls_do_handshake(tls, TRUE); - } - --#if defined(MICROSOFT_IOS_SNI_BUG) && !defined(OPENSSL_NO_TLSEXT) -+#if defined(MICROSOFT_IOS_SNI_BUG) && !defined(OPENSSL_NO_TLSEXT) && !defined(LIBRESSL_VERSION_NUMBER) - static void tls_openssl_tlsext_debug_callback(SSL* s, int client_server, - int type, unsigned char* data, int len, void* arg) - { -@@ -1002,7 +1002,7 @@ BOOL tls_accept(rdpTls* tls, BIO* underlying, rdpSetti - return FALSE; - } - --#if defined(MICROSOFT_IOS_SNI_BUG) && !defined(OPENSSL_NO_TLSEXT) -+#if defined(MICROSOFT_IOS_SNI_BUG) && !defined(OPENSSL_NO_TLSEXT) && !defined(LIBRESSL_VERSION_NUMBER) - SSL_set_tlsext_debug_callback(tls->ssl, tls_openssl_tlsext_debug_callback); - #endif - return tls_do_handshake(tls, FALSE) > 0; diff --git a/net/freerdp/files/patch-uwac_libuwac_CMakeLists.txt b/net/freerdp/files/patch-uwac_libuwac_CMakeLists.txt deleted file mode 100644 index fa5e346d84e0..000000000000 --- a/net/freerdp/files/patch-uwac_libuwac_CMakeLists.txt +++ /dev/null @@ -1,21 +0,0 @@ ---- uwac/libuwac/CMakeLists.txt.orig 2017-11-27 16:59:34 UTC -+++ uwac/libuwac/CMakeLists.txt -@@ -40,6 +40,9 @@ generate_protocol_file(xdg-shell) - generate_protocol_file(ivi-application) - generate_protocol_file(fullscreen-shell) - -+find_path(EPOLLSHIM_INCLUDE_DIR NAMES sys/epoll.h sys/timerfd.h HINTS /usr/local/include/libepoll-shim) -+find_library(EPOLLSHIM_LIBS NAMES epoll-shim libepoll-shim HINTS /usr/local/lib) -+include_directories(${EPOLLSHIM_INCLUDE_DIR}) - include_directories(${WAYLAND_INCLUDE_DIR}) - include_directories(${XKBCOMMON_INCLUDE_DIR}) - include_directories("${CMAKE_SOURCE_DIR}/uwac/include") -@@ -69,7 +72,7 @@ if (WITH_LIBRARY_VERSIONING) - set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${UWAC_VERSION} SOVERSION ${UWAC_API_VERSION}) - endif() - --target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS} ${PRIVATE_KEYWORD} ${WAYLAND_LIBS} ${XKBCOMMON_LIBS} freerdp) -+target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS} ${PRIVATE_KEYWORD} ${WAYLAND_LIBS} ${XKBCOMMON_LIBS} ${EPOLLSHIM_LIBS} freerdp) - - install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT uwac) - diff --git a/net/freerdp/files/patch-uwac_libuwac_uwac-os.c b/net/freerdp/files/patch-uwac_libuwac_uwac-os.c deleted file mode 100644 index 541d6e07aeb4..000000000000 --- a/net/freerdp/files/patch-uwac_libuwac_uwac-os.c +++ /dev/null @@ -1,29 +0,0 @@ ---- uwac/libuwac/uwac-os.c.orig 2017-11-27 16:54:50 UTC -+++ uwac/libuwac/uwac-os.c -@@ -31,6 +31,7 @@ - - #include <sys/types.h> - #include <sys/socket.h> -+#include <sys/mman.h> - #include <unistd.h> - #include <fcntl.h> - #include <errno.h> -@@ -153,17 +154,7 @@ static int create_tmpfile_cloexec(char *tmpname) - { - int fd; - --#ifdef HAVE_MKOSTEMP -- fd = mkostemp(tmpname, O_CLOEXEC); -- if (fd >= 0) -- unlink(tmpname); --#else -- fd = mkstemp(tmpname); -- if (fd >= 0) { -- fd = set_cloexec_or_close(fd); -- unlink(tmpname); -- } --#endif -+ fd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600); - - return fd; - } diff --git a/net/freerdp/files/patch-winpr_libwinpr_crypto_hash.c b/net/freerdp/files/patch-winpr_libwinpr_crypto_hash.c deleted file mode 100644 index cde32a9cc918..000000000000 --- a/net/freerdp/files/patch-winpr_libwinpr_crypto_hash.c +++ /dev/null @@ -1,29 +0,0 @@ ---- winpr/libwinpr/crypto/hash.c.orig 2017-11-28 14:26:30 UTC -+++ winpr/libwinpr/crypto/hash.c -@@ -179,7 +179,7 @@ BOOL winpr_HMAC_Init(WINPR_HMAC_CTX* ctx - if (!evp || !hmac) - return FALSE; - --#if (OPENSSL_VERSION_NUMBER < 0x10000000L) -+#if (OPENSSL_VERSION_NUMBER < 0x10000000L) || defined(LIBRESSL_VERSION_NUMBER) - HMAC_Init_ex(hmac, key, keylen, evp, NULL); /* no return value on OpenSSL 0.9.x */ - return TRUE; - #else -@@ -215,7 +215,7 @@ BOOL winpr_HMAC_Update(WINPR_HMAC_CTX* c - { - #if defined(WITH_OPENSSL) - HMAC_CTX* hmac = (HMAC_CTX*) ctx; --#if (OPENSSL_VERSION_NUMBER < 0x10000000L) -+#if (OPENSSL_VERSION_NUMBER < 0x10000000L) || defined(LIBRESSL_VERSION_NUMBER) - HMAC_Update(hmac, input, ilen); /* no return value on OpenSSL 0.9.x */ - return TRUE; - #else -@@ -247,7 +247,7 @@ BOOL winpr_HMAC_Final(WINPR_HMAC_CTX* ct - - #if defined(WITH_OPENSSL) - hmac = (HMAC_CTX*) ctx; --#if (OPENSSL_VERSION_NUMBER < 0x10000000L) -+#if (OPENSSL_VERSION_NUMBER < 0x10000000L) || defined(LIBRESSL_VERSION_NUMBER) - HMAC_Final(hmac, output, NULL); /* no return value on OpenSSL 0.9.x */ - return TRUE; - #else diff --git a/net/freerdp/files/patch-winpr_libwinpr_utils_ssl.c b/net/freerdp/files/patch-winpr_libwinpr_utils_ssl.c deleted file mode 100644 index 1b503ddde0d9..000000000000 --- a/net/freerdp/files/patch-winpr_libwinpr_utils_ssl.c +++ /dev/null @@ -1,47 +0,0 @@ ---- winpr/libwinpr/utils/ssl.c.orig 2017-11-28 14:26:30 UTC -+++ winpr/libwinpr/utils/ssl.c -@@ -58,7 +58,7 @@ struct CRYPTO_dynlock_value - }; - - --#if (OPENSSL_VERSION_NUMBER < 0x10000000L) -+#if (OPENSSL_VERSION_NUMBER < 0x10000000L) || defined(LIBRESSL_VERSION_NUMBER) - static unsigned long _winpr_openssl_id(void) - { - return (unsigned long)GetCurrentThreadId(); -@@ -174,7 +174,7 @@ static BOOL _winpr_openssl_initialize_lo - } - - /* Use the deprecated CRYPTO_get_id_callback() if building against OpenSSL < 1.0.0 */ --#if (OPENSSL_VERSION_NUMBER < 0x10000000L) -+#if (OPENSSL_VERSION_NUMBER < 0x10000000L) || defined(LIBRESSL_VERSION_NUMBER) - - if (CRYPTO_get_id_callback()) - { -@@ -224,7 +224,7 @@ static BOOL _winpr_openssl_cleanup_locki - CRYPTO_set_dynlock_destroy_callback(NULL); - } - --#if (OPENSSL_VERSION_NUMBER < 0x10000000L) -+#if (OPENSSL_VERSION_NUMBER < 0x10000000L) || defined(LIBRESSL_VERSION_NUMBER) - - if (CRYPTO_get_id_callback() == _winpr_openssl_id) - { -@@ -279,7 +279,7 @@ static BOOL CALLBACK _winpr_openssl_init - - if (flags & WINPR_SSL_INIT_ENABLE_FIPS) - { --#if (OPENSSL_VERSION_NUMBER < 0x10001000L) -+#if (OPENSSL_VERSION_NUMBER < 0x10001000L) || defined(LIBRESSL_VERSION_NUMBER) - WLog_ERR(TAG, "Openssl fips mode ENable not available on openssl versions less than 1.0.1!"); - #else - WLog_DBG(TAG, "Ensuring openssl fips mode is ENabled"); -@@ -348,7 +348,7 @@ BOOL winpr_CleanupSSL(DWORD flags) - - BOOL winpr_FIPSMode(void) - { --#if (OPENSSL_VERSION_NUMBER < 0x10001000L) -+#if (OPENSSL_VERSION_NUMBER < 0x10001000L) || defined(LIBRESSL_VERSION_NUMBER) - return FALSE; - #else - return (FIPS_mode() == 1); diff --git a/net/freerdp/files/patch-winpr_tools_makecert_makecert.c b/net/freerdp/files/patch-winpr_tools_makecert_makecert.c deleted file mode 100644 index d85dc49c104c..000000000000 --- a/net/freerdp/files/patch-winpr_tools_makecert_makecert.c +++ /dev/null @@ -1,11 +0,0 @@ ---- winpr/tools/makecert/makecert.c.orig 2017-11-28 14:26:30 UTC -+++ winpr/tools/makecert/makecert.c -@@ -1275,7 +1275,7 @@ void makecert_context_free(MAKECERT_CONT - #ifdef WITH_OPENSSL - X509_free(context->x509); - EVP_PKEY_free(context->pkey); --#if (OPENSSL_VERSION_NUMBER < 0x10100000L) -+#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) - CRYPTO_cleanup_all_ex_data(); - #endif - #endif |