Commit Graph

108 Commits

Author SHA1 Message Date
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
094f3bac04 Fixed style of a few copyright statements.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1635 423420c4-83ab-492f-b58f-81f9feb106b5
2011-09-28 09:36:59 +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
5fe3caff71 A few copyright tweaks: added email, years, organization.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1613 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 10:51:50 +00:00
Michael Gernoth
360b4a3faa fix two problems found by clang static analyzer
secure.c:  Dereference of null pointer
xkeymap.c: Pass-by-value argument in function call is undefined

both seem to be noncritical, as sec_recv is never called with a null
pointer and ensure_remote_modifiers only accesses initialized fields


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1589 423420c4-83ab-492f-b58f-81f9feb106b5
2010-04-07 11:39:29 +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
bbeb187681 When modifiers are used and a key is released, the generated keysym
might be different from the one generated when the key was
pressed. This can happen if the user physically releases the modifier
key before the symbol key. It can also happen with VNC servers such as
Xvnc, since it only "fakes" the correct modifiers during key
presses. So, we must remember which keysym that was used during the
key press, and use the same on release, otherwise keys such as the
Windows key can be stuck activated. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1512 423420c4-83ab-492f-b58f-81f9feb106b5
2009-09-17 13:52:04 +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
Peter Åstrand
9866572002 We still had some problems with the shift key getting stuck. The new
code makes sure that we restore "faked" modifiers both after press and
release. It's also shorter.

I've added two new test cases to the doc as well.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1418 423420c4-83ab-492f-b58f-81f9feb106b5
2007-10-08 12:34:05 +00:00
Jay Sorg
7f786d64d4 update save_remote_modifier when keyup on a modifier
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1404 423420c4-83ab-492f-b58f-81f9feb106b5
2007-05-03 04:53:39 +00:00
Peter Åstrand
a9639731a4 Call restore_remote_modifiers after key up, to make sure the modifier (such as NumLock is correct for the key up event as well.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1399 423420c4-83ab-492f-b58f-81f9feb106b5
2007-03-20 15:32:43 +00:00
Peter Åstrand
5c994bc6e2 Changed my email
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1386 423420c4-83ab-492f-b58f-81f9feb106b5
2007-02-08 12:56:38 +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
712030924b Undo incorrect commit
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1293 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-11 17:59:18 +00:00
Peter Åstrand
83817d6160 Changed the Copyright: tag to License: in accordance with RPM 4
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1292 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-11 17:56:05 +00:00
Matt Chapman
997e354a24 Fix a small memory leak.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1235 423420c4-83ab-492f-b58f-81f9feb106b5
2006-06-14 06:30:54 +00:00
Peter Åstrand
54587760ed Using MASK_ macros in a few more places.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1218 423420c4-83ab-492f-b58f-81f9feb106b5
2006-04-07 22:20:43 +00:00
Peter Åstrand
ffb111b2a1 Only release Shift if non-physical shift plus Ctrl is pressed;
not if CapsLock is active. This should solve bug 1228691.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1217 423420c4-83ab-492f-b58f-81f9feb106b5
2006-04-07 22:17:14 +00:00
Peter Åstrand
b06a70bf51 Initial support for SeamlessRDP
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1088 423420c4-83ab-492f-b58f-81f9feb106b5
2006-03-10 08:50:43 +00:00
Peter Åstrand
8a9165589d Applied patch #1367109: prevent strtol overflow
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1034 423420c4-83ab-492f-b58f-81f9feb106b5
2005-12-30 20:32:06 +00:00
Peter Åstrand
e82a259ad2 Using new utility function str_startswith, to get rid of many sizeof:s and hardcoded constants.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1009 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-31 13:00:57 +00:00
Peter Åstrand
2daead38a7 Protection against recursive sequences
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@975 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-04 13:39:57 +00:00
Peter Åstrand
36858922d6 keymapname -> g_keymapname
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@974 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-04 12:51:44 +00:00
Peter Åstrand
72055744b9 Created a common xstrdup function.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@973 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-04 12:50:15 +00:00
Peter Åstrand
65b28a80a4 Reorganized the automatic selection of keymap: The message about autoselection is not printed if -k is not given.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@972 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-04 12:44:10 +00:00
Peter Åstrand
87ca88dabb Replaced magic numbers for string lenghts with sizeof. Corrected sizeof statements for keyboard_*; we shouldn't count the trailing zero.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@964 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 11:47:20 +00:00
Peter Åstrand
8882a06591 It is now possible to specify keyboard type, subtype and number of functionskeys. From patch #974509, by Dekaino.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@963 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 11:30:53 +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
Peter Åstrand
5e5d52ccf4 Autoselecting keyboard map based on current locale. Re-implementation of patch #1068995.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@961 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 09:56:17 +00:00
Peter Åstrand
92df92615c The keymap names are now case sensitive, since the -k argument now specifies a file name.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@960 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 09:32:22 +00:00
Peter Åstrand
6e5ea233bb ~/.rdesktop/keymaps is now tried before KEYMAP_PATH
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@959 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 08:41:02 +00:00
Peter Åstrand
6c0bc284cd Keymaps are now searched in ~/.rdesktop/keymaps as well.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@956 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 08:25:32 +00:00
Peter Åstrand
85d2067013 Fixed speling error in comment for free_key_translation.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@955 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 07:08:48 +00:00
Peter Åstrand
6aae477ddb free_key_translation should be static.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@954 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 07:08:17 +00:00
Peter Åstrand
79b3e729a9 Fixed stale comment about multi-scancode keypresses.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@951 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-02 18:15:07 +00:00
Peter Åstrand
39408cef26 Free mem before assigning new objects to keymap.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@950 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-02 18:07:56 +00:00
Peter Åstrand
c04f1dc310 Implemented support for keyboard "sequences", which makes it possible to send multiple scancodes to the RDP server in response to one X11 keyboard event.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@948 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-02 15:07:35 +00:00
Peter Åstrand
ce2d9a386c At XK_Num_Lock events, use RDP_INPUT_SYNCHRONIZE, if using numlock
sync.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@909 423420c4-83ab-492f-b58f-81f9feb106b5
2005-06-07 11:21:53 +00:00
Michael Gernoth
fba0d4f3fe reactivate fixed caps_lock hack. ctrl-alt-delete works again
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@895 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-27 10:05:43 +00:00
Michael Gernoth
64c892b8c9 disable caps_lock fix.
this killed ctrl-alt-entf. need to llook into that later


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@893 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-25 05:32:23 +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
11f02bd9dc Don't send shift when CapsLock is on and Ctrl is pressed, too.
Fixes 858618 and 1069927


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@809 423420c4-83ab-492f-b58f-81f9feb106b5
2005-01-23 19:29:31 +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 Åstrand
030f5f0ca1 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@705 423420c4-83ab-492f-b58f-81f9feb106b5
2004-06-01 08:06:02 +00:00
Peter Åstrand
2f85428b91 Handle ISO_Level3_Shift as Mode_Switch
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@704 423420c4-83ab-492f-b58f-81f9feb106b5
2004-06-01 08:00:58 +00:00
Michael Gernoth
95d2f76a30 rdp2vnc fixes from Johannes Schindelin <Johannes.Schindelin@gmx.de>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@647 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-10 09:34:52 +00:00
Peter Åstrand
539da0823b Another famous "forgotten break in switch statement" bug...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@552 423420c4-83ab-492f-b58f-81f9feb106b5
2003-12-08 15:28:24 +00:00
Peter Åstrand
454e01b591 Reverted to the old numlock-state code. The numlock sync can be enabled via new option -N
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@551 423420c4-83ab-492f-b58f-81f9feb106b5
2003-12-08 12:01:25 +00:00
Peter Åstrand
d22aeb2015 Resetting Windows key state in reset_modifiers
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@547 423420c4-83ab-492f-b58f-81f9feb106b5
2003-11-11 14:01:31 +00:00