Commit Graph

696 Commits (c5bab5b98a826ef472cd9b814d2dfee2dc76ed20)

Author SHA1 Message Date
jsorg71 5194311d9d Merge pull request #611 from volth/support-enable-xrdpdebug=yes-2
fix build with --enable-xrdpdebug=yes
8 years ago
Pavel Roskin 7ba3610787 Use <> for system includes, move system includes above local ones 8 years ago
volth 26a26ef906 fix build with --enable-xrdpdebug=yes 8 years ago
speidy 70e9132ab1 xrdp: add some logging, remove unused var 8 years ago
speidy 1f930f252f xrdp: fix for codec frame acks handling.
can handle zero unacked frames now.

This should make RemoteFX usable with Parallels Client. they always
wan't zero unacked frames on the wire.
8 years ago
Pavel Roskin 0e7bc6e111 Compile libpainter only if enabled, fix path to libpainter.a
When subpackages are compiled outside the build tree, the build artifacts
are placed under top_builddir.
8 years ago
metalefty 25e5243ecf Merge pull request #553 from jsorg71/libpainter
add libpainter for drawing when client does not have minimum orders
8 years ago
Pavel Roskin 77d6fd0807 Fix Parallels Client on Mac
self->line_size should be calculated in xrdp_bitmap_create_with_data()

The code was in the original noorders branch but got lost. Without this
fix, the image is garbled.

The client should be configured with compression disabled, or it will
disconnect. That's a known problem.
8 years ago
Pavel Roskin c21b9a78f4 Distribute all files except git and github specific data
It is better to distribute a few useless file than not to distribute
needed files.
8 years ago
Idan Freiberg 0f6d1aabc2 Merge pull request #548 from proski/autorun
Set autorun to empty, improve autorun documentation
8 years ago
Pavel Roskin 0c6b5111af Regression fix: session matching uses wrong bpp for Xorg
The removal of "xserverbpp=24" from the Xorg entry lead to a regression.
Clients with a different bpp would not reconnect to an xorgxrdp session
if the client's bpp is different, even though xorgxrdp is always using 24
bpp.

Imply "xserverbpp=24" for "code=20" in xrdp.ini.
8 years ago
Pavel Roskin 65be965ebd Set autorun to empty, improve autorun documentation
Setting autorun to empty keeps X11rdp as the default backend for
autologin (since it's the first section), but it also enables the backend
selection by the domain name.

Describe the autorun interaction with the domain name both in the config
file and in the manual.
8 years ago
Pavel Roskin e65aa594e8 Make librfxcodec a subpackage
Since libpainter is going to become a subpackage, we can make librfxcodec
a subpackage as well.

With this change, librfxcodec is configured, built and linked to xrdp
automatically if enabled by "--enable-rfxcodec"

librfxcodec is packaged by "make dist" regardless of "--enable-rfxcodec"

librfxcodec/confgure is run unconditionally, it's needed for "make dist"
to work. But librfxcodec is only compiled if enabled.
8 years ago
jsorg71 d4e96f0c4c Merge pull request #531 from speidy/surface_cmds
xrdp_encoder: make RemoteFX work with MSTSC client
8 years ago
Jay Sorg 1f51586769 add libpainter for drawing when client does not have minimum orders 8 years ago
Westporch 2ea8eddc25 Sort alphabetically 8 years ago
Westporch 52081cb8bc Add 'rdp_layout_kr=kr' 8 years ago
Speidy a0cf6030df Merge branch 'devel' of https://github.com/neutrinolabs/xrdp into surface_cmds 8 years ago
jsorg71 5966de4ee2 Merge pull request #536 from jsorg71/unicode
add unicode support
8 years ago
Jay Sorg c264862afe change some magics to defines 8 years ago
Jay Sorg 2f8d3ba9da add unicode support 8 years ago
speidy 4f04801b11 o caps: advertise remotefx codec capsets only when supported (RFX mode,
proxy mode)
o xrdp_encoder: do not initialze encoder context for RFX when rfxcodec
is not supported
8 years ago
speidy bb8b85759d xrdp_encoder: remove temporary workaround for RFX to avoid mstsc 8 years ago
speidy 8a0fec5e66 o send RFX tiles as stream (Stream Surface Bits Command)
o silent frame ack logging
o support surface commands in capsets
o fix some wrong constants
8 years ago
Pavel Roskin 9cfe477f60 Document xserverbpp, add it to Xvnc section, remove from Xorg section
xserverbpp affects X11rdp and Xvnc, but not Xorg. No need to have
xserverbpp in the Xorg section where it has no effect. Add commented out
xserverbpp to Xvnc, some users may want to experiment with that setting.
8 years ago
jsorg71 bbae1a98c6 Merge pull request #523 from jsorg71/vpf
vnc: change password file to use guid hash
8 years ago
Pavel Roskin c759a1a645 Make configure show it's looking for "pixman", not "xrdp_pixman"
The pixman library in not part of xrdp. If users see that "xrdp_pixman"
is not found, they might assume it is some xrdp specific library.

The Automake conditional is still XRDP_PIXMAN, but the pkg-config
variables become PIXMAN_LIBS and PIXMAN_CFLAGS.
8 years ago
Jay Sorg 9a517b34f0 vnc: code cleanup 8 years ago
Jay Sorg 57905d71ad vnc: change password file to use guid hash 8 years ago
Itamar Reis Peixoto fb892c7d80 Merge pull request #516 from metalefty/keymaps
Adjust Japanese keymaps
8 years ago
Koichiro IWAO 9c31bd5cc4 unify Japanese keymap in xrdp_keyboard.ini 8 years ago
speidy 1fe048b63d xrdp_encoder: do not initialize for non-UNIX rdp clients
xrdp_encoder: comment about temporary workaround
8 years ago
Jay Sorg e8308d58b3 xrdp: do case insensitive compare for section names 8 years ago
Itamar Reis Peixoto f7b0b0d89c Merge pull request #488 from metalefty/docs
Update man pages and config files
8 years ago
metalefty b89956d06e Merge pull request #485 from proski/code-standards
Code standards
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 16c3bbdb8d Remove all tabs in sources 8 years ago
Koichiro IWAO 0a7f1bb007 docs: revise description for disableSSLv3 in xrdp.ini 8 years ago
Koichiro IWAO d74366a6f2 config: change order of parameters
Put same layer configuration parameters together, bring low layer
parameters earlier.
8 years ago
Koichiro IWAO cb1960e0fc config: use semicolon to comment out descriptions in config files
and use number sign to comment out actual configurations.
For example:

    ; if set to true, enables foobar
    #foobar=true
8 years ago
Koichiro IWAO 181830bf61 config: Capitalize section title to fit documents 8 years ago
Koichiro IWAO 4f2d94505a config: unify all boolean values in config to true/false 8 years ago
Jay Sorg 4f33a9db1d change xrdp.ini security_layer=negotiate and auto generate tls keys on make install 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 f94920171e Merge pull request #437 from metalefty/switch-to-8-hex-digit-keymap-file
Switch to 8 hex digit keymapfile
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
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
Pavel Roskin a370306f75 Get rid of EXTRA_LIBS, use variables with more specific names 8 years ago
Pavel Roskin 5c69f3cd57 Eliminate EXTRA_FLAGS, it's a poor name, use AM_LDFLAGS 8 years ago
Pavel Roskin 0422734fc7 Merge EXTRA_DEFINES and EXTRA_INCLUDES into AM_CPPFLAGS
AM_CPPFLAGS is a documented Automake variable for C preprocessor flags
that should not be overridden when compiling the package.

There is no need to have two additional variables that are ultimately
merged into AM_CPPFLAGS.

Their names are also confusing. EXTDA_DIST is a documented Automake
variable. Everything else that starts with "EXTRA" is not.
8 years ago
Pavel Roskin 09746fcebc Leave only one "autorun" in xrdp.ini, improve comment 8 years ago
Pavel Roskin a618d4f757 Don't use final newline in log calls, it's already appended 8 years ago
Koichiro IWAO ee3a38f93d xrdp: librfxcodc link fix
as same fix as done in 4a815d5 for libpainter
8 years ago
Jay Sorg b24f8d8fef remove a debug message 8 years ago
Jay Sorg 409878666f xrdp: handle 3 byte PDU 8 years ago
Pavel Roskin 49ae93130a Improve message about listening socket is a wrong state 9 years ago
Alex Illsley 47124df4ed new options for xrdp.ini disableSSlv3=yes and tls_ciphers=HIGH and code to implement 9 years ago
Jay Sorg bb7bac2d9b add region intersect 9 years ago
Jay Sorg 58c777783b add more advances region support using pixman 9 years ago
jsorg71 8353baab3d Merge pull request #390 from proski/june21
Cleanups and C++ compatibility
9 years ago
Pavel Roskin 7cd9a5c4af Cast fifo_remove_item() to XRDP_ENC_DATA* or XRDP_ENC_DATA_DONE* as needed 9 years ago
Pavel Roskin 5829323ad8 Use g_new or g_new0 when C++ compiler would complain about implicit cast 9 years ago
Pavel Roskin aaa89ad4e6 Use const unsigned for hex arrays
Some constants are too big for the signed type.
9 years ago
Pavel Roskin aeeb3d2c2e Fix warnings detected by -Wwrite-strings 9 years ago
Pavel Roskin 6f5feb61e0 Shorten and clarify log window messages
Specify display in the "login failed" message. Print the section name
that wasn't found. Remove stdout message about missing section,
xrdp_wm_log_msg() already writes to stdout.
9 years ago
Pavel Roskin a1b7de5679 Make xrdp_wm_log_msg() log its output
Accept variable arguments and the log level in xrdp_wm_log_msg(). Remove
logging that is done automatically now.
9 years ago
Pavel Roskin 27ba5b4e86 Rewrite add_string_to_logwindow()
Make static, fix formatting, shorten some variable names, use += to add
to variable, accept immutable strings.
9 years ago
Akira Taniguchi b6ba95e179 Update xrdp_keyboard.ini 9 years ago
Pavel Roskin 77b380c0b5 Fix format warnings in log_message() calls 9 years ago
Pavel Roskin be1d034f91 Report pid and listening address/port for xrdp and xrdp-sesman
For xrdp-sesman, don't report that the daemon is listening to a port if
it fails to attach to that port. Don't use LOG_LEVEL_ALWAYS for startup
message, it's not a critical error.
9 years ago
Pavel Roskin ae5bb5bf9c Fix incorrect use of "it's" and "its", adjust wording 9 years ago
speidy b38dcf1bb0 xrdp_wm: fix for multimon, draw login window and log window on primary
monitor
9 years ago
Jay Sorg dd906c3fc8 remove tabs 9 years ago
Jay Sorg d27270ab1f remove tabs 9 years ago
speidy 62799b8b10 xrdp_wm: in multimon scenario, draw log window and login window on
primary monitor
9 years ago
Pavel Roskin b95dc9e12f Remove extraneous color initialization 9 years ago
Pavel Roskin ca9cbcafc8 Typo fixes 9 years ago
Pavel Roskin bd0b1acf79 Fix format warnings caused by g_writeln("") 9 years ago
Jay Sorg dbf6bcc8be remove some warnings 9 years ago
Jay Sorg 6a692c96cf remove some warnings 9 years ago
NerdKnight 99ebe1340f Fix compile error "format not a string literal and no format arguments [-Werror=format-security]" 9 years ago
jsorg71 034ee36f9c Merge pull request #341 from proski/sanity-checks
Sanity checks
9 years ago
Jay Sorg 38241f2a0b Fix all format warnings and some unused variable warnings 9 years ago
Jay Sorg 7393579205 Don't attempt to intercept SIGKILL, it doesn't work on any OS 9 years ago
Pavel Roskin e0a9c769e0 Be more specific in error messages about PID file location 9 years ago
Pavel Roskin 3eb495f425 Check if rsakeys.ini exists on startup, exit if it's missing 9 years ago
Pavel Roskin 86ec50789c Move all sanity checks to a separate function xrdp_sanity_check() 9 years ago
Pavel Roskin 7642675ddf Use "dist_" prefix to minimize use of EXTRA_DIST
"dist" is ignored in presense of "noinst", so keep noinst_man_MANS.
9 years ago
Pavel Roskin 59a5fb0ddb Move headers from EXTRA_DIST to sources, sort alphabetically
There should be no functional difference.
9 years ago
Pavel Roskin 92a6833e9b Fix typos 9 years ago
Pavel Roskin 81779ddb01 Use lowercase program names for syslog
Other programs typically use the same case as their execulables.
9 years ago
Pavel Roskin dcab7552db Stop redefining libdir, use moduledir for ${libdir}/xrdp
libdir is for shared and static libraries. Some xrdp libraries are loaded
dynamically from a non-standard directory, so they are used like modules.

Having separate libdir and moduledir would eventually allow to separate
dynamically loaded modules from shared libraries.
9 years ago
Pavel Roskin 22e808a186 Add missing spaces in the strings that are split for line wrapping 9 years ago
Pavel Roskin 9717e7392a Spell "return value", not "returnvalue" 9 years ago
Pavel Roskin eacfb00050 Declare xrdp_mm_frame_ack() in xrdp.h, it's used in xrdp_wm.c 9 years ago
Pavel Roskin 02c981e796 More spelling fixes found by codespell and aspell 9 years ago
Pavel Roskin f8cb1588ef Replace "charactor" with "character" everywhere 9 years ago
Pavel Roskin a452d8d36a Merge AM_CFLAGS and INCLUDES info AM_CPPFLAGS
AM_CPPFLAGS is for flags passed to the preprocessor, such as defines and
includes. AM_CFLAGS is for flags affecting the compiler, such as debug
and optimization settings.

INCLUDES is an obsolete name. Users can pass INCLUDES and break
compilation. AM_CPPFLAGS is more explicit that the flags come from
Automake and should not be overridden.
9 years ago
Pavel Roskin ee1a237685 Remove GOT_PREFIX, it's a broken hack of limited utility
To add flags to the compiler, CFLAGS, CPPFLAGS or LDFLAGS can be used on
the configure command line.

The need to add flags depends on the location of the headers and
libraries of the dependencies, which is orthogonal to the directory where
xrdp will be installed.

The implementation in configure.ac has a stray closing bracket, making
GOT_PREFIX true even if --prefix is not passed.

The implementation is inconsistent - the only affected makefiles are for
xrdp and libxrdp.

Changing rpath manually is wrong in most cases. Libtool should be able to
set rpath correctly on its own.

Using $(prefix)/lib ignores the libdir setting. For many 64-bit systems,
/usr/lib is used for 32-bit libraries. Adding 32-bit libraries to the
rpath slows down 64-bit executables, as the dynamic loader searches for
libraries in a wrong directory.

There is no way to disable GOT_PREFIX if --prefix has to be passed.
Fedora RPM patches configure.ac and needs to rerun autoconf and automake
after that.
9 years ago
jsorg71 c6f27eb96c Merge pull request #304 from proski/devel
Minor fixes
9 years ago
Koichiro IWAO 16a284d1dc Drop exec permission of non executable files 9 years ago
Pavel Roskin 964e860072 Run through codespell 9 years ago
Jay Sorg f49e2058df xrdp: change when using xrdp.ini hidelogwindow 9 years ago
Jay Sorg 418637f72d xrdp: fix --kill 9 years ago
Jay Sorg fd793bd213 rename g_tcp_can_recv to g_sck_can_recv 10 years ago
Jay Sorg 6974dc5c6d remove some more generated files 10 years ago
itamarjp 960cc62a0e add missing files into extra_dist,
this is required when using make dist to generate a tarball
10 years ago
Jay Sorg 6c23b85593 add timeout to trans_get_wait_objs_rw 10 years ago
Jay Sorg 5d73cbd636 set the source for chansrv 10 years ago
Jay Sorg 4a553e07af update the module API 10 years ago
Jay Sorg b56aa9832e work on main loop changes 10 years ago
Thomas Spalinger 04b729ccd1 finish for supporting swiss german keyboard 10 years ago
jsorg71 b55231f18a Merge pull request #226 from metalefty/freebsd/openpam
xrdp: xrdp_mm.c detect and use OpenPAM
10 years ago
Jay Sorg 33167a7c74 add frame acks and h264 codec mode basics 10 years ago
Koichiro IWAO 283a16115a xrdp: xrdp_mm.c detect and use OpenPAM
OpenPAM is used in FreeBSD, NetBSD, DragonFly BSD and Mac OS X.
On the Linux system, Linux-PAM is used.  Detect PAM during configure
and use which the system has.
10 years ago
Koichiro IWAO ba2237a3c4 xrdp: fix -h -v option if xrdp.ini is invalid
- log_start should be called after help and version
- Fixes neutrinolabs/xrdp#33.
10 years ago
Akira Taniguchi 2fc1f3b811 xrdp_keyboard.ini: Fix jp keyboard model 10 years ago
Koichiro IWAO 2212991bd7 Add Japanese keymap codes in xrdp_keyboard.ini 10 years ago
Mike Rostermund b3cc8f75d9 Fix spelling error and typo 10 years ago
jsorg71 c39d2b0912 Merge pull request #178 from mgorny/altgr-keymap
altgr+shift/capslock support in keymaps
10 years ago
Anthony Agresta 6ddc43c4fc vnc: Added delay_ms option. Fixes neutrinolabs/xrdp#182 10 years ago
jsorg71 dd00c8691c Merge pull request #173 from moobyfr/default-autorun-ini
Set a value for the default autorun session
10 years ago
Michał Górny cc3231272d Install and enable 0415/pl keymap 10 years ago
Michał Górny 20a962b640 keymap: support combining shift & capslock with altgr
Add support for combining shift & caps lock keys with altgr so that
capital national characters can be written. There was some support for
shift+altgr in xrdp-keygen but it was never actually used.
10 years ago
BLINDAUER Emmanuel 4dcc186299 Set a value for the default autorun session 11 years ago
Jay Sorg 2badb31bf2 big endian fix 11 years ago
Jay Sorg f73f314c2c no logic change, indent 11 years ago
jsorg71 0d63263772 Merge pull request #137 from ArvidNorr/choose_shortcutdev
support for preferred combo box choice added
11 years ago
Jay Sorg 4afe769467 xrdp: encoder shutdown fix 11 years ago
Jay Sorg a6d71388c8 xrdp: add tcutils to xrdp.ini 11 years ago
Jay Sorg 8397055e8b move some hard code paths to defines in header 11 years ago
Jay Sorg ffed349875 added option to set rdp crypto level to none 11 years ago
Jay Sorg 779f0bf470 add xrdp_keyboard.ini to Makefile.am 11 years ago
Jay Sorg d99181aa78 xrdp: added xrdp_keyboard.ini 11 years ago
Jay Sorg 29b2e42279 xrdp: if PACKAGE_VERSION not defined, define as ??? 11 years ago
Jay Sorg b7d15c55ed xrdp: don't include config.h unless HAVE_CONFIG_H is defined 11 years ago
Laxmikant Rashinkar e4654b57ca coverity: Resource leak (2nd round) 11 years ago
Laxmikant Rashinkar a9d7c13147 coverity: read from pointer after free 11 years ago
Laxmikant Rashinkar 67119ecc81 coverity: array compared against 0 11 years ago
Laxmikant Rashinkar 56e43c4a38 Merge branch 'devel' of github.com:NeutrinoLabs/xrdp into devel 11 years ago
Laxmikant Rashinkar 27055d5762 coverity: improper use of negative value 11 years ago
Idan Freiberg 16929efb05 Merge branch 'devel' of https://github.com/neutrinolabs/xrdp into
devel

Conflicts:
	libxrdp/xrdp_sec.c
11 years ago
Idan Freiberg afdf638c7b libxrdp, common: work on TLS mode 11 years ago
Laxmikant Rashinkar 0c63a8feb3 coverity: Dereference after null check 11 years ago
Laxmikant Rashinkar a990287c46 coverity: fixed unchecked return value from library 11 years ago
Jay Sorg 1291d2dbbe work on codec mode 11 years ago
Laxmikant Rashinkar 3bb31876e7 coverity: fixed resolution leak issues 11 years ago
Jay Sorg c64b154475 small fix for rdp scancode file 11 years ago
speidy aa0f039cef xrdp: fix for prefilled username issue 11 years ago
Jay Sorg 7d5f7d1133 added --enable-rfxcodec 11 years ago