Commit Graph

557 Commits (b89956d06e41321a4977dc1bea2d48e9d7619385)

Author SHA1 Message Date
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
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