Commit Graph

569 Commits

Author SHA1 Message Date
Erik Forsberg
cb7ea96467 Initial revision
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@382 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:20:53 +00:00
Jay Sorg
d4d47c0ea9 adding g_ prefix to global vars, orders.c done
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@381 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-30 22:04:25 +00:00
Jay Sorg
63c4677522 adding g_ prefix to global vars, mcs.c done
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@380 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-30 21:59:56 +00:00
Jay Sorg
599062c6a0 adding g_ prefix to global vars, licence.c done
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@379 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-30 21:44:06 +00:00
Jay Sorg
151fd27b4a adding g_ prefix to global vars, cache.c done
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@378 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-30 21:31:59 +00:00
Peter Åstrand
f47f7f080e Commited new hungarian keymap
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@377 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-23 14:39:35 +00:00
Erik Forsberg
5b32458c9e Set the first half of the client random to zeros instead of randomness.
Setting it to randomness seems to create random(!) connection errors. Bah!


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@376 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-22 08:37:57 +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
Jay Sorg
679261b7fc changed all order vars that go through rdp_in_coord to sint16
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@374 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-16 21:55:14 +00:00
Peter Åstrand
9885892607 Added hungarian keymap
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@373 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-16 08:24:27 +00:00
Jay Sorg
f670735863 support for hatch patterns in patblt
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@372 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-15 14:26:15 +00:00
Erik Forsberg
2ea96995a7 Hopefully got the RDP5 Logon packet working.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@370 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-05 12:20:53 +00:00
Peter Åstrand
f236ae26cb Added fr-ch keymap
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@369 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-25 14:43:05 +00:00
Erik Forsberg
daae991607 Fix bug that caused auto-logon not to work.
This is however just a fix for the case when you're running RDP4. The RDP5
code is still buggy.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@368 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-22 15:48:56 +00:00
Matt Chapman
408935e046 Fix an endianness problem.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@367 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-16 13:48:17 +00:00
Matt Chapman
7cf36760da Move non system dependent part of save_licence back to licence.c.
Clean up overly paranoid code, close files, free memory, etc.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@366 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-16 13:04:15 +00:00
Matt Chapman
46c3dca918 Update other places where LICENCE_TAG_* is used.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@365 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-16 12:52:46 +00:00
Matt Chapman
33ee95a206 Fix some instances of out_uint{16|32} with non-zero value (should be
out_uint{16|32}_{le|be}


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@364 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-16 08:19:15 +00:00
Matt Chapman
ce7ad4cfb0 Split licensing "tag" into 8-bit tag/version and remove LICENCE_TAG_*_5
constants.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@363 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-16 08:08:40 +00:00
Matt Chapman
748a2b7485 Autodetect RDP4-style or X.509 exchange (RDP5 still uses the earlier
if you don't have a licence server).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@362 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-16 08:03:59 +00:00
Peter Åstrand
7e7560d205 Added Faroese keymap
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@361 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-16 06:35:33 +00:00
Peter Åstrand
ba3b4c8bda Applied patch from Kim Michael Eriksen.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@360 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-09 11:44:03 +00:00
Erik Forsberg
af17f51472 Added a small thankyou-comment.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@359 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-03 13:56:51 +00:00
Erik Forsberg
bc446480d5 Define and use RDP5-related licence tags. Seems to solve the troubles with
undefined licence tags when running in RDP5 mode.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@358 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-03 13:52:41 +00:00
Peter Åstrand
c1e1a91402 Removed duplicate at definition.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@357 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-03 13:47:33 +00:00
Erik Forsberg
11adde8a0f Got colordepth > 8 bits to work again (apparently, another byte must be set in the client info
depending on the depth wanted).

I think we need to be a bit careful and check what depth the server is really giving us, or
we will have strange results sometimes.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@356 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-28 12:55:25 +00:00
Erik Forsberg
e1d1e03e00 Initialize some variables in order to avoid a compiler warning. Umm.. A bit ugly. Might remove this later.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@355 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-28 09:13:48 +00:00
Erik Forsberg
1bc2511c0b Got bitmap decompression to work. It turned out Microsoft doesn't care about sending the compressed
bitmap header any longer, instead the size of the compressed bitmap data is sent in the bitmapLength
field of the cache bitmap order. Of course this doesn't concur with T.128.

Added more detailed debugging which helped in finding this.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@354 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-28 09:09:17 +00:00
Erik Forsberg
77fe394b6d iso_connect, mcs_connect and sec_connect now takes a username as an argument.
mcs_recv fills in a channel id in a pointer argument.

process_orders takes the number of orders as an argument instead of figuring it out itself.

Exported process_bitmap_updates and process_palette and sec_decrypt
as non-static functions.

New public functions: process_colour_pointer_pdu (rdp.c),
                      process_cached_pointer_pdu (rdp.c),
                      process_null_system_pointer_pdu (rdp.c),
		      rdp5_process (rdp5.c),
		      rdp5_process_channel (rdp5.c)


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@352 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-27 13:33:16 +00:00
Erik Forsberg
28a9f5958e Send a "4" instead of a "1" in the correct place if we try to support RDP5.
Updated client build. We now aim at being 2600 compatible :-).

Set up the clipboard redirector at this protocol level as well (see also
mcs.c)

Do the new-style encryption setup using RSA and X.509 routines from
OpenSSL. That sounds easier than it is (!).

Added some comments and debug output.

Process RDP5 channel data (for channels != MCS_GLOBAL_CHANNEL).

Send the username to mcs_connect.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@351 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-27 13:29:36 +00:00
Erik Forsberg
a20dd37798 Send different logon packets based on if we try to support RDP5 or not. The
order of the data is slightly different in RDP5.

Moved pointer PDU handling to their own functions, since RDP5 no longer
encapsulates ColorPointer and CachedPointer in a PDU with a type field.

Made debug output when doing Bitmap updates clearer. Also added debug
printout when bitmap compression failed.

Added code that checks for a new way of sending the size of the compressed
bitmaps. Code imported from Matt's RDP5 adventures :).

Debug output when doing Palette updates in order to make it easier to follow
packets.

Fetch the number of orders here instead of in process_orders and send it
along to that function as an argument.

Send the username to sec_connect.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@350 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-27 13:22:29 +00:00
Erik Forsberg
fcfd8d4b90 Support for the -5 flag to rdesktop, indicating the experimental RDP5
support should be used.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@349 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-27 13:18:13 +00:00
Erik Forsberg
6ab3861ea0 process_orders now take the number of orders to process as an argument
instead of reading it itself. Adaptation for the RDP5 code to work.

Added some debugging.

Indent fixes.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@348 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-27 13:17:26 +00:00
Erik Forsberg
8d6c2bf1e9 Changed some of the data sent from mcs_send_connection_initial - the
number of channels being the most important.

Don't assume the length of the data coming back from the server is
of the same length that the data we sent was.

Record the channel id of incoming MCS packets.

Send username to iso_connect, in order for it to be able to send the
mstshash.

Open the clipboard channel if we are speaking RDP5.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@347 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-27 13:15:36 +00:00
Erik Forsberg
42764b0104 Remade connection setup. Send mstshash in initial packet.
(This might not be needed, but the more lookalike to a MS client we are,
 the better).

Recognize RDP5 packets and hand them to the RDP5 parsing routine.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@346 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-27 13:11:58 +00:00
Erik Forsberg
593d7a04d6 Added the constants SEC_TAG_CLI_4 and SEC_TAG_CLI_CHANNELS. Both are
used in the RDP5 support.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@345 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-27 13:10:16 +00:00
Erik Forsberg
00b94fa8c7 Added a line telling emacs that the basic offset is 8.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@344 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-27 13:08:57 +00:00
Erik Forsberg
653fd60336 Added rdp5.o to the list of objects to compile.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@343 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-27 13:08:09 +00:00
Erik Forsberg
b2df34f3fc Initial version. Combined code from Matt's RDP5 adventures with some of
my own discoveries.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@342 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-27 13:07:28 +00:00
Peter Åstrand
0a56d9bfd8 Support for moving window by dragging applications title bar. To be used
in conjunction with -s, -S and -D.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@341 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-14 12:00:17 +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
Erik Forsberg
f6520423f4 If WITH_DEBUG, print the number of the packet just received, which makes
it easier to follow the packet on the network.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@339 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-06 14:11:17 +00:00
Erik Forsberg
3a1e4d167b Added comment about where to find definition of General Capability set.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@338 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-06 14:06:38 +00:00
Peter Åstrand
71b7638683 Removed wrong duplicates.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@336 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-05 13:12:21 +00:00
Jay Sorg
b5bb68ced4 fix for connecting to a server that was disconnected with ms client
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@335 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-02 23:45:34 +00:00
Peter Åstrand
a10af85435 rfbregion.h is in rfb dir.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@334 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-21 10:35:38 +00:00
Peter Åstrand
f9fef45126 libvncserver header files is in vnc dir
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@333 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-20 12:17:04 +00:00
Peter Åstrand
b5753d0a87 Added rdp2vnc support
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@332 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-20 12:14:13 +00:00
Peter Åstrand
49e48ec58c Prevent restoring by double click in single app mode.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@331 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-18 13:51:43 +00:00
Peter Åstrand
410c48cf5b Prevent access to sys menu in single app mode
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@330 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-18 13:44:27 +00:00