Commit Graph

2663 Commits (b89956d06e41321a4977dc1bea2d48e9d7619385)
 

Author SHA1 Message Date
metalefty b89956d06e Merge pull request #485 from proski/code-standards
Code standards
8 years ago
metalefty d335c93a75 Merge pull request #480 from proski/strncat
Fix potential buffer overflow in strncat() invocation
8 years ago
metalefty 0712cf2747 Merge pull request #483 from proski/autorun
Fix regression in domain to session type mapping
8 years ago
Pavel Roskin 5d2ce60340 Fix regression in domain to session type mapping
If no domain is passed, self->session->client_info->domain is an empty
string that is incorrectly treated as if the domain were passed by the
client.

The regression was introduced in fc753a95, when an incorrect check for
non-empty domain was added. That check was removed in 67119ecc based on
coverity report, leaving no trace of the original intention.

Check domain both for '_' and '\0' as the initial character. In either
case, select the first session type section in xrdp.ini.
8 years ago
Pavel Roskin 35b336272b Fix compilation with C++ 8 years ago
Pavel Roskin 16c3bbdb8d Remove all tabs in sources 8 years ago
Pavel Roskin 92423a466e Fix potential buffer overflow in strncat() invocation
strncat() will copy at most the specified number of characters and append
the null character on top of that. strlen() doesn't count the final null
character.
8 years ago
metalefty fb3545eb65 Merge pull request #490 from proski/param
Omit numbers from the "param" keys, they are not needed
8 years ago
Pavel Roskin 0d72cced46 Omit numbers from the "param" keys, they are not needed
Users assume that they need to renumber the parameters. That makes
parameter editing more involved than it needs to be.
8 years ago
Idan Freiberg e8185caf31 Merge pull request #489 from metalefty/travis-ci
CI: add .travis.yml
8 years ago
Koichiro IWAO 7cb37d8941 CI: add .travis.yml
tests xrdp, librfxcodec, xorgxrdp, x11rdp in master, devel and other topic branches.
8 years ago
Itamar Reis Peixoto ad62e52f28 Merge pull request #487 from proski/x11rdp
X11rdp build system fixes
8 years ago
Pavel Roskin 5bb54122ba Strip the installed X11rdp binary, not the original 8 years ago
Pavel Roskin cd6e8faccc Reorder static libraries to avoid the need to link them twice 8 years ago
Pavel Roskin d93bb4cf4b Check that X11RDPBASE is set, give it a better description
Use BINBASE for the binary install path.
8 years ago
Jay Sorg 4f33a9db1d change xrdp.ini security_layer=negotiate and auto generate tls keys on make install 8 years ago
Jay Sorg da9439f24d libxrdp: warn when using 512 bit key 8 years ago
Jay Sorg e39f567c35 on make install, don't create rsakeys.ini if it already exists 8 years ago
jsorg71 46e1173bd9 Merge pull request #479 from proski/strerror
Use g_get_strerror() instead of strerror(errno) for portability
8 years ago
Pavel Roskin 2dcc69b752 Use g_get_strerror() instead of strerror(errno) for portability 8 years ago
metalefty d7fd153951 Merge pull request #418 from metalefty/keymap-fallback-lower-16bit
Use km-0000yyyy.ini if km-xxxxyyyy.ini doen't exist
8 years ago
metalefty 8da1829981 Merge pull request #478 from proski/install-headers
Install headers used by X11rdp and xorgxrdp
8 years ago
Pavel Roskin 1fe368c5b3 Install headers used by X11rdp and xorgxrdp
Installing the headers makes it possible to compile xorgxrdp as a
separate package, without xrdp sources.
8 years ago
metalefty 94901c9989 Merge pull request #454 from metalefty/change-chansrv-log-path
chansrv: change chansrv log path to ${XDG_DATA_HOME}/xrdp
8 years ago
Koichiro IWAO 5725200e82 Use km-0000yyyy.ini if km-xxxxyyyy.ini doen't exist
upper 16 bits of keylayout value indicates keyboard layout.
lower 16 bits of keylayout value indicates country/language.

If the keymap file doesn't match exactly to keylayout value,
the typical keyboard of the country/language should be used.

For example [1]:
  0x00000409: US English
  0x00010409: US Dvorak
  0x00020409: US International
  0x00030409: US Dvorak for left hand
  0x00040409: US Dvorak for right hang
  0x0000040e: Hungarian
  0x0001040e: Hungarian 101-key

[1] https://msdn.microsoft.com/windows/hardware/commercialize/manufacture/desktop/windows-language-pack-default-values
8 years ago
Itamar Reis Peixoto 7c516d7d07 Merge pull request #473 from metalefty/add-finnish-keyboard
add Finnish keyboard
8 years ago
Koichiro IWAO cab8955ea4 add Finnish keyboard
Closes #70
8 years ago
Itamar Reis Peixoto f94920171e Merge pull request #437 from metalefty/switch-to-8-hex-digit-keymap-file
Switch to 8 hex digit keymapfile
8 years ago
metalefty c6df12b558 Merge pull request #470 from proski/xorg-ini
Simplify names of xrdp.ini sections, rename "Session Manager" to "Xorg"
8 years ago
Pavel Roskin 61811466e2 Simplify names of xrdp.ini sections, rename "Session Manager" to "Xorg"
Make section names equal to the names in the "name=" setting to avoid
confusion and the need to renumber sections. Avoid "sesman-" in the
names, it's not helpful to the user. Move "Xorg" just below "X11rdp",
that would give xorgxrdp more visibility.
8 years ago
Itamar Reis Peixoto 0d1cf12677 Merge pull request #472 from proski/ssl
Use static inline functions for OpenSSL 1.0 backport
8 years ago
Pavel Roskin 4324084d58 Use static inline functions for OpenSSL 1.0 backport
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.
8 years ago
metalefty cde340350c Merge pull request #459 from Natureshadow/openssl110
Fix ssl_calls for OpenSSL 1.1.0
8 years ago
metalefty 0a8afd17ea Merge pull request #463 from Natureshadow/config-patches
Move -logfile /dev/null option for easier commenting in debug scenarios.
8 years ago
Dominik George c90bc13d39
Move -logfile /dev/null option for easier commenting in debug scenarios. 8 years ago
Jay Sorg 8fad88a457 librfxcodec=2a90952 8 years ago
Dominik George e5cf45d1ac
Add backwards compatibility to OpenSSL < 1.1.0. 8 years ago
Dominik George 1b5fb8f1c8
Fix ssl_calls for OpenSSL 1.1.0, closes #458. 8 years ago
metalefty c524b062dd Merge pull request #451 from metalefty/buildx-keepalive-download
buildx.sh: download tarballs using keepalive
8 years ago
Koichiro IWAO 2016065a40 docs: update chansrv log path 8 years ago
Koichiro IWAO 7d017482f6 chansrv: change chansrv log path to ${XDG_DATA_HOME}/xrdp
like Xorg's logfile is written to ${XDG_DATA_HOME}/xorg/Xorg.n.log.

If XDG_DATA_HOME is not defined, the log path will be
${HOME}/.local/share/xrdp.
8 years ago
metalefty 34378ea386 Merge pull request #450 from proski/memleak
Fixing memory leaks
8 years ago
Koichiro IWAO f62b55c547 switch newly added keymaps to 8 hex digit 8 years ago
Koichiro IWAO 042c33a11c Switch the remaining 4 hex digit keymapfile to 8 hex 8 years ago
Koichiro IWAO c654c86206 Switch to 8 hex digit keymapfile
as the value keyboardLayout is actually 32-bit unsigned integer.
See [MS-RDPBCGR] - v20160714 p.45.
8 years ago
metalefty b79ad54bd3 Merge pull request #453 from itamarjp/devel
Add es_ES layout support #88
8 years ago
Pavel Roskin b28a986071 Fix memory leak in xrdp-sesman on config reload 8 years ago
Pavel Roskin dc60a80b86 Memory leak fix: keep X server path in the parameter list
g_cfg->xorg_params, g_cfg->vnc_params and g_cfg->rdp_params don't have
auto_free enabled, so removing an item from one of those lists won't free
its contents.

It's better not to change those lists, as they represent the actual
config file and could be reused. Instead, omit the 0th parameter (the
executable path) from copying to xserver_params.

Found by Valgrind.
8 years ago
Pavel Roskin e17a56efb6 Call auth_end() exactly once in scp_v0_process()
As discovered by Valgrind, it wasn't called at all in case of a
successful session creation, which leaked memory.
8 years ago
Pavel Roskin 65ac8e758b Fix memory leak: free session data
Call scp_session_destroy() in the functions that call
scp_session_create() and nowhere else.

As found by Valgrind, the session data is not freed if the session is
created successfully.
8 years ago