summaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #553 from jsorg71/libpaintermetalefty2016-12-202-0/+36
|\ | | | | add libpainter for drawing when client does not have minimum orders
| * add libpainter for drawing when client does not have minimum ordersJay Sorg2016-12-152-0/+36
| |
* | xrdp_constants: move CAPSET constants to their placespeidy2016-12-131-9/+12
| |
* | libxrdp: more constantsspeidy2016-12-131-0/+3
| |
* | Merge branch 'surface_cmds' of git://github.com/speidy/xrdp into surface_cmdsspeidy2016-12-132-1/+8
|\ \
| * \ Merge branch 'devel' of https://github.com/neutrinolabs/xrdp into surface_cmdsSpeidy2016-12-122-1/+8
| |\ \
| | * \ Merge pull request #536 from jsorg71/unicodejsorg712016-12-111-0/+7
| | |\ \ | | | | | | | | | | add unicode support
| | | * | change some magics to definesJay Sorg2016-12-101-0/+6
| | | | |
| | | * | add unicode supportJay Sorg2016-12-101-0/+1
| | | |/
| | * | Don't use colon to separate IPv6 address from the portPavel Roskin2016-12-091-1/+1
| | |/ | | | | | | | | | | | | IPv6 addresses can have colons in their names, so the final colon can be confusing.
* | | libxrdp: caps, group caps require fastpath output, use ↵speidy2016-12-131-0/+3
|/ / | | | | | | FASTPATH_OUTPUT_SUPPORTED constant
* | o send RFX tiles as stream (Stream Surface Bits Command)speidy2016-12-081-8/+12
|/ | | | | | o silent frame ack logging o support surface commands in capsets o fix some wrong constants
* vnc: code cleanupJay Sorg2016-12-042-0/+30
|
* Merge pull request #512 from speidy/develmetalefty2016-12-022-18/+22
|\ | | | | xrdp_encoder: do not initialize for non-UNIX rdp clients
| * xrdp_encoder: do not initialize for non-UNIX rdp clientsspeidy2016-11-292-18/+22
| | | | | | | | xrdp_encoder: comment about temporary workaround
* | Use pkg-config to discover OpenSSLPavel Roskin2016-11-291-2/+3
| | | | | | All supported versions of OpenSSL have pkg-config files.
* | Add -ldl to libcommon link flags if it's needed for dlopen()Pavel Roskin2016-11-291-1/+2
|/
* common: If IPv6 not supported, fall back to IPv4Koichiro IWAO2016-11-221-0/+16
| | | | | | | The system to run xrdp does not necessarily support IPv6 even though it is compiled with IPv6. Fixes #432.
* Merge pull request #460 from metalefty/ipv6/logsItamar Reis Peixoto2016-11-201-29/+104
|\ | | | | common: Fix client IP address logging when IPv6 is enabled
| * common: Address family it not always AF_INET6Koichiro IWAO2016-11-041-36/+84
| | | | | | | | even if XRDP_ENABLE_IPV6 defined.
| * common: Fix client IP address logging when IPv6 is enabledKoichiro IWAO2016-11-041-25/+52
| | | | | | | | | | | | | | | | g_tcp_accept() and g_sck_accept() should use sockadd_in6 when IPv6 is enabled. The former code logs client IP address always "0.0.0.0" in such case. Fixes #412.
* | Use g_get_strerror() instead of strerror(errno) for portabilityPavel Roskin2016-11-081-2/+2
| |
* | Install headers used by X11rdp and xorgxrdpPavel Roskin2016-11-061-3/+5
|/ | | | | Installing the headers makes it possible to compile xorgxrdp as a separate package, without xrdp sources.
* Use static inline functions for OpenSSL 1.0 backportPavel Roskin2016-11-011-15/+26
| | | | | | | | Conditional preprocessor directives spread throughout the code set a bad example. The new backport code is located in one place. The compiler checks argument types. The backport code has no access to the caller variables. The main code has all advantages of the new, more compact API.
* Add backwards compatibility to OpenSSL < 1.1.0.Dominik George2016-10-271-0/+15
|
* Fix ssl_calls for OpenSSL 1.1.0, closes #458.Dominik George2016-10-271-31/+30
|
* Use const pointers in function arguments when possiblePavel Roskin2016-10-176-8/+8
|
* Remove text2bool() from log.h, there is no such functionPavel Roskin2016-10-171-10/+0
|
* Don't use final newline in log calls, it's already appendedPavel Roskin2016-10-171-4/+4
|
* Fix outgoing connections on Mac OSXPavel Roskin2016-09-081-1/+17
| | | | connect() on an already established connection returns error with errno set to EISCONN. Treat it as success.
* Add socklen_t check with substitution, use socklen_t as neededPavel Roskin2016-09-081-63/+12
|
* Improve debug information when closing a socketPavel Roskin2016-09-081-10/+76
| | | | | | | Don't assume AF_INET family. Don't assume the socket is connected. Report local address and port. Don't try to close non-sockets and invalid file descriptors. Report errors getting socket information and closing the socket. Use more appropriate log levels.
* always set SSL_OP_NO_SSLv2 in TLS optionsJay Sorg2016-08-251-4/+1
|
* new options for xrdp.ini disableSSlv3=yes and tls_ciphers=HIGH and code to ↵Alex Illsley2016-08-255-9/+31
| | | | implement
* Fix clipboard when text/filename contains non-ASCII charactersKoichiro IWAO2016-08-181-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | broken by #314. This is compatible with the fix introduced in #314. To use non-ASCII text/filename in clipboard, chansrv needs to be run with LC_CTYPE=*.UTF-8 because the behaviour of mbstowcs(3) function called in chansrv depends on LC_CTYPE[1]. However #314 made LC_CTYPE=C in chansrv context. Even if LANG and LC_* are set in .bashrc, /etc/profile, /etc/locale.conf or something like that, it doesn't affect in chansrv context because chansrv doesn't source any of them unlike sesman. So do not set LC_CTYPE to blank or "C" in g_init() in order to get g_mbstowcs and g_wcstombs to work properly with non-ASCII UTF-8 characters in any context. Setting LC_CTYPE to *.UTF-8 doesn't obstruct applying system language in RHEL [2]. [1] Linux man page says: The behavior of mbstowcs() depends on the LC_CTYPE category of the current locale. [2] https://bugzilla.redhat.com/show_bug.cgi?id=1290820
* Include stdint.h, don't redefine MAX/MIN constants if already definedJay Sorg2016-08-122-5/+17
|
* Pixman fixesJay Sorg2016-08-112-4/+2
|
* add region intersectJay Sorg2016-08-081-0/+3
|
* add more advances region support using pixmanJay Sorg2016-08-084-1/+2699
|
* Merge pull request #390 from proski/june21jsorg712016-08-059-53/+62
|\ | | | | Cleanups and C++ compatibility
| * Declare unified module interface and use it in modulesPavel Roskin2016-07-081-1/+10
| | | | | | | | | | This fixes loading modules compiled with a C++ compiler. Remote thandle type, it's unused. Use tintptr for module data. Don't cast pointers to long, they won't fit on Win64.
| * Use enum logLevels consistently for log levelsPavel Roskin2016-07-081-2/+2
| |
| * Use char* for TLS send and receivePavel Roskin2016-07-082-6/+6
| | | | | | | | This is consistent with ssl_tls_read() and ssl_tls_write(). C++ warnings are fixed without adding any casts.
| * Use correct types for ssl and ctx fields in struct ssl_tlsPavel Roskin2016-07-081-2/+2
| |
| * Fix signed to unsigned comparisons reported by g++ 6.1.0Pavel Roskin2016-07-081-1/+1
| |
| * Use g_new or g_new0 when C++ compiler would complain about implicit castPavel Roskin2016-07-082-2/+2
| |
| * Introduce glib style macros for allocating memory with typePavel Roskin2016-07-081-0/+7
| |
| * Fix warnings detected by -Wwrite-stringsPavel Roskin2016-07-084-11/+11
| |
| * Make program_name constant, don't duplicate or free itPavel Roskin2016-07-082-9/+3
| |
| * Fix format warnings in log_message() callsPavel Roskin2016-06-211-6/+4
| |