Commit Graph

1588 Commits

Author SHA1 Message Date
Erik Forsberg
2dc4181cc2 Added --with-debug-clipboard and it's documentation.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@402 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 10:39:41 +00:00
Erik Forsberg
412f1e6910 Try getting clipboard from CLIPBOARD if there is no owner for PRIMARY.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@401 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 10:39:10 +00:00
Erik Forsberg
64be4d1174 Channel handling, initial revision.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@399 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 10:10:19 +00:00
Erik Forsberg
a210cd69b2 Inter-rdesktop communication, initial revision.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@398 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 10:10:04 +00:00
Erik Forsberg
ac67cf5a9e X-related prototypes, initial revision.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@397 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 10:09:43 +00:00
Erik Forsberg
4c74227e05 I'm an AUTHOR too! :-)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@396 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 10:07:30 +00:00
Erik Forsberg
b129ced397 Indentation changes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@395 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:32:56 +00:00
Erik Forsberg
28329bd3fb Moved some debug code.
Fixed a compiler warning by typecasting correctly.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@394 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:32:15 +00:00
Erik Forsberg
2a36b665db Handle transfers rdesktop <-> rdesktop with native windows formats.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@393 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:31:28 +00:00
Erik Forsberg
7a1831445a Free memory when done with clipboard transfer.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@392 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:30:48 +00:00
Erik Forsberg
e52cbfbb39 Handle large clipboard transfers Windows -> X.
Still won't handle transfers that demand INCR on the X side.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@391 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:30:06 +00:00
Erik Forsberg
1052468cf7 Handle large clipboard transfers X->Windows.
Can't handle INCR yet, but at least we handle larger transfers than
1592 bytes.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@390 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:29:01 +00:00
Erik Forsberg
a80b1267a4 Don't hardcode clipboard channel.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@389 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:28:21 +00:00
Erik Forsberg
2281c6b409 Added one to the length of sent data, since XGetProperty is not reporting the
null byte (although space is allocated for it as it seems).

Resend format announces if they fail, with a small delay. Ugly hack, but
it works..


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@388 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:26:49 +00:00
Erik Forsberg
a40cf381b3 Use last button or keypress, either up or down, as event time when aquiring
PRIMARY (and CLIPBOARD).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@387 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:26:11 +00:00
Erik Forsberg
2bba6ebed8 Send a format announce when we loose ownership of PRIMARY.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@386 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:25:30 +00:00
Erik Forsberg
9d4c22ae10 Rudimentary client->server clipboard transfer.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@385 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:24:15 +00:00
Erik Forsberg
8c019fe34a More proof-of-concept:
* Send a hardcoded string to the server when it wants our clipboard data.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@384 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:23:28 +00:00
Erik Forsberg
3e8d6179ad Proof-of-concept, clipboard transfer server->client works!
A lot of stuff remains for a full implementation.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@383 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 09:22:25 +00:00
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