Commit Graph

50 Commits

Author SHA1 Message Date
Henrik Andersson
cd7a7342cb Silence some error spamming when rdesktop is in reconnect loop.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1713 423420c4-83ab-492f-b58f-81f9feb106b5
2013-06-14 12:54:38 +00:00
Henrik Andersson
7d2f65002a Make sure we don't spam log with failed send() messages if we
already have detected a network failure.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1711 423420c4-83ab-492f-b58f-81f9feb106b5
2013-06-13 11:01:55 +00:00
Henrik Andersson
eced6ca821 Reconnect upon network failure, retry as long the autoreconnect
cookie is valid.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1707 423420c4-83ab-492f-b58f-81f9feb106b5
2013-04-12 06:46:07 +00:00
Henrik Andersson
9f174ea864 Added check if socket is connected to prevent sending disconnect
sequence to a closed socket.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1681 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-22 13:38:35 +00:00
Henrik Andersson
6d437f8116 Change the SSL context option to specific onse instead of using all
which introduces some problems.
Added some graceful handling of peer SSL shutdown for better error
reporting.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1675 423420c4-83ab-492f-b58f-81f9feb106b5
2012-11-15 11:20:37 +00:00
Henrik Andersson
c44025aa18 Added support for protocol negotiation, this is a part of
adding Enhanced RDP Security support to rdesktop and brings
support for TLSv1 tunnel functionality.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1659 423420c4-83ab-492f-b58f-81f9feb106b5
2012-06-15 05:16:20 +00:00
Peter Åstrand
b638882347 Include emails in copyright statements.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1615 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 11:13:04 +00:00
Peter Åstrand
27068f53f8 Updated the copyright notices for the things we have been working on.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1612 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 08:55:42 +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
Michael Gernoth
a8338fcd6e always make g_out an array
this removes duplicated code from scard.c


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1396 423420c4-83ab-492f-b58f-81f9feb106b5
2007-02-20 16:51:46 +00:00
Jay Sorg
6091381a81 prefix BOOL with RD_
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1371 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-08 04:47:06 +00:00
Jay Sorg
797df4fa02 copyright year update
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1364 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 05:39:39 +00:00
Peter Åstrand
9d9a7ecdcb Indent fix
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1361 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-03 06:41:13 +00:00
Jay Sorg
c1aa0656a4 win32 bits
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1348 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-23 03:23:59 +00:00
Michael Gernoth
c3f49ea246 more smartcard locking fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1327 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-03 23:51:35 +00:00
Michael Gernoth
f37c871e8b Smartcard support by Alexi Volkov <alexi@pravex.kiev.ua> and additional
patches for smartcard-support by Jennings Jared <jared.jennings.ctr@eglin.af.mil>


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1308 423420c4-83ab-492f-b58f-81f9feb106b5
2006-11-01 20:52:01 +00:00
Peter Åstrand
75ea7d9148 Applied patch #1247780 (slightly modified) from Brian Chapeau: Session Directory support.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@976 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-08 19:15:57 +00:00
Peter Åstrand
1320755f2b Added missing c-basic-offset:s and license headers
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@962 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 10:56:16 +00:00
Michael Gernoth
e34eecdad0 Real fix for socklen_t
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@871 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-31 10:49:59 +00:00
Michael Gernoth
6b43ce2883 socklen_t is not available on all systems (for example mac osx 10.2)
replace it by an int right now


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@869 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-30 19:35:42 +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
Jeroen Meijer
c89189d550 fix compiler warning about passing arg from incompatible pointer type
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@823 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-02 01:18:33 +00:00
Michael Gernoth
7f90b0ea1f Fix for my last tcp.c fix to provide sensible error-messages again
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@727 423420c4-83ab-492f-b58f-81f9feb106b5
2004-06-27 19:17:24 +00:00
Michael Gernoth
4004b21d48 Fix segfault on platforms where getaddrinfo returns non-negative error-
codes (e.g. solaris)


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@723 423420c4-83ab-492f-b58f-81f9feb106b5
2004-06-25 15:46:26 +00:00
Jay Sorg
a9cad0b9cf proceed more global vars with g_
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@709 423420c4-83ab-492f-b58f-81f9feb106b5
2004-06-15 22:17:08 +00:00
Peter Kallden
4e41a6f2ea get address function from volker milde
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@624 423420c4-83ab-492f-b58f-81f9feb106b5
2004-03-04 08:14:00 +00:00
Peter Åstrand
9c9a020b8f errno is not valid when recv returns zero.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@545 423420c4-83ab-492f-b58f-81f9feb106b5
2003-11-08 09:17:41 +00:00
Peter Åstrand
ec91795552 ipv6 connect sanity checking: error message if not able to connect,
instead of just segfaulting.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@442 423420c4-83ab-492f-b58f-81f9feb106b5
2003-08-17 07:28:53 +00:00
Peter Åstrand
e2e9f20bf2 Applied IPv6 patch from mike@dexy.mine.nu.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@439 423420c4-83ab-492f-b58f-81f9feb106b5
2003-08-11 11:09:17 +00:00
Matt Chapman
2c32c1ec3a Eliminate previous ugly hack for RDP5 packets, in order to make it work
with low encryption.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@422 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-17 08:44:32 +00:00
Erik Forsberg
dc6de146a4 Indentation changes.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@407 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 10:44:20 +00:00
Jay Sorg
70de4fa1f9 changes so it compiles with g++(mainly for ports)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@375 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-19 21:36:33 +00:00
Matt Chapman
177848b45b Solaris doesn't define INADDR_NONE (fix from Simon McCartney)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@305 423420c4-83ab-492f-b58f-81f9feb106b5
2003-01-30 13:38:47 +00:00
Matt Chapman
33296581d6 Fix a bug where we report "Network is unreachable" instead of
"cannot resolve host".


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@302 423420c4-83ab-492f-b58f-81f9feb106b5
2003-01-30 11:57:10 +00:00
Peter Åstrand
aa8d6482b2 Applied WM-kill patch from Matthew Riechers (slightly modified
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@274 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-19 14:48:02 +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
5514330916 foo function() -> foo function(void) to conform to ANSI C.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@191 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-24 07:59:14 +00:00
Peter Åstrand
4f8b0bc47a Changed max line length to 100
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@81 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-30 07:18:48 +00:00
Jay Sorg
34aa43353b added tcp port command line option
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@57 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-14 00:34:21 +00:00
Matt Chapman
e867eb6fd1 Add a ui_select to xwin.c to reduce latency.
Remove extraneous error messages - only report at lowest level.
Endianness and IRIX compile fixes.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@32 423420c4-83ab-492f-b58f-81f9feb106b5
2001-09-15 12:34:34 +00:00
Matt Chapman
24ea31f68a Portability fixes, including elimination of variable argument macros.
Rudimentary configure script.
Miscellaneous cleanups.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@29 423420c4-83ab-492f-b58f-81f9feb106b5
2001-09-14 13:51:38 +00:00
Matt Chapman
75717d8ab6 Changed indentation style (-psl).
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@24 423420c4-83ab-492f-b58f-81f9feb106b5
2001-01-06 03:47:04 +00:00
Matt Chapman
b9613445f9 ran indent (-bli0 -i8 -cli8 -npcs -npsl)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@23 423420c4-83ab-492f-b58f-81f9feb106b5
2001-01-06 03:12:10 +00:00
Matt Chapman
d2ff68c437 FreeBSD compile fixes from Chris Knight <chris@aims.com.au>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@12 423420c4-83ab-492f-b58f-81f9feb106b5
2000-09-16 12:07:55 +00:00
Matt Chapman
93c7854261 Portability fixes for Solaris and OSF1.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@11 423420c4-83ab-492f-b58f-81f9feb106b5
2000-08-15 12:01:01 +00:00
Matt Chapman
cd9b5a8761 Major commit of work from laptop - done in various free moments.
Implemented encryption layer and some basic licensing negotiation.
Reorganised code somewhat. While this is not quite as clean, it is
a lot faster - our parser speed was becoming a bottle-neck.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@9 423420c4-83ab-492f-b58f-81f9feb106b5
2000-08-15 10:23:24 +00:00
Matt Chapman
e11a571f14 Committing some awesome progress I made while overseas - this commit
really embodies a huge number of changes. We are now able to talk quite
fluently to a French NT Terminal Server - in normal usage only minor
font issues remain (handling of TEXT2 order is not perfect).

The next major hurdle is encryption, and it will be quite a big hurdle
- there seems to be some quite nasty session key stuff.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@8 423420c4-83ab-492f-b58f-81f9feb106b5
2000-07-25 12:34:29 +00:00
Matt Chapman
34f82f3e18 This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@3 423420c4-83ab-492f-b58f-81f9feb106b5
2000-05-10 07:36:34 +00:00