Commit Graph

66 Commits

Author SHA1 Message Date
Pavel Roskin 5829323ad8 Use g_new or g_new0 when C++ compiler would complain about implicit cast 2016-07-08 04:29:49 +00:00
Pavel Roskin aeeb3d2c2e Fix warnings detected by -Wwrite-strings 2016-07-08 04:29:42 +00:00
Pavel Roskin 1ded8ec437 Remove unused string support in scp_session_set_addr()
Using the same argument for binary and text data is not a good idea. If
string support is ever needed, it should be a separate function.

Remove SCP_ADDRESS_TYPE_IPV4_BIN and SCP_ADDRESS_TYPE_IPV6_BIN, use
SCP_ADDRESS_TYPE_IPV4 and SCP_ADDRESS_TYPE_IPV6, which simplifies the
code.
2016-07-08 04:15:41 +00:00
Pavel Roskin f908528a00 Downgrade "libscp initialized" to LOG_LEVEL_DEBUG, remove line number
It's a bad style to start the log with a cryptic warning.
2016-07-08 04:15:39 +00:00
Pavel Roskin ca9cbcafc8 Typo fixes 2016-05-04 23:33:30 -07:00
Pavel Roskin f93074a430 Add unnamed semaphore support on Mac OS
sem_init() is not functional on Mac OS. Use the Grand Central Dispatch
implementation.

Make libscp_lock.c use semaphores through the thread_calls wrapper.
2016-04-23 00:26:46 -07:00
Jay Sorg a6cba63a89 fix a warning 2016-03-16 14:40:24 -07:00
Pavel Roskin 59a5fb0ddb Move headers from EXTRA_DIST to sources, sort alphabetically
There should be no functional difference.
2016-02-21 23:06:48 -08:00
Pavel Roskin 92a6833e9b Fix typos 2016-02-13 20:41:07 -08:00
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.
2016-02-12 23:52:46 -08:00
Jay Sorg ac901fd283 sesman: add missing break 2016-02-11 17:52:44 -08:00
Itamar Reis Peixoto 09a69fbec2 remove duplicated call to scp_session_set_bpp 2016-02-11 11:54:43 -02:00
Pavel Roskin a61349c1d3 Allow sessions with 32 bpp 2016-02-10 09:30:23 -08:00
Pavel Roskin 5d23d007e9 Check return value of scp_session_set_bpp() 2016-02-10 09:30:23 -08:00
Pavel Roskin 5de1d31a75 Change an unconditional #warning to a comment
Notes about software design should not be shown as warnings to everybody
who compiles the code. Warnings should be about unexpected conditions
detected at the compile time.
2016-01-31 23:42:16 -08:00
Pavel Roskin 02c981e796 More spelling fixes found by codespell and aspell 2016-01-30 17:39:25 -08:00
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.
2016-01-29 22:45:00 -08:00
Laxmikant Rashinkar e4654b57ca coverity: Resource leak (2nd round) 2014-07-27 15:29:12 -07:00
Laxmikant Rashinkar 0915d33d70 coverity: dead code 2014-07-26 15:06:35 -07:00
Laxmikant Rashinkar 3bb31876e7 coverity: fixed resolution leak issues 2014-07-19 11:56:00 -07:00
Jay Sorg 49fcc23673 sesman: added SessionVariables to sesman.ini and some indent cleanup 2014-05-09 16:02:19 -07:00
Laxmikant Rashinkar 883650700f added support for using Xorg driver model 2014-03-08 16:41:37 -08:00
Jay Sorg b4ce83a685 ipv6 fix for sesman 2013-04-03 20:49:01 -07:00
Laxmikant Rashinkar 1123323fda o moved from GNU General Public License to Apache License, Version 2.0
o applied new coding standards to all .c files
o moved some files around
2012-09-19 20:51:34 -07:00
Jay Sorg 58f5dcc030 autotools: change top_srcdir to top_builddir for LIBADD 2012-07-13 16:18:02 -07:00
Jay Sorg 0944509cf0 sesman: missing else and remove some EOL whitespace 2012-06-23 15:35:27 -07:00
norrarvid 318e09fd47 fix merge conflics 2012-06-18 10:23:09 +02:00
Jay Sorg 856783ba95 no logic changes, remove warnings and coding style changes 2012-06-10 23:47:08 -07:00
norrarvid 42edcbb6c1 Improved logging 2012-06-07 13:46:44 +02:00
norrarvid eef475e025 timeout added for the reply to come from sesman 2012-06-05 08:08:04 +02:00
norrarvid 10fdc5c17f separate pam authentication for gateways 2012-05-31 16:57:17 +02:00
norrarvid 4d4ebbf363 Initial syslog support in XRDP 2012-05-27 17:17:39 +02:00
Jay Sorg 0392b0167a autotool fixes 2011-07-05 21:50:09 -07:00
Itamar Reis Peixoto 6b08b8b71e include missing files in make dist 2010-11-20 22:13:50 -02:00
Nicola Ruggero d797b2cf49 Implemented client IP logging 2010-11-04 12:14:03 +01:00
Nicola Ruggero 4cf06dbbcb Major code cleanup:
- Initialized and zeroed out local variables
- Check for some null pointers
- Fixed some typos
- Other minor changes (beautify, etc.)
2010-11-03 16:59:26 +01:00
jsorg71 d83ebaa97a use do ... while (0) style for parse.h 2010-08-09 23:02:06 +00:00
jsorg71 8490a2b24b update copyright year 2010-07-04 07:36:06 +00:00
jsorg71 7136d457e9 remove some dead code 2009-12-26 22:18:53 +00:00
jsorg71 acd9f3d82d fix a crash when freeing struct SCP_SESSION 2009-08-24 18:09:19 +00:00
jsorg71 df8527b251 pass domain, program, and directory to sesman and use directory and program 2009-08-19 07:27:35 +00:00
jsorg71 23ffdb0c5f autotools fix and file_loc.h simplified 2009-05-19 04:23:49 +00:00
jsorg71 3417482d10 update copyright year 2009-04-17 06:52:02 +00:00
jsorg71 67911e9fb9 added 15bpp support 2009-02-23 08:45:41 +00:00
jsorg71 af83cb7cae remove old makefiles 2008-12-16 02:47:45 +00:00
ilsimo 1cae42594b forgotten files 2008-09-11 20:57:55 +00:00
ilsimo 7c79298612 added first management code
added a rough management tool
fixes in session.c
2008-09-11 20:23:15 +00:00
jsorg71 f77934a58e remove lib version 2008-08-15 02:49:41 +00:00
jsorg71 8c68a7d7f5 common and version changes 2008-08-12 07:12:06 +00:00
jsorg71 edf6d54b55 added define check for ipv6 structs 2008-08-12 07:11:05 +00:00