Commit Graph

56 Commits

Author SHA1 Message Date
René Genz
9e99dd52d6 Fix minor spelling mistakes 2017-11-02 01:01:44 +01:00
Karl Mikaelsson
1f13c85583 Remove infrastructure to auto-generate proto.h
If proto.h is supposed to be auto-generated it should probably not be
present in the repo at all. Re-running cproto showed that proto.h has
been manually edited for quite some time, so this just makes this the
only workflow.

It also gets rid of a bit of #ifdefs, so that's nice.
2017-10-05 15:18:13 +02:00
Samuel Mannehed
b0813fa275 Add handling for a few special RDP error codes
Most of the RPD protocol errors (reason > 0x1000) would only be
triggered by coding errors in the client. A few of them can occur due
to server errors however. We should attempt to handle these cases.
2017-10-04 16:27:34 +02:00
Samuel Mannehed
e8562507e7 Add handling for connection broker error codes 2017-10-04 15:51:36 +02:00
Samuel Mannehed
2e744bf54f Indent rdesktop exit codes 2017-10-04 13:21:57 +02:00
Samuel Mannehed
3aca74880a Fix specific admin/user disconnect/logout codes
There seems to have been confusion with regards to which exit code and
message was returned by rdesktop for the following cases:

* disconnected by admin
* logged out by admin
* disconnect by user
* logoff by user

Looking at Microsoft's official documentation as well as testing using
Windows Server 2008 R2, 2012 R2 and 2016 reveals that this commit fixes
this issue. They do now match the reasons sent by the server.
2017-10-04 12:32:42 +02:00
Henrik Andersson
b8fe3e9315 Rename parse to stream 2017-09-29 11:13:02 +02:00
Henrik Andersson
87d8d123b8 Rework the logging system
This commit will add a logging system to solve the problem that
one actually need to recompile rdesktop from source to enable
different debug logging.

- Same logging api  for all kind of logging and messages to
   end user.

- Adding -v for verbose output when running rdesktop.

- All messages are logged into a subject and with a type, eg:

     logger(Keyboard, Notice, "Autos-electing %s based on locale.", locale);

- Debug logging is enabled trough a environment variable RDEKSTOP_DEBUG,
  which specifies subjects of interest, comma separated. There is a special
  subject named All which includes all subject for debug loggin. There is also
  a simple logic opeartor '!' = NOT which can be used in combination like:

    RDESKTOP_DEBUG=All,!Graphics,!Sound

  Which would give debug log output for All subject except Graphics and Sound.
2017-01-26 14:19:40 +01:00
Henrik Andersson
d74b2d4278 Added 4 new disconnect reasons with corresponding return code.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1742 423420c4-83ab-492f-b58f-81f9feb106b5
2013-09-17 14:48:56 +00:00
Peter Åstrand
e0ca09a189 Use PACKAGE_VERSION from Autoconf instead of hardcoded VERSION define.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1621 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-18 07:28:31 +00:00
Peter Åstrand
281d7c9f06 Changed license to GPLv3
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1534 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 08:31:06 +00:00
Peter Åstrand
058ee33be3 Clean up and document the return values. Trying to solve a number of issues:
* The current return values have been selected pretty much without any
thought. Basically, the value 1 is used for all different kinds of
errors, except for a corner case where the server doesn't send a
RDP_PDU_DEACTIVATE in combination with a few special "reasons", where
the value 2 is used instead.

* rdesktop will currently also return with 2 if the user is closing
the rdesktop window, the same error as many other fatal errors, which
is somewhat strange.

* The main principle of my patch is to utilize more of the available
256 return codes. We are currently only using 3 values out of
256. This is bad; rdesktop should expose more information to the
caller about error conditions if it can.

Besides using the standardized exit codes for generic errors such as
EX_USAGE for command line usage errors, I've also exposed the
"extended disconnect reasons" from RDP. This allows for, for example,
to be able to distinguish between a logoff and a disconnect.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1510 423420c4-83ab-492f-b58f-81f9feb106b5
2009-09-02 13:03:43 +00:00
Jay Sorg
88855ddcbf update the copyright year
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1474 423420c4-83ab-492f-b58f-81f9feb106b5
2008-07-11 03:51:23 +00:00
Matt Chapman
b25d176fe1 Bump version number in preparation for release.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1464 423420c4-83ab-492f-b58f-81f9feb106b5
2008-04-05 06:15:45 +00:00
Jay Sorg
8858d29b40 copyright year update
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1365 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 06:37:57 +00:00
Jay Sorg
b670bdacfa RD_ prefix and win32 compatibility for core files
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1363 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 04:55:56 +00:00
Pierre Ossman
da0172306d Add configure flag for sound debug messages.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1335 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-06 12:12:37 +00:00
Michael Gernoth
24680f4f8d clean up smartcard debugging
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1318 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-02 20:48:28 +00:00
Peter Åstrand
becc2bda9e Bumped up version to 1.5.0
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1250 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-13 12:10:14 +00:00
Pierre Ossman
9fb01276f2 Give virtual channel debug output its own switch.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1195 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-24 15:34:32 +00:00
Pierre Ossman
470048795d indent-all
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1179 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-21 15:16:48 +00:00
Peter Åstrand
68ceebd8e0 Removed WITH_DEBUG_SEAMLESS.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1172 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-20 16:10:33 +00:00
Peter Åstrand
2e7aa4b8b4 Send back our local positions upon changes, but only after a small timeout.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1156 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-17 12:39:09 +00:00
Peter Åstrand
f756bec8c3 SETSTATE is not two ops: TITLE and STATE
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1093 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-10 10:40:50 +00:00
Michael Gernoth
45d0bff6d8 Globally include limits.h for PATH_MAX, as this is used in types.h
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@979 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-15 12:06:59 +00:00
Michael Gernoth
04818ca41e bump version to 1.4.1
add some entries to TODO


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@902 423420c4-83ab-492f-b58f-81f9feb106b5
2005-05-08 17:57:12 +00:00
Jay Sorg
3921776285 another x86 define
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@877 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-03 05:41:04 +00:00
Jay Sorg
5d691e4180 another x86 define
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@853 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-13 08:10:30 +00:00
Michael Gernoth
d37d8bd663 whitelist for NEED_ALIGN
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@841 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-09 22:41:12 +00:00
Michael Gernoth
ec643e4718 bump version to 1.4.0
change year in files
add missing docu for updated commandline-flags
update changelog


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@827 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-06 21:11:18 +00:00
Michael Gernoth
914e383344 temporary alpha-fix
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@825 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-02 17:38:26 +00:00
Michael Gernoth
7e432258e6 *BSD fixes (tested with OpenBSD)
No more need to include anything in proto.h on BSDs


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@798 423420c4-83ab-492f-b58f-81f9feb106b5
2004-11-06 17:27:45 +00:00
Michael Gernoth
14ad61708f Fixes for HP/UX
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@797 423420c4-83ab-492f-b58f-81f9feb106b5
2004-11-06 15:29:38 +00:00
Michael Gernoth
03839c4f06 include <sys/select.h> for freebsd. From Huang Yushuo <huangys@xynetsoft.com>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@755 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-24 21:37:50 +00:00
Michael Gernoth
d94956c179 configure-check for endianess and fallback in rdesktop.h
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@691 423420c4-83ab-492f-b58f-81f9feb106b5
2004-05-07 04:56:09 +00:00
Peter Kallden
b754bba21c dirent needed in this file to be able to move disk struct into types.h
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@625 423420c4-83ab-492f-b58f-81f9feb106b5
2004-03-04 08:23:17 +00:00
Peter Kallden
a61eac7b19 redirection of disk, lptport, printer, comport.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@568 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-21 14:40:40 +00:00
Matt Chapman
f76ace37f2 Bump version number to 1.3.1.
Fix spelling: syncronization -> synchronisation (synchronization would be
okay too, but I use the Australian/British spelling :))


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@566 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-21 11:08:39 +00:00
Matt Chapman
826ceb5d4a Fix compile warnings on HP-UX.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@535 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-31 04:29:57 +00:00
Matt Chapman
d9d8a266b0 Bump version number.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@524 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-29 06:31:30 +00:00
Matt Chapman
5b9286e6ea Commit of work in progress on channels (so that other people can hack on
RDPSND), in particular:
* channel layer takes care of virtual channel header
* split X dependent parts out of CLIPRDR, simplified IPC implementation
* initial RDPDR implementation


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@431 423420c4-83ab-492f-b58f-81f9feb106b5
2003-07-01 09:31:25 +00:00
Erik Forsberg
ea00031d43 Definition of DEBUG_CLIPBOARD.
Definition of rdp5_channel.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@405 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 10:43:01 +00:00
Erik Forsberg
4ccf5a9387 Defined a DEBUG_RDP5 macro for selective debugging during the RDP5 integration process.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@340 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-06 15:36:28 +00:00
Matt Chapman
10684a8a81 Bump version to 1.2.0, update manpage.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@293 423420c4-83ab-492f-b58f-81f9feb106b5
2003-01-22 08:10:11 +00:00
Peter Åstrand
f03b756f48 Bumped up version to 1.2beta1
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@275 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-19 15:02:17 +00:00
Matt Chapman
b120a50f44 Update copyright dates on all files that have changed.
Bump version to 1.2-cvs.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@206 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-26 14:26:46 +00:00
Matt Chapman
d2b051fb30 Make no translation messages DEBUG_KBD.
Clean up includes, fix a few compile warnings, avoid rdesktop.h depending
on X (at the expense of KeySym -> uint32 - maybe in the future we need a
better proto scheme).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@189 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-24 07:33:17 +00:00
Peter Åstrand
6d144afb8c Got rid of var-arg macros
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@83 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-30 07:30:12 +00:00
Peter Åstrand
6063a29f3b make the using of variable
arguments to function-type macros consistent with the C99 standard


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@70 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-29 08:10:11 +00:00
Peter Åstrand
2dd151bd20 Merged new keysym-based keyboard handling (from alt. CVS repos)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@65 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-18 18:28:12 +00:00