Emmanuel Ledoux
f454a5c0c8
winpr-handle: CloseHandle(), added ability to register some callback functions
...
winpr-comm: implemented CommCloseHandle()
2014-06-19 19:07:45 +02:00
Emmanuel Ledoux
d38a323526
winpr-comm, winpr-file: better initialization of the static variables
2014-06-19 12:03:36 +02:00
Marc-André Moreau
8688eabc23
Merge pull request #1914 from hardening/pipe_eintr
...
Silently handle EINTR and retry operation
2014-06-18 17:53:16 -04:00
Marc-André Moreau
3aac5ec897
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-06-18 16:12:54 -04:00
Hardening
9039a23de3
Silently handle EINTR and retry operation
2014-06-18 22:09:07 +02:00
Marc-André Moreau
948d137426
libwinpr-sspi: add support for passing NTLMv2 hash
2014-06-18 16:02:13 -04:00
Marc-André Moreau
7818c77e5e
Merge branch 'master' of github.com:awakecoding/FreeRDP into egfx
2014-06-18 15:19:52 -04:00
Marc-André Moreau
e272bc923e
libwinpr-sspi: fix server-side NTLM authentication against NTLMv2 without key exchange
2014-06-18 14:42:35 -04:00
Emmanuel Ledoux
e6c82f99d5
serial: ability to setup the server serial driver thanks to a third parameter on the command line
2014-06-18 18:20:21 +02:00
Hardening
bf30d54fac
Merge pull request #1902 from hardening/pipeFix
...
Don't forget to SetLastError() on disconnection
2014-06-18 17:01:09 +02:00
Emmanuel Ledoux
62298fcd95
winpr-comm: renamed REMOTE_SERIAL_DRIVER by SERIAL_DRIVER or ServerSerialDriver according the context
2014-06-18 15:58:08 +02:00
Emmanuel Ledoux
62d893b2bd
winpr-comm: implemented IOCTL_SERIAL_RESET_DEVICE
2014-06-17 17:49:06 +02:00
Emmanuel Ledoux
9fc0e6eccc
winpr-comm: CommReadFile and CommWriteFile are now protected by a mutex
...
winpr-comm: implemented IOCTL_SERIAL_IMMEDIATE_CHAR
2014-06-17 16:34:20 +02:00
Emmanuel Ledoux
34c3654faf
winpr-comm: implemented IOCTL_SERIAL_CONFIG_SIZE
2014-06-17 15:19:16 +02:00
Emmanuel Ledoux
0db3d9dbb0
winpr-comm: cleaning up code, focused on indentation and whitespaces
2014-06-16 19:18:45 +02:00
Mario Reja
45f9a72975
Added define guards for _rotl and related bit rotation functions, which collided with function definitions in x86intrin.h
2014-06-13 14:25:28 +03:00
Hardening
b4d756830a
Don't forget to SetLastError() on disconnection
...
Otherwise if the last error was a ERROR_NO_DATA we have no indication that
the pipe has been closed.
2014-06-12 23:09:49 +02:00
Marc-André Moreau
42c83c25f8
Merge branch 'egfx' of github.com:awakecoding/FreeRDP into egfx
...
Conflicts:
channels/tsmf/client/tsmf_main.c
2014-06-12 12:08:15 -04:00
Armin Novak
fb4fd9f5bb
Added stream pool shrinking if large parts are unused.
2014-06-11 14:38:20 +02:00
Armin Novak
4325741583
Merge remote-tracking branch 'origin/master' into tsmf-gstreamer-1.0
...
Conflicts:
client/X11/xf_client.c
2014-06-11 11:27:08 +02:00
Marc-André Moreau
adbfcf53ea
libwinpr-sspi: fix failing test
2014-06-10 18:09:51 -04:00
Marc-André Moreau
a7de9e5ac9
Merge branch 'master' of github.com:awakecoding/FreeRDP into sspi
...
Conflicts:
winpr/include/winpr/timezone.h
winpr/libwinpr/timezone/timezone.c
2014-06-10 16:40:58 -04:00
Marc-André Moreau
1b93dca6c0
libwinpr-sspi: add support for querying user+domain and setting NTLM hash
2014-06-10 16:38:16 -04:00
Marc-André Moreau
723e9a171b
libwinpr-sspi: fix server-side NLA
2014-06-10 14:38:17 -04:00
Marc-André Moreau
8a343c3e6d
libwinpr-sspi: fix memory leaks
2014-06-10 14:16:02 -04:00
Marc-André Moreau
a27c7d85ed
libwinpr-sspi: patch some memory leaks
2014-06-10 08:40:04 -04:00
Marc-André Moreau
20464a08ee
winpr: remove installable config.h header
2014-06-10 08:24:20 -04:00
Marc-André Moreau
0ebc7e2ab4
libwinpr-sspi: add custom API for passing NTLM hashes and credentials dynamically
2014-06-09 15:25:00 -04:00
Marc-André Moreau
ac9b527991
libwinpr-sspi: fix NTLM SPN context helper
2014-06-08 09:14:49 -04:00
Marc-André Moreau
1c0ba4ca9a
libwinpr-sspi: add tests for NTLM
2014-06-07 18:28:02 -04:00
Marc-André Moreau
66d2b3ed93
libwinpr-sspi: fix server-side negotiate module
2014-06-07 17:08:07 -04:00
Marc-André Moreau
a37c6bb653
libwinpr-sspi: fix build on Linux
2014-06-07 16:46:32 -04:00
Marc-André Moreau
03cf7933d9
libwinpr-sspi: start implementing and using negotiate sspi module
2014-06-07 16:26:57 -04:00
Marc-André Moreau
576e0c4d1a
libwinpr-sspi: fix exporting of SSPI API
2014-06-07 14:43:02 -04:00
Alessandro Pilotti
7d2f96e84f
Fixes timezone API definition issues on Windows
...
GetDynamicTimeZoneInformation, SetDynamicTimeZoneInformation and
GetTimeZoneInformationForYear are provided by the Windows SDK accordingly
with ethe MSDN cocumentation for SDK with versions above 7.1A.
Those functions are incorrectly included by the 7.1A SDK if _WIN32_WINNT
>= 0x0501 instead of _WIN32_WINNT >= 0x0600.
The issue arises when building with an XP compatible toolset (e.g.
v120_xp).
2014-06-07 20:11:32 +03:00
Marc-André Moreau
a07f616895
libwinpr-sspi: improve link interface
2014-06-07 10:50:51 -04:00
Marc-André Moreau
1b5a2340d2
libwinpr-sspi: even more code hardening
2014-06-07 00:17:11 -04:00
Marc-André Moreau
220f885774
libwinpr-sspi: code hardening
2014-06-06 17:20:34 -04:00
Marc-André Moreau
940e6fbc15
libwinpr-sspi: make native sspi option dynamic
2014-06-06 15:34:12 -04:00
Marc-André Moreau
907a29d0ba
libwinpr-sspi: isolate winpr implementation
2014-06-05 22:54:31 -04:00
Marc-André Moreau
c5a1a8ac27
libwinpr-sspi: fix native sspi build
2014-06-05 22:10:08 -04:00
Marc-André Moreau
886cd9b0c5
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-06-04 12:01:40 -04:00
Marc-André Moreau
00667fa75c
Merge pull request #1872 from nfedera/fix-2014-05-28-01
...
winpr: rewrite named pipe sharing
2014-06-04 12:00:05 -04:00
Marc-André Moreau
659f80e172
libwinpr-smartcard: avoid using pcsc-lite's buggy transaction system
2014-06-02 21:49:49 -04:00
Marc-André Moreau
f5bfb98aca
channels/smartcard: experiment with multiple card contexts
2014-06-02 17:20:01 -04:00
Marc-André Moreau
1359d7c27e
Merge branch 'awakecoding' of github.com:vworkspace/FreeRDP
2014-06-02 12:08:19 -04:00
Mike McDonald
ed8ea297e7
Modified SCardConnect/SCardDisconnect logic to prevent more than one card from being connected to a context. Trying to connect more than once to a context without doing a disconnect can cause a deadlock in the pcsclite daemon (pcscd).
2014-06-02 11:08:32 -04:00
Marc-André Moreau
cd149ed167
libwinpr-winsock: fix non-monolithic build
2014-06-01 22:25:19 -04:00
Marc-André Moreau
abd475060c
libwinpr-winsock: fix build on Windows
2014-06-01 21:52:33 -04:00
Marc-André Moreau
04968b18c4
libfreerdp-core: replace all OpenSSL built-in BIOs by new full duplex BIOs
2014-06-01 21:37:20 -04:00
Marc-André Moreau
1172596d59
libwinpr-winsock: initial winsock implementation
2014-06-01 15:04:28 -04:00
Marc-André Moreau
1ddd6c5e0d
libwinpr-utils: add WLog support for Win32 debugger console output
2014-05-31 10:10:19 -04:00
Marc-André Moreau
357b9197a8
libwinpr-timezone: fix build on Windows
2014-05-29 21:29:24 -04:00
Marc-André Moreau
6002188514
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-05-29 19:27:11 -04:00
Marc-André Moreau
5b0a5dd3f1
libwinpr-utils: add WLOG_PREFIX environment variable
2014-05-29 15:42:32 -04:00
Marc-André Moreau
e5a77c3105
libwinpr-utils: add support for fine grained wlog filter
2014-05-29 15:23:15 -04:00
Marc-André Moreau
a6b3fba9b2
libwinpr-sysinfo: implement GetSystemTime, GetLocalTime
2014-05-29 12:39:09 -04:00
Marc-André Moreau
e33d7321bb
libwinpr-timezone: stub functions
2014-05-29 11:58:53 -04:00
Emmanuel Ledoux
50efce67f5
winpr-comm: completed support of Read*Timeout
2014-05-28 22:11:19 +02:00
Emmanuel Ledoux
16b6c44ef7
winpr-comm: need to purge _purge()'s events before read and write operations
2014-05-28 20:15:08 +02:00
Emmanuel Ledoux
f26c7ee498
winpr-comm: fixed _purge(), eventfd_read() and eventfd_write() just return a error code, not a number of bytes read or written
2014-05-28 19:10:01 +02:00
Emmanuel Ledoux
85343a435a
winpr-comm: completed _purge() supporting SERIAL_PURGE_RXABORT
...
winpr-comm: CommReadFile, support of FREERDP_PURGE_RXABORT sent by _purge()
2014-05-28 18:42:23 +02:00
Emmanuel Ledoux
cdbba47eee
winpr-comm: CommWriteFile, completed support of WriteTotalTimeout
2014-05-28 17:18:33 +02:00
Emmanuel Ledoux
4715009965
winpr-comm: completing _purge() on write operations (SERIAL_PURGE_TXABORT)
...
winpr-comm: CommWriteFile, implemented the WriteTotalTimeout
2014-05-28 16:41:24 +02:00
Marc-André Moreau
af6fb83d3b
libwinpr-utils: extend wlog prefix format
2014-05-28 10:38:32 -04:00
Norbert Federa
5d82ff3c5d
winpr: fixed non monolithic build issue
2014-05-28 16:22:32 +02:00
Norbert Federa
aa2efaf573
winpr: rewrite named pipe sharing
...
Since commit 5e09e37d42
was basically unfixable,
here is a slightly different approach that should hopefully solve all
discovered issues and race conditions.
2014-05-28 13:54:08 +02:00
Emmanuel Ledoux
1e9e8b68bf
winpr-comm: got IOCTL_SERIAL_GET_DTRRTS
2014-05-28 11:39:10 +02:00
Emmanuel Ledoux
f959590bd2
winpr-comm: _get_commstatus() just some comments about HoldReasons.
2014-05-28 10:44:52 +02:00
Emmanuel Ledoux
b8d00e41c4
- winpr-comm: fixed again the synchronization arround PendingEvents. Prefer to wait for the end of _wait_on_mask() inside _set_wait_mask()
2014-05-27 17:29:55 +02:00
Emmanuel Ledoux
ae3dd68b88
winpr-comm: fixed _set_wait_mask() on previous commit
2014-05-27 16:27:04 +02:00
Emmanuel Ledoux
1aeca8fbc7
- serial: terminates IRP threads more gracefully and avoiding warning messages.
2014-05-27 16:17:47 +02:00
Emmanuel Ledoux
b889ad7125
winpr-comm: reviewed the synchronization around counters, WaitMask and PendingEvents variables. Got rid of the semaphore PendingEventsSem.
2014-05-27 12:29:24 +02:00
Emmanuel Ledoux
9796224936
- winpr-comm: got a finalized version of IOCTL_SERIAL_WAIT_ON_MASK
...
- serial: cleaning up the code
2014-05-27 11:33:10 +02:00
Marc-André Moreau
ba5d84ee5c
libwinpr-smartcard: add logging for each calls in smartcard inspector
2014-05-26 17:54:39 -04:00
Marc-André Moreau
b6a8767b71
libwinpr-smartcard: start smartcard API inspector
2014-05-26 15:57:37 -04:00
Norbert Federa
538cc2d4a8
winpr: fixed incorrect pipe reference count usage
...
- refcount is only relevant for servermode
- refcount was used uninitialized in clientmode
- credit for fix goes to @bmiklautz
Bug was introduced by 5e09e37d42
2014-05-26 21:24:34 +02:00
Emmanuel Ledoux
13e10c5de9
winpr-comm: identified the ioctl 0x00220034 as IOCTL_USBPRINT_GET_1284_ID (support not yet implemented)
2014-05-26 16:31:56 +02:00
Marc-André Moreau
ad8f031a88
Merge pull request #1864 from MartinHaimberger/namedpipefix
...
fixed introduced winpr bug in namedpipes
2014-05-26 08:10:28 -04:00
Martin Haimberger
c958f81016
fixed introduced winpr bug in namedpipes
...
Bug was introduced by 5e09e37d42
2014-05-26 03:04:22 -07:00
Marc-André Moreau
c866d19bd4
winpr-crt: fix bit rotation macros
2014-05-23 14:00:46 -04:00
Emmanuel Ledoux
1b54ecfc00
winpr-comm: replaced the cumbersome hashtable for defined COM defines by a simpler array[128]
2014-05-23 17:46:05 +02:00
Emmanuel Ledoux
5dc21b5604
winpr-comm: renamed waitMask WaitEventMask
...
winpr-comm: removed ReadIrpQueue
2014-05-23 15:55:44 +02:00
Emmanuel Ledoux
a36467c353
winpr-comm: don't loop yet on IOCTL_SERIAL_WAIT_ON_MASK
2014-05-23 15:16:07 +02:00
Emmanuel Ledoux
1cb1fd6764
winpr-comm: IOCTL_SERIAL_SET_XON / IOCTL_SERIAL_SET_XOFF not supposed to be supported by SerCx2.sys
2014-05-23 15:06:15 +02:00
Armin Novak
309405592e
Fixed broken ArrayList_Remove and ArrayList_RemoveAt functions, freeing element now.
2014-05-23 13:43:14 +02:00
Emmanuel Ledoux
4feafcc40d
winpr-comm: got IOCTL_SERIAL_SET_XOFF and IOCTL_SERIAL_SET_XON
2014-05-23 13:04:43 +02:00
Emmanuel Ledoux
ee268a92ee
serial: got a thread per IRP
...
winpr-comm: got IOCTL_SERIAL_GET_COMMSTATUS, IOCTL_SERIAL_SET_BREAK_ON and IOCTL_SERIAL_SET_BREAK_OFF
winpr-comm: tcdrain called by CommWriteFile() :(
2014-05-23 12:27:09 +02:00
Marc-André Moreau
19b25a792e
winpr-crt: add bit rotation functions
2014-05-22 16:31:14 -04:00
Marc-André Moreau
cd35b2772f
libwinpr-thread: fix compilation on Android
2014-05-22 15:32:49 -04:00
Marc-André Moreau
ae368549ad
freerdp: fix compilation on Windows
2014-05-22 14:42:05 -04:00
Marc-André Moreau
146305f9b2
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-05-22 13:59:25 -04:00
Marc-André Moreau
247beff1b3
winpr: fix test compilation on Windows
2014-05-22 13:50:01 -04:00
Martin Haimberger
535d7668a7
fixed missing extern C for cpp in makecert.h
2014-05-22 01:28:01 -07:00
Marc-André Moreau
4bac8374de
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-05-21 11:17:58 -04:00
Marc-André Moreau
472c231876
Merge pull request #1826 from Hobby-Student/master
...
fix FreeBSD compile errors
2014-05-21 10:53:47 -04:00
Emmanuel Ledoux
9639da0067
serial: first steps to get a thread per IRP as a proof of concept. A bit of synchronization is still required.
2014-05-21 10:36:55 +02:00
Emmanuel Ledoux
baf4896a38
serial: got rid of most the warning message with MAKE_BUILD_TYPE=Release
...
winpr-comm: consolidated _set_handflow()/_get_handflow()
winpr-comm: introduced a permissive mode
winpr-comm: implementation of IOCTL_SERIAL_WAIT_ON_MASK still in progress
2014-05-19 16:53:57 +02:00
Emmanuel Ledoux
8179affea9
winpr-comm: got IOCTL_SERIAL_PURGE
2014-05-14 21:21:31 +02:00
Emmanuel Ledoux
6cc44ff112
winpr-comm: got IOCTL_SERIAL_SET_QUEUE_SIZE
2014-05-14 17:30:29 +02:00
Emmanuel Ledoux
4243928c2e
winpr-comm: fixed _set_lines() / _clear_lines()
...
winpr-comm: got IOCTL_SERIAL_SET_WAIT_MASK / IOCTL_SERIAL_GET_WAIT_MASK and a non-blocking version of IOCTL_SERIAL_WAIT_ON_MASK
2014-05-14 16:29:10 +02:00
Emmanuel Ledoux
116995f865
wimpr-comm: got IOCTL_SERIAL_GET_MODEMSTATUS
2014-05-13 17:27:51 +02:00
Emmanuel Ledoux
7e36374a89
serial: attempt to use two additional threads for read and write requests
...
winpr-comm: fixed CommWriteFile
2014-05-13 14:55:30 +02:00
Marc-André Moreau
003870157a
libwinpr-smartcard: remove some locks
2014-05-12 17:28:35 -04:00
Emmanuel Ledoux
881370a338
winpr-comm: got IOCTL_SERIAL_SET_RTS / IOCTL_SERIAL_CLR_RTS
2014-05-12 20:33:33 +02:00
Emmanuel Ledoux
7684ff7bd4
winpr-comm: got IOCTL_SERIAL_SET_DTR / IOCTL_SERIAL_CLR_DTR
2014-05-12 20:16:13 +02:00
Emmanuel Ledoux
4c743de69c
winpr-comm: got IOCTL_SERIAL_SET_TIMEOUTS / IOCTL_SERIAL_GET_TIMEOUTS
...
serial redirection: use of winpr-comm's functions and not serial_tty.* anymore
2014-05-12 17:33:56 +02:00
Marc-André Moreau
2da6111972
channels/smartcard: fix clearing of rgSCardContextList
2014-05-12 10:17:49 -04:00
Marc-André Moreau
ae6c778eb7
libwinpr-smartcard: modifying threading
2014-05-11 05:23:30 -04:00
Marc-André Moreau
fda492c58d
libwinpr-smartcard: fix AccessStartedEvent
2014-05-11 01:53:47 -04:00
Marc-André Moreau
d04430cb02
channels/smartcard: implement usage of SCardAccessStartedEvent
2014-05-10 23:43:25 -04:00
Marc-André Moreau
0bcb3eb63d
libwinpr-locale: fix inclusion of stdarg.h
2014-05-10 17:31:42 -04:00
Marc-André Moreau
b8d60d5715
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-05-10 10:59:56 -04:00
Marc-André Moreau
ee282a931b
freerdp: fix build warnings on Windows
2014-05-10 09:50:36 -04:00
Marc-André Moreau
ad9f73350e
libwinpr-smartcard: fix cmake script
2014-05-10 00:50:30 -04:00
Marc-André Moreau
fb3662c7e2
winpr: fix ranlib missing symbols warnings on OS X
2014-05-09 22:44:19 -04:00
Hardening
50f1f0df6f
Add some const modifiers
...
This allows these functions to be used with const buffers.
2014-05-09 22:36:50 +02:00
Marc-André Moreau
bf39fc79b6
Merge branch 'master' of github.com:awakecoding/FreeRDP
2014-05-09 15:45:10 -04:00
Marc-André Moreau
c1d727e9cd
freerdp: fix type build warnings
2014-05-09 15:44:49 -04:00
Marc-André Moreau
bbc9fc4393
freerdp: add more vendor options
2014-05-09 12:25:05 -04:00
Marc-André Moreau
a202fe4057
freerdp: fix several type related warnings
2014-05-08 18:02:02 -04:00
Marc-André Moreau
06d36c7084
libwinpr-pipe: fix circular dependency
2014-05-08 17:17:39 -04:00
Marc-André Moreau
4dc6ffdaaa
Merge branch 'awakecoding' of github.com:vworkspace/FreeRDP
...
Conflicts:
winpr/libwinpr/pipe/pipe.c
2014-05-08 16:38:21 -04:00
Marc-André Moreau
b0a9d7d690
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-05-08 16:11:42 -04:00
Marc-André Moreau
c2bdd5d413
Merge pull request #1825 from hardening/compil_warnings
...
Fix some compilation warnings
2014-05-08 16:09:18 -04:00
Marc-André Moreau
a4df5d8abb
Merge pull request #1834 from bmiklautz/fix/misc
...
Misc small fixes
2014-05-08 15:59:17 -04:00
Bernhard Miklautz
e5fb854a49
winpr-file: harden GetNamePipeFileDescriptor
...
Ensure that GetNamePipeFileDescriptor returns an error
if the supplied handle isn't a named pipe.
2014-05-07 21:23:54 +02:00
Bernhard Miklautz
139630be94
makecert: install header file
...
install the makecert header file for the exported static libary to
winpr/tools/makecert.h
2014-05-07 21:09:34 +02:00
Marc-André Moreau
b3114ff4d8
channels/smartcard: improve debug output, fix GetStatusChange SCARD_E_CANCELLED, fix SCardGetAttrib current protocol type
2014-05-06 10:00:44 -07:00
Emmanuel Ledoux
ff4d7d569b
winpr-comm: slightly improved GetCommProperties()
2014-05-06 16:45:05 +02:00
Emmanuel Ledoux
c2b024512a
winpr-comm: got IOCTL_SERIAL_SET_HANDFLOW / IOCTL_SERIAL_GET_HANDFLOW
2014-05-06 16:08:58 +02:00
Marc-André Moreau
4460a1a7cf
libwinpr-utils: flush file after each write in wlog
2014-05-05 18:04:20 -04:00
Marc-André Moreau
38c77eb57c
libwinpr-smartcard: fix SCardGetAttrib for friendly name (unicode)
2014-05-05 17:27:29 -04:00
Marc-André Moreau
9e407e6e22
libwinpr-smartcard: start handling SCardControl control code conversions
2014-05-03 19:02:17 -04:00
Marc-André Moreau
b51da6c6f4
libwinpr-smartcard: improve SCardGetAttrib, fix null SCARDCONTEXT usage in SCardListReaders
2014-05-03 17:07:30 -04:00
Marc-André Moreau
86b018ee21
libwinpr-smartcard: fix pcsc-lite SCARD_IO_REQUEST incompatibility
2014-05-03 14:20:17 -04:00
Marc-André Moreau
cd7e3151cd
libwinpr-smartcard: fix PCSC incompatible type definitions
2014-05-03 13:49:50 -04:00
Hobby-Student
923d9d6365
FreeBSD compile errors - fix typo #3
2014-05-01 20:02:46 +02:00
Hobby-Student
18d70c6cda
FreeBSD compile errors - add comments
2014-05-01 15:24:11 +02:00
Hobby-Student
7c8e1681cc
FreeBSD compile errors - fix typo
2014-05-01 15:17:54 +02:00
Hobby-Student
03315cebe8
FreeBSD compile errors
2014-05-01 15:09:35 +02:00
Emmanuel Ledoux
494b7e8f93
winpr-comm: fixed DCB's fBinary and fParity flags
2014-05-01 00:04:55 +02:00
Emmanuel Ledoux
feb4405941
wimpr-comm: got IOCTL_SERIAL_SET_LINE_CONTROL and IOCTL_SERIAL_GET_LINE_CONTROL
2014-04-29 22:25:07 +02:00
Hardening
597cba042a
Fix some compilation warnings
2014-04-29 16:02:31 +02:00
Emmanuel Ledoux
ee2339addc
winpr-comm: implemented IOCTL_SERIAL_SET_CHARS and IOCTL_SERIAL_GET_CHARS
2014-04-29 04:04:09 +02:00
Emmanuel Ledoux
fff1f22f8c
winpr-comm: completed GetCommProperties() (the underlying ioctl remains unfinished)
2014-04-28 22:56:25 +02:00
Marc-André Moreau
c2a59c23a7
libfreerdp-core: fix potential crash on session redirection failure
2014-04-28 16:44:52 -04:00
Emmanuel Ledoux
18dd3d3141
winpr-comm: tests are done according the "remote serial driver" in TestGetCommState/TestSetCommState
2014-04-28 22:32:27 +02:00
Emmanuel Ledoux
69eeeebe67
winpr-comm: got IOCTL_SERIAL_GET_BAUD_RATE and IOCTL_SERIAL_GET_PROPERTIES (partial)
...
winpr-comm: cleant up unit tests
2014-04-28 19:57:17 +02:00
Bernhard Miklautz
0bcd933e70
wtsapi: add fallback to load freerds lib
...
Try to load libfreerds-fdsapi.so directly if the freerds ini file
isn't found. This adds a fallback that uses the systems library
loading mechanisms (e.g LD_LIBRARY_PATH).
Might also be required for older version of FreeRDS.
2014-04-28 16:54:58 +02:00
Bernhard Miklautz
bc73a554fc
wtsapi: replaced printf with fprintf
2014-04-28 16:48:24 +02:00
Bernhard Miklautz
21bcf31c43
wtsapi: consolidate lib initialization and load
...
Move duplicated code to LoadAndInitialize.
2014-04-28 16:46:07 +02:00
Marc-André Moreau
9a8b8372d4
winpr: fix type redefinition
2014-04-27 22:35:04 -04:00
Marc-André Moreau
32de7b6a77
libwinpr-smartcard: fix failing unit test
2014-04-27 22:23:42 -04:00
Marc-André Moreau
19dc76b329
winpr: check for __LP64__ for DWORD and LONG definitions
2014-04-27 22:05:31 -04:00
Marc-André Moreau
6e2699d2d6
libwinpr-wtsapi: fix failing tests
2014-04-27 21:54:21 -04:00
Marc-André Moreau
314acdb5fc
winpr: fix missing link dependencies
2014-04-27 21:45:50 -04:00
Marc-André Moreau
b1c0a68f55
client/common: honor RedirectSmartCards, RedirectPrinters
2014-04-27 21:29:44 -04:00
Marc-André Moreau
c9a223a06b
libwinpr-smartcard: return SCARD_NO_SERVICE when no internal callback is registered
2014-04-27 20:11:31 -04:00
Marc-André Moreau
058a550cab
Merge branch 'smartcard' of github.com:awakecoding/FreeRDP
2014-04-27 19:21:35 -04:00
Marc-André Moreau
b67288868d
Merge branch 'master' of github.com:awakecoding/FreeRDP into fdsapi
2014-04-27 19:18:23 -04:00
Marc-André Moreau
5db851a154
libwinpr-smartcard: update PCSC-WinPR instructions (WIP)
2014-04-27 17:38:45 -04:00
Marc-André Moreau
103b7d4151
libwinpr-smartcard: fix workaround for lack of PnP Notification support on OS X
2014-04-27 16:43:09 -04:00
Emmanuel Ledoux
e7f0185e69
- firt use of winpr-comm by the serial channel (not tested and not finalized)
2014-04-27 19:41:25 +02:00
Marc-André Moreau
769502ec72
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-04-26 13:47:01 -04:00
Zhang Zhaolong
cad2578867
libwinpr: minor fix print uninitialized variable.
2014-04-26 13:13:12 +08:00
Zhang Zhaolong
dcbf5bd0ed
libwinpr: fix memory leak in case of error.
2014-04-26 11:53:08 +08:00
Zhang Zhaolong
88760cbd83
libwinpr: fix memory leak in case TimerQueue is NULL.
2014-04-26 11:36:35 +08:00
Zhang Zhaolong
196f5315ae
libwinpr: fix memory leak in case realloc() failed.
2014-04-26 11:32:51 +08:00
Marc-André Moreau
cee67b9c5f
libwinpr-smartcard: improve pcsc-lite wrapper robustness
2014-04-25 19:26:55 -07:00
Marc-André Moreau
237eb6140a
libwinpr-smartcard: fix for pcsc-lite SCardGetStatusChange
2014-04-25 20:07:29 -04:00
Marc-André Moreau
746e8a6929
libwinpr-smartcard: fix usage of native data types
2014-04-25 18:49:57 -04:00
Marc-André Moreau
95f9dadbb3
Merge branch 'master' of github.com:awakecoding/FreeRDP into smartcard
2014-04-25 18:22:57 -04:00
Marc-André Moreau
866169bdad
libwinpr-crt: add type sizeof tests
2014-04-25 18:10:04 -04:00
Zhang Zhaolong
66dfc4fd5b
winpr: fix error malloc size.
2014-04-25 21:14:10 +08:00
Emmanuel Ledoux
6fcc1b4478
winpr-comm: first import of comm_ioctl.h and the REMOTE_SERIAL_DRIVER type.
2014-04-25 00:20:48 +02:00
Marc-André Moreau
d6b0b1ae0e
Merge branch 'master' of github.com:awakecoding/FreeRDP into smartcard
2014-04-23 21:31:26 -04:00
Marc-André Moreau
59df3ca733
Merge pull request #1806 from bmiklautz/feat/export_modules
...
Improve pkg-config file generation
2014-04-23 19:37:53 -04:00
Hardening
9d2ea1fcd8
Fix Thread handle leak
...
When a thread pool is release the Thread handle is leaked.
2014-04-23 16:59:14 +02:00
Bernhard Miklautz
dee9188191
update and improve pkg-config files
...
* generate pkg-config files top level to make sure all
exports are available (eg. client/server)
* .pc libs section is now generated from export libraries
* update .pc file to use .private fields (prevent overlinking)
2014-04-23 13:12:23 +02:00
Bernhard Miklautz
b817e92e5e
cmake: mark required libraries for export
2014-04-23 10:16:02 +02:00
Emmanuel Ledoux
21f9bfeb6c
winpr-comm: First implementation of CommCreateFileA()
...
winpr-comm: Implementation of GetCommState()/SetCommState() in progress (BaudRate, fBinary and fParity done)
2014-04-22 17:04:07 +02:00
Emmanuel Ledoux
346c598bbe
Introduced RegisterHandleCreator() to be used with CreateFile()
2014-04-22 17:00:14 +02:00
Marc-André Moreau
784e9abd79
cmake: improve __FILE__ relative path hack
2014-04-21 14:42:24 -04:00
Hardening
bb2852df06
Add an helper function for the Key object
2014-04-18 23:07:43 +02:00
Mike McDonald
b9d5687e99
Added initializer for global BaseNamedPipeList per code review.
2014-04-18 15:11:26 -04:00
Mike McDonald
d8c1133201
Changes to named pipe functions based on code review.
2014-04-18 14:02:44 -04:00
Emmanuel Ledoux
7e44488e0a
winpr-file: introduced HANDLE_CREATOR type
...
winpr-comm: got a _CommHandleCreator
2014-04-18 19:25:25 +02:00
Mike McDonald
5e09e37d42
Modified named pipes to support multiple instances (i.e., multiple calls to CreateNamedPipe with the same pipe name).
2014-04-18 13:16:42 -04:00
Hardening
ef11358668
Enhance ListDictonnary
...
This patch enhances ListDictionnary so that you can set callbacks for
keys and for values.
2014-04-18 18:26:04 +02:00
Emmanuel Ledoux
f9fc107c20
new functions: DefineCommDevice / QueryCommDevice / IsCommDevice
2014-04-18 17:18:08 +02:00
Hardening
6febe88026
Fixes for queue and stack
...
This patch does misc fixes in queue and stack:
* the *_new() were not handling OOM correctly ;
* the *_Contains() methods were not using the equals cb;
* the lock were not always taken when accessing internal members;
2014-04-18 16:27:51 +02:00
Emmanuel Ledoux
75ff8fd9a4
add tchar function: _tcsncmp
2014-04-18 15:04:11 +02:00
Bernhard Miklautz
02c4e261d1
winpr-env: update Get/SetEnvironmentVariableA
...
* set last error to ERROR_ENVVAR_NOT_FOUND in GetEnvironmentVariableA
if not found
* remove unused variables in SetEnvironmentVariableA
* add more test cases
2014-04-17 11:48:50 +02:00
Bernhard Miklautz
291569d1e5
winpr: change GetKnownSubPath to use a const path
2014-04-17 10:04:34 +02:00
Bernhard Miklautz
b8cf4a2304
remove re-declaration of extended pipe functions
...
remove them from winpr/pipe.h since they are defined and declared
in winpr/file.h
2014-04-17 10:04:06 +02:00
Bernhard Miklautz
adff58f48d
winpr/pipe: fix variable type - unsigned to signed
...
fcntl returns int. Comparison to 0 < always returned false.
2014-04-17 10:02:41 +02:00
Marc-André Moreau
19b9ed3bb0
channels/smartcard: some Mac OS X fixes
2014-04-16 14:03:22 -04:00
Marc-André Moreau
77a50401a7
channels/smartcard: fix autoallocate wrapper
2014-04-15 18:45:38 -04:00
Marc-André Moreau
6d7f3cd00c
libwinpr-smartcard: fix SCardGetAttrib SCARD_ATTR_CURRENT_PROTOCOL_TYPE
2014-04-15 18:01:26 -04:00
Marc-André Moreau
fc885dc4b7
libwinpr-smartcard: fix SCardGetAttrib
2014-04-15 17:51:39 -04:00
Marc-André Moreau
a675800d68
channels/smartcard: fix multi-line handling
2014-04-15 16:48:25 -04:00
Marc-André Moreau
38d05b48a0
channels/smartcard: fix reader name aliasing
2014-04-15 13:49:52 -04:00
Marc-André Moreau
0059772efa
Merge pull request #1789 from MartinHaimberger/mh-memfixes
...
Fixed misc leaks
2014-04-14 14:17:30 -04:00
Marc-André Moreau
edb3ad383e
Merge pull request #1784 from hardening/collections_reallocs
...
Don't leak memory when realloc fails
2014-04-14 14:17:05 -04:00
Marc-André Moreau
62481e83ee
channels/smartcard: add more debug output
2014-04-13 16:48:32 -04:00
Marc-André Moreau
d699128a57
channels/smartcard: add more debug output
2014-04-13 15:50:51 -04:00
Marc-André Moreau
9afe63aa76
libwinpr-smartcard: improve GetStatusChange
2014-04-13 00:43:12 -04:00
Marc-André Moreau
a352044c7a
libwinpr-smartcard: implement PCSC/WinSCard reader name aliasing
2014-04-12 23:38:15 -04:00
Marc-André Moreau
2f3c3c4bb1
channels/smartcard: add pcsc-lite protocol value mapping
2014-04-12 18:13:18 -04:00
Marc-André Moreau
1d864fe9af
channels/smartcard: make PCSC implementation even closer to WinSCard
2014-04-12 16:45:06 -04:00
Marc-André Moreau
7ff1c984c2
channels/smartcard: add more debug output, make distinction between reader and card state
2014-04-12 14:31:54 -04:00
Marc-André Moreau
fd6052f348
channels/smartcard: add more debug output
2014-04-12 12:42:09 -04:00
Marc-André Moreau
ee9f44ce5a
libwinpr-smartcard: fix SCardConnectW deadlock
2014-04-12 12:15:04 -04:00
Marc-André Moreau
c106b62920
libwinpr-smartcard: fix deadlock in PCSC_SCardFreeMemory
2014-04-12 11:24:47 -04:00
Marc-André Moreau
727a4914f2
channels/smartcard: add more debug output
2014-04-11 18:57:04 -04:00
Marc-André Moreau
79453d1bb4
channels/smartcard: make handles completely opaque
2014-04-11 16:27:01 -04:00
Mike McDonald
38c7a38141
Merge branch 'fdsapi' of https://github.com/awakecoding/FreeRDP into awakecoding
2014-04-11 10:13:27 -04:00
Martin Haimberger
dd62e88098
fixed Wlog_Uninit to also free child logger
2014-04-11 02:23:16 -07:00
Martin Haimberger
a6c34c114e
using setenv instead of putenv to prevent memleaks
2014-04-11 02:17:43 -07:00
Marc-André Moreau
8cac6519e1
channels/smartcard: added detailed debug tracing
2014-04-11 02:17:36 -04:00
Marc-André Moreau
2b52c294a2
channels/smartcard: minor fixes
2014-04-10 17:36:42 -04:00
Marc-André Moreau
ccea0b1e62
libwinpr-smartcard: more pcsc-lite fixes
2014-04-09 17:44:39 -04:00
Hardening
31c77baba0
Don't leak memory when realloc fails
2014-04-09 21:53:42 +02:00
Marc-André Moreau
912d7f1e4e
libwinpr-smartcard: add proper locking by SCARDCONTEXT for pcsc-lite
2014-04-09 15:32:18 -04:00
Marc-André Moreau
da56c8af62
channels/smartcard: pcsc-lite fixes
2014-04-09 14:27:44 -04:00
Marc-André Moreau
39f04c870e
channels/smartcard: fix some valgrind warnings
2014-04-09 12:28:03 -04:00
Marc-André Moreau
2c016bf2b0
Merge branch 'master' of github.com:FreeRDP/FreeRDP into smartcard
2014-04-09 10:41:05 -04:00
Marc-André Moreau
4093f1a715
Merge pull request #1782 from hardening/oom_cases
...
Treat OOM cases
2014-04-09 10:39:31 -04:00
Hardening
1d1844aabd
Treat OOM cases
2014-04-09 16:07:06 +02:00
Marc-André Moreau
934a5d497b
winpr: fix failing unit tests
2014-04-09 10:01:58 -04:00
Hardening
36b4f20ff8
Fixes in case of OOM
2014-04-09 15:26:43 +02:00
Marc-André Moreau
2060037026
libwinpr-smartcard: fix missing link dependency
2014-04-09 00:10:45 -04:00
Marc-André Moreau
b91c10392f
channels/smartcard: improve SCardGetAttrib
2014-04-08 23:52:24 -04:00
Marc-André Moreau
a32d814218
libwinpr-smartcard: implement SCARD_AUTOALLOCATE
2014-04-08 21:02:30 -04:00
Marc-André Moreau
3e4d30df6c
channels/smartcard: fix ListReaders mszGroups parsing
2014-04-08 18:55:50 -04:00
Marc-André Moreau
d762a284d7
libwinpr-smartcard: improve Mac OS X build
2014-04-08 16:58:51 -04:00
Marc-André Moreau
3a428b87df
libwinpr-smartcard: add option to build statically against specialized pcsclite build
2014-04-08 01:26:28 -04:00
Marc-André Moreau
e3ae293971
channels/smartcard: more code hardening
2014-04-07 17:17:26 -04:00
Marc-André Moreau
21c3fd6093
channels/smartcard: fix GetStatusChangeW
2014-04-07 12:38:27 -04:00
Marc-André Moreau
e75b9aa9fa
channels/smartcard: more unpacking
2014-04-07 01:19:58 -04:00
Marc-André Moreau
c2fb729167
channels/smartcard: implement clean SCardStatusW
2014-04-07 00:58:34 -04:00
Marc-André Moreau
bbfd4fb361
channels/smartcard: implement clean ListReadersW
2014-04-07 00:10:27 -04:00
Marc-André Moreau
9dd9f8c7bf
channels/smartcard: more unpacking
2014-04-06 21:09:49 -04:00
Marc-André Moreau
a22b7af2b9
channels/smartcard: unpacking improvements
2014-04-06 16:29:11 -04:00
Marc-André Moreau
7324ded7a2
channels/smartcard: fix non-monolithic build
2014-04-05 20:05:51 -04:00
Marc-André Moreau
2aa248853a
channels/smartcard: cancel outstanding IRPs on re-initialization
2014-04-05 17:15:17 -04:00
Marc-André Moreau
600218dfb2
channels/smartcard: cleanup ConnectA/ConnectW parsing
2014-04-05 16:06:46 -04:00
Marc-André Moreau
f9ada64587
libwinpr-smartcard: fix compilation on Windows
2014-04-04 16:45:11 -04:00
Marc-André Moreau
91898fb293
libwinpr-smartcard: add winscard.dll backend
2014-04-04 15:50:04 -04:00
Marc-André Moreau
06bf1ecc95
libwinpr-smartcard: implement dynamic API stubs
2014-04-04 15:30:03 -04:00
Marc-André Moreau
33813c08ec
channels/smartcard: cleanup unpacking of data structures
2014-04-04 13:57:28 -04:00
Marc-André Moreau
308e32ccb9
channels/smartcard: refactoring
2014-04-03 17:29:12 -04:00
Marc-André Moreau
89ad7638e4
channels/smartcard: migrate code to libwinpr-smartcard
2014-04-03 15:27:55 -04:00
Marc-André Moreau
d5ca2162ad
libwinpr-smartcard: dynamically load pcsclite
2014-04-02 22:08:04 -04:00
Marc-André Moreau
c1f1ae2f65
libwinpr-smartcard: initial stubs
2014-04-02 20:54:46 -04:00
Marc-André Moreau
8cdb3576c2
Merge branch 'master' of github.com:awakecoding/FreeRDP into smartcard
...
Conflicts:
channels/smartcard/client/smartcard_main.c
2014-04-02 18:27:31 -04:00
Marc-André Moreau
82ed4f0f38
libwinpr-comm: initial stubs
2014-04-02 15:51:28 -04:00
Hardening
ac7507ab8d
Adds some check to treat OOM problems + RDP security fix
...
Malloc can fail so it will, this patch adds some check in some places
where malloc/strdup results were not checked.
This patch also contains a server side fix for RDP security (credit to nfedera).
The signature len was badly set in the GCC packet. And some other RDP security
oriented fixes are also there.
2014-03-25 23:13:08 +01:00
Marc-André Moreau
14b75d1b27
libfreerdp-core: fix build warnings and windows broken build
2014-03-25 15:19:52 -04:00
Marc-André Moreau
64b550e18f
libwinpr-utils: fix .ini parser whitespace trimming
2014-03-25 00:32:05 -04:00
Marc-André Moreau
43031d6b66
libwinpr-utils: improve .ini file parser
2014-03-24 22:41:30 -04:00
Marc-André Moreau
331209f02d
libwinpr-utils: start new .ini config file parser
2014-03-24 18:20:34 -04:00
Marc-André Moreau
822b07eb3e
Merge branch 'master' of github.com:awakecoding/FreeRDP into fdsapi
2014-03-24 11:56:30 -04:00
Benoit LeBlanc
27c753f80c
Merge branch 'master' of git://github.com/awakecoding/FreeRDP
2014-03-19 11:53:10 -04:00
Benoit LeBlanc
23d80d78b7
added missing cast for GetProcAddress
2014-03-19 11:52:12 -04:00
Marc-André Moreau
4236cd0cf5
libwinpr-wnd: stub more functions
2014-03-18 18:03:55 -04:00
Marc-André Moreau
2d4cc74961
libwinpr-wnd: expand window procedure functions
2014-03-18 16:39:43 -04:00
Marc-André Moreau
2c7ab4be46
libwinpr-wnd: stub core functions
2014-03-18 14:43:25 -04:00
Marc-André Moreau
885fe64544
libwinpr-wnd: stub window functions
2014-03-17 21:37:12 -04:00
Marc-André Moreau
2c17f438f8
libwinpr-wtsapi: extend WtsApiQuerySessionInformation unit tests
2014-03-17 16:39:35 -04:00
Marc-André Moreau
5cf4a00658
libwinpr-wtsapi: add support for WTSAPI_LIBRARY environment variable
2014-03-17 12:16:07 -04:00
Marc-André Moreau
882f3098b3
libfreerdp-codec: add more NCrush tables, decode literals and CopyOffsets
2014-03-16 15:51:35 -04:00
Marc-André Moreau
b813189266
libwinpr-wtsapi: fix linker issue
2014-03-12 11:40:39 -04:00
Marc-André Moreau
707f3c0692
libwinpr-wtsapi: add missing link dependency
2014-03-12 10:02:26 -04:00
Marc-André Moreau
c2d8486d8a
libwinpr-utils: convert BitStream to macros
2014-03-11 22:17:31 -04:00
Marc-André Moreau
201bbf5df4
Merge branch 'master' of github.com:awakecoding/FreeRDP into mppc
2014-03-11 11:57:01 -04:00
Martin Haimberger
3808705652
WriteFile and ReadFile does not check for INVALID_HANDLE_VALUE
2014-03-11 06:34:41 -07:00
Marc-André Moreau
c686d434b7
libfreerdp-codec: initial RDP4/RDP5 MPPC compression test case success
2014-03-09 17:32:49 -04:00
Marc-André Moreau
3530b83291
libfreerdp-codec: add annotated MPPC compression samples
2014-03-09 14:35:11 -04:00
Marc-André Moreau
d9a2fb4ff9
libfreerdp-codec: start MPPC compressor
2014-03-08 17:38:47 -05:00
Marc-André Moreau
77e91aa762
libwinpr-crt: add byteswap macros
2014-03-06 12:48:48 -05:00
Marc-André Moreau
95127d5632
libfreerdp-codec: start testing MPPC against large buffer
2014-03-05 18:03:39 -05:00
Benoît LeBlanc
557c082458
Merge branch 'master' of git://github.com/awakecoding/FreeRDP
2014-03-05 16:35:22 -05:00
Marc-André Moreau
dbe7e7aae2
libwinpr-utils: move BitStream functions to macros
2014-03-05 13:08:11 -05:00
Marc-André Moreau
3ba1d1ff4e
libwinpr-utils: basic working UINT32-based bitstream implementation
2014-03-05 12:56:26 -05:00
Marc-André Moreau
3973775b69
libwinpr-utils: add MSB/LSB bit printing
2014-03-05 12:03:10 -05:00
Marc-André Moreau
2cd9649f37
libwinpr-utils: start new BitStream util
2014-03-04 18:15:03 -05:00
Marc-André Moreau
c484dc630c
libwinpr-crt: add proper unicode uppercasing
2014-03-03 21:26:13 -05:00
Marc-André Moreau
fb2428309c
mfreerdp: apply fixes from mac-audio branch
2014-03-03 16:57:43 -05:00
Marc-André Moreau
bb5c5dcaf0
libwinpr-wtsapi: start adding support for dynamically loaded FreeRDS-provided WTSAPI implementation
2014-03-01 00:32:23 -05:00
Marc-André Moreau
41236e87e3
winpr: fix calling convention declarations
2014-02-28 14:58:50 -05:00
Marc-André Moreau
6695873394
libwinpr-wtsapi: fix multiple inconsistencies with original wtsapi headers
2014-02-28 14:49:57 -05:00
Marc-André Moreau
e2c1713bcb
Merge branch 'master' of github.com:awakecoding/FreeRDP into channels
2014-02-28 12:22:23 -05:00
Marc-André Moreau
fde6a98580
winpr: fix conflict with SAL on OS X
2014-02-28 12:22:12 -05:00
Marc-André Moreau
315885c1eb
libwinpr-file: fix improper status code in overlapped i/o
2014-02-28 11:24:44 -05:00
Marc-André Moreau
419e2936be
Merge branch 'master' of github.com:awakecoding/FreeRDP into channels
2014-02-27 15:09:06 -05:00
Marc-André Moreau
951368a1ce
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-02-27 13:58:29 -05:00
Marc-André Moreau
25259b33b0
Merge branch 'channels' of github.com:awakecoding/FreeRDP into channels
2014-02-27 12:37:57 -05:00
Marc-André Moreau
02f6e12c5f
Merge branch 'master' of github.com:awakecoding/FreeRDP into channels
2014-02-27 12:37:23 -05:00
Marc-André Moreau
3d2397ffcc
winpr: fix SAL definition conflicts with X11 and libstdc++
2014-02-27 12:37:09 -05:00
Marc-André Moreau
922624f5b4
Merge branch 'master' of github.com:awakecoding/FreeRDP into channels
2014-02-27 12:14:18 -05:00
Marc-André Moreau
25ff5ccd69
libwinpr-locale: add stubs and definitions
2014-02-27 12:09:00 -05:00
Marc-André Moreau
019877da97
winpr: fix compilation on Windows
2014-02-26 13:35:49 -05:00
Marc-André Moreau
5a7cffe59c
winpr: expand specstrings and error definitions
2014-02-26 12:34:08 -05:00
Bernhard Miklautz
297247042d
winpr-env: fix in GetEnvironmentVariableEBA
...
* also fix cases where the provided env block is NULL
2014-02-20 18:29:16 +01:00
Marc-André Moreau
1697469ced
libwinpr-file: implement further AIO-based overlapped I/O
2014-02-17 13:02:39 -05:00
Marc-André Moreau
3989dc7c5e
Merge branch 'master' of github.com:awakecoding/FreeRDP into channels
2014-02-17 09:54:01 -05:00
Marc-André Moreau
a143a70114
libfreerdp-core: link against libwinpr-wtsapi, dynamically register proper WtsApi implementation in FreeRDS
2014-02-16 20:41:19 -05:00
Marc-André Moreau
1afeb448b4
libfreerdp-core: expose stubbed WtsApi function table from the core
2014-02-16 20:12:45 -05:00
Marc-André Moreau
cf274e3523
libwinpr-wtsapi: make use of static function table
2014-02-16 19:38:12 -05:00
Marc-André Moreau
74d054172c
libwinpr-wtsapi: define SSPI-like WTSAPI function table
2014-02-16 15:42:36 -05:00
Bernhard Miklautz
591a8192e0
winpr-env: fix in GetEnvironmentVariableEBA
...
GetEnvironmentVariableEBA didn't do exact matching of the requested variable name. If a variable
with similar but shorter name was set in the environment block it was returned.
For example if HOME was set in the environment block and HOMEX was requested the value of HOME was
returned.
2014-02-14 11:12:21 +01:00
Bernhard Miklautz
ee5814cbc2
winpr-env: extended GetSetEB ctest
...
Check if Get function only returns values for the exact variable name
2014-02-14 11:12:21 +01:00
Marc-André Moreau
22fbf48109
libwinpr-utils: add synchronized version of HashTable
2014-02-13 22:25:30 -05:00
Bernhard Miklautz
24c67267a3
winpr: add cwd support in CreateProcess*
2014-02-13 14:31:11 +01:00
Bernhard Miklautz
909800eca0
winpr: fixed problems Set/GetEnvironmentVariableEBA
...
* valgrind: fixed invalid read
* invalid or damaged environment blocked caused endless loop
* envblock created in SetEnvironmentVariableEBA lacked a trailing '\0'
which could lead to a damaged environment block
2014-02-13 14:31:11 +01:00
Marc-André Moreau
9668549fa4
Merge pull request #24 from MartinHaimberger/wlogimprovment
...
improved WLog
2014-02-12 06:54:20 -05:00
Marc-André Moreau
cdcd290c44
wfreerdp: fix most build warnings
2014-02-10 22:12:13 -05:00
Marc-André Moreau
5ff847a6e6
wfreerdp: fix multiple warnings
2014-02-10 01:06:11 -05:00
Marc-André Moreau
d64f86d52c
wfreerdp: fix 64-bit build
2014-02-10 00:34:17 -05:00
Marc-André Moreau
ad86d3c333
libwinpr-utils: add HashTable
2014-02-09 21:55:21 -05:00
Hardening
569ca5b62e
Fix the behaviour ReadFile() and WriteFile() in non-blocking mode
...
These functions were not returning the correct values when treating
non-blocking file descriptor.
2014-02-07 15:19:46 +01:00
Hardening
13fc57fa86
Fix GetEventFileDescriptor() with server NamedPipe
...
The GetEventFileDescriptor() function was not returning the correct
file descriptor with the server HANDLE.
2014-02-07 15:18:17 +01:00
Hardening
0129875bf2
Print human readable messages
...
Log why the pipe creation failed helps
2014-02-07 15:17:05 +01:00
Hardening
600047df4f
Fix LinkedList_Remove
...
The previous version was setting to NULL both tail and head when
removing the head or tail item. That was corrupting the list.
2014-02-07 14:30:38 +01:00
Benoît LeBlanc
53f2b8511d
Merge branch 'master' of git://github.com/awakecoding/FreeRDP
2014-02-06 12:13:39 -05:00
Marc-André Moreau
7f49c7302d
libwinpr-winsock: stub more of winsock
2014-02-05 16:25:55 -05:00
Marc-André Moreau
c799db6855
libwinpr-synch: fix linker error
2014-02-05 13:09:25 -05:00
Marc-André Moreau
e8a9b7ff14
libfreerdp-core: fix ignored port settings for TS Gateway and vmconnect
2014-02-05 11:54:42 -05:00
Benoît LeBlanc
9d929469d2
Merge branch 'master' of git://github.com/awakecoding/FreeRDP
...
# By Marc-André Moreau (27) and others
# Via Marc-André Moreau
* 'master' of git://github.com/awakecoding/FreeRDP: (48 commits)
afreerdp: fix build on Android
libwinpr-wtsapi: include wtsapi32.h on Windows
wfreerdp: fix target exporting
wfreerdp: fix building against OpenSSL with MONOLITHIC_BUILD and shared libraries
wfreerdp: fix test build issues
libwinpr-crypto: implement CryptProtectMemory/CryptUnprotectMemory
libwinpr-memory: add missing definitions
libwinpr-memory: start stubbing
Increased size of stream on GCC conference create request from 512 to 1024. For large numbers of static virtual channels, the stream was being overflowed and was causing crashes.
Fixes to process new command line options (autodetect, heartbeat, multitransport), join the MCS message channel and process auto-detect PDUs during the connection sequence.
wfreerdp: fix build against static openssl library
winpr-hash: fix building against openssl in static mode
libfreerdp-gdi: fix invalidation of region with line drawing
mfreerdp: fix hungarian keyboard '0' and 'i' key inversion
Fixes build issue on Windows
libwinpr-synch: add active/inactive linked list for timer queue
libwinpr-synch: improve timer queue implementation
libwinpr-synch: make use of head's expiration time in timer queue
libwinpr-synch: make use of timespec for timer queue
libwinpr-synch: improve timer queue implementation
...
Conflicts:
client/common/CMakeLists.txt
2014-02-04 11:37:40 -05:00
Benoît LeBlanc
04734d8f37
ts_add_ms: replaced while() that could result in infinite lock
2014-02-04 11:35:16 -05:00
Marc-André Moreau
fab61ba946
afreerdp: fix build on Android
2014-02-03 16:03:43 -05:00
Marc-André Moreau
7c7aa192ec
libwinpr-wtsapi: include wtsapi32.h on Windows
2014-02-03 00:56:16 -05:00
Marc-André Moreau
17665378a9
wfreerdp: fix target exporting
2014-02-02 22:37:54 -05:00
Marc-André Moreau
b5bef07e50
wfreerdp: fix building against OpenSSL with MONOLITHIC_BUILD and shared libraries
2014-02-01 19:53:45 -05:00
Marc-André Moreau
9bdfbcd556
wfreerdp: fix test build issues
2014-02-01 12:50:28 -05:00
Marc-André Moreau
851ace73ff
libwinpr-crypto: implement CryptProtectMemory/CryptUnprotectMemory
2014-02-01 11:52:04 -05:00
Marc-André Moreau
6365880f4d
libwinpr-memory: add missing definitions
2014-01-31 20:48:31 -05:00
Marc-André Moreau
80449cd2c5
libwinpr-memory: start stubbing
2014-01-31 18:27:58 -05:00
Marc-André Moreau
839bcb42ae
wfreerdp: fix build against static openssl library
2014-01-29 15:27:43 -05:00
Marc-André Moreau
ae2a51fdc5
Merge branch 'master' of https://github.com/FreeRDP/FreeRDP
2014-01-28 22:58:18 -05:00
Marc-André Moreau
c73c558d1f
winpr-hash: fix building against openssl in static mode
2014-01-28 22:41:11 -05:00
Alessandro Pilotti
9d6dcab3c6
Fixes build issue on Windows
...
Solves the following build issue:
error C2373: 'InitializeCriticalSectionEx' : redefinition;
different type modifiers
2014-01-28 01:09:14 +02:00
Marc-André Moreau
eb38b9f1e1
libwinpr-synch: add active/inactive linked list for timer queue
2014-01-27 10:37:38 -05:00
Marc-André Moreau
159f539ef2
libwinpr-synch: improve timer queue implementation
2014-01-26 21:56:07 -05:00
Marc-André Moreau
1f394eb81d
libwinpr-synch: make use of head's expiration time in timer queue
2014-01-26 20:49:48 -05:00
Marc-André Moreau
3616b19290
libwinpr-synch: make use of timespec for timer queue
2014-01-26 20:39:13 -05:00
Marc-André Moreau
2e45ad143f
libwinpr-synch: improve timer queue implementation
2014-01-26 17:21:12 -05:00
Marc-André Moreau
656766ca2e
libwinpr-synch: start implementing timer queue
2014-01-26 12:37:38 -05:00
Marc-André Moreau
d5fcd78b65
libwinpr-synch: fix build on OS X
2014-01-26 00:06:27 -05:00
Marc-André Moreau
3782c2ad72
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-01-25 16:34:34 -05:00
Marc-André Moreau
d2405a25f8
libwinpr-synch: initial waitable timer asynchronous procedure callback support
2014-01-24 22:44:23 -05:00
Marc-André Moreau
9a4fb396da
libwinpr-synch: add unit test for waitable timer asynchronous procedure calls
2014-01-24 18:08:06 -05:00
Marc-André Moreau
fab0cd2779
libwinpr-synch: stub timer queues
2014-01-24 17:48:55 -05:00
Marc-André Moreau
21a259927a
libwinpr-sspi: fix encoding of server-side NTLM challenge message
2014-01-24 13:02:45 -05:00
Martin Haimberger
24ee273540
fixed compiler warning
2014-01-15 06:15:18 -08:00
Martin Haimberger
65d7e17d4c
improved WLog
...
childlogger use per default now a WLOG_LEVEL_INHERIT level
so the loglevel is taken from the first parent which has another level set.
2014-01-15 05:52:48 -08:00
Daryl Poe
9897f72b97
add additional evdev key mappings for multimedia and Korean keyboards
2014-01-14 15:18:20 -07:00
Hardening
19fb713b83
Handle EINTR nicely
...
When we caught an EINTR during a select we should retry instead of returning an error
2014-01-07 16:36:41 +01:00
Marc-André Moreau
9c1dca14f7
libwinpr-input: minor code style cleanup
2013-12-18 22:53:34 -05:00
Marc-André Moreau
05947dd0b2
libfreerdp-core: fix linux build
2013-12-18 22:02:59 -05:00
Benoît LeBlanc
043b834ac2
Fixed WaitForSingleObject and WaitForMultipleObjects (timeouts incorrectly sets). Added detailed error reporting, better timeout error handling.
2013-12-17 18:21:12 -05:00
Benoît LeBlanc
f4a0216c76
Fixed WaitForSingleObject and WaitForMultipleObjects (timeouts incorrectly sets). Added detailed error reporting, better timeout error handling.
2013-12-17 18:20:33 -05:00
Marc-André Moreau
652dbfd50d
libwinpr-sspi: fix NTLM TargetName bug
2013-12-17 11:51:13 -05:00
Marc-André Moreau
62199fc46a
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2013-12-10 11:54:03 -05:00
Marc-André Moreau
f963491ebe
libfreerdp-client: cleanup .rdp file parsing
2013-12-05 12:35:31 -05:00
Marc-André Moreau
84137cb76d
libwinpr-utils: create wlog output directory
2013-12-04 23:46:58 -05:00
Bernhard Miklautz
2b6b4a6685
updated file headers
2013-12-04 11:44:22 +01:00
Marc-André Moreau
cea8c08328
ifreerdp: fix iOS/OSX platform detection
2013-12-03 15:19:58 -05:00
Marc-André Moreau
ea9511fb0d
Merge branch 'master' of github.com:awakecoding/FreeRDP
2013-12-03 00:52:36 -05:00
Marc-André Moreau
d5f18e88cc
libwinpr-environment: fix usage of environ on OS X
2013-12-03 00:52:02 -05:00
Marc-André Moreau
d9e1c0abaa
libfreerdp-codec: add more planar unit tests
2013-11-29 02:16:16 -05:00
Marc-André Moreau
83ad1730b8
Merge branch 'master' of github.com:FreeRDP/FreeRDP
...
Conflicts:
libfreerdp/core/input.c
libfreerdp/core/update.c
2013-11-23 16:39:29 -05:00
Bernhard Miklautz
204842561b
winpr-thread: fixed bugs in _CreateProcessExA
...
* don't run fork/exec if the command isn't found
* return from forked process with exit
2013-11-21 20:06:21 +01:00
Benoît LeBlanc
13322f5ba2
Removed warning
2013-11-18 11:59:53 -05:00
Benoît LeBlanc
184ee149f6
Merge branch 'master' of git://github.com/awakecoding/FreeRDP
2013-11-18 11:34:32 -05:00
Benoît LeBlanc
6e581daebb
Removed compilation warning
2013-11-18 11:34:24 -05:00
Marc-André Moreau
ea18d2b740
Merge pull request #1597 from bmiklautz/tests
...
Fixed failing tests
2013-11-15 08:22:05 -08:00
Marc-André Moreau
fa64ca758d
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2013-11-15 10:50:30 -05:00
Bernhard Miklautz
a56e3f259b
winpr: disabled schannel test
...
not practicable for now since it requires local key setup
2013-11-15 16:19:49 +01:00
Bernhard Miklautz
916f2d2dbf
winpr: fixed build warnings
...
* moved pthread_tryjoin_np to toplevel CMakeLists.txt
* removed duplicated -DHAVE_PTHREAD_GNU_EXT
2013-11-15 16:04:04 +01:00
Marc-André Moreau
a6af3f5c0a
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2013-11-15 09:38:29 -05:00
Armin Novak
fbc1acd70e
Fixed includes and test function naming.
2013-11-15 11:43:01 +01:00
Armin Novak
5dbd94e2a3
Added unit tests for thread and mutex.
2013-11-15 11:38:59 +01:00
Armin Novak
efd2d833c2
Extended test, now also checks, if lock / unlock is working.
2013-11-15 08:38:59 +01:00
Armin Novak
e17a4d1f26
Using CLOCK_MONOTONIC instead of CLOCK_REALTIME now.
...
Fixed timeout comparison for systems missing GNU posix extensions.
2013-11-14 13:48:20 +01:00
Armin Novak
719c1a27d6
Fixed broken timed wait for thread and mutex objects in WaitForSingleObject.
2013-11-14 09:34:16 +01:00
Marc-André Moreau
b0b8b6aa9e
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2013-11-12 12:59:41 -05:00
Marc-André Moreau
b1bcbea483
Merge pull request #1588 from akallabeth/message_queue_clear
...
Message queue clear
2013-11-12 09:59:38 -08:00
Armin Novak
4a1e9d2e4e
Using new API for message queue.
2013-11-12 15:18:45 +01:00
Armin Novak
638d26569f
Updated MessagePipe to new MessageQueue API.
2013-11-12 15:11:39 +01:00
Armin Novak
09d219b8d6
Added <MessageQueue_Clear> and custom handler argument to
...
<MessageQueue_New>.
2013-11-12 15:10:41 +01:00
Armin Novak
25e7682e02
Added <MessagePipe_Clear> and argument for custom handlers to
...
<MessagePipe_New>.
2013-11-12 15:10:08 +01:00
Marc-André Moreau
f17a36f84c
libwinpr-library: port GetModuleFileName to Mac OS X
2013-11-11 17:25:59 -05:00
Marc-André Moreau
226cad3e03
winpr: improve winpr.pc generation
2013-11-10 17:54:41 -05:00
Marc-André Moreau
fb23f08388
libfreerdp-client: fix possible infinite loop with .rdp file parsing containing freerdp options
2013-11-10 13:29:20 -05:00
Marc-André Moreau
4898868e9d
libwinpr-path: extend custom portability functions
2013-11-09 23:38:22 -05:00
Marc-André Moreau
0e662a060e
freerdp: improve pkgconfig .pc file generation
2013-11-09 17:51:09 -05:00
Marc-André Moreau
70aed3fa85
libfreerdp-core: minor style cleanup
2013-11-08 13:57:41 -05:00
Armin Novak
b34c2d0e1d
Removed unneccessary include <spawn.h>, which broke the build.
2013-11-08 10:27:57 +01:00
Marc-André Moreau
5536033a8a
libfreerdp-core: transport refactoring
2013-11-07 17:37:58 -05:00
Marc-André Moreau
61f95fbe16
libfreerdp-core: transport code style cleanup
2013-11-07 15:14:59 -05:00
Marc-André Moreau
7fa5ab7ced
Merge branch 'master' of github.com:mrthebunny/FreeRDP
2013-11-07 13:58:33 -05:00
Marc-André Moreau
8cbb7f42da
libwinpr-library: add GetModuleFileName implementation for Linux
2013-11-07 13:57:05 -05:00
Benoît LeBlanc
dfd39b6d0a
Fixed macro declaration
2013-11-07 13:55:06 -05:00
Benoît LeBlanc
c4dea17af3
added _scprintf macro to winpr because snprintf does not count characters on Windows.
...
Modified write_rdp_file_ macros for windows compatibility
2013-11-07 13:44:18 -05:00
Marc-André Moreau
3c44ff9c83
channels/rdpsnd: fix bug in rdpsnd and rdpdr deinitialization
2013-11-06 14:31:33 -05:00
Marc-André Moreau
33a9694b45
Merge pull request #15 from MartinHaimberger/WLOGIMPROVEMENT
...
improved wlog
2013-11-06 10:56:30 -08:00
Marc-André Moreau
b174dd9199
Merge pull request #16 from bmiklautz/process
...
Process
2013-11-06 10:55:55 -08:00
Marc-André Moreau
b8a1f7d6c0
freerdp: implement restricted admin mode pass-the-hash option
2013-11-06 10:02:58 -05:00
Marc-André Moreau
f38c73b6c1
libwinpr-security: fix exporting of target
2013-11-05 19:44:26 -05:00
Marc-André Moreau
1dbf279212
channels/smartcard: refactor usage of lists and get rid of workarounds
2013-11-03 20:46:40 -05:00
Marc-André Moreau
cc301348df
libwinpr-crt: added SecureZeroMemory
2013-11-01 18:32:36 -04:00
Marc-André Moreau
fd8355d47a
libwinpr-io: add missing link dependency to libwinpr-nt
2013-10-31 17:19:46 -04:00
Marc-André Moreau
5a5733eb83
Merge branch 'master' of github.com:awakecoding/FreeRDP
2013-10-31 11:02:40 -04:00
Marc-André Moreau
8a64934c7b
libwinpr-io: start device file implementation
2013-10-31 11:02:25 -04:00
Bernhard Miklautz
9f42b41f4e
winpr/thread: use _strdup instead of strdup
2013-10-31 10:43:59 +01:00
Bernhard Miklautz
e51b9b0c03
winpr-thread: fixed issue with commands starting with /
2013-10-31 10:19:55 +01:00
Marc-André Moreau
938d423ec9
freerdp: fix build on Windows
2013-10-30 17:56:44 -04:00
Marc-André Moreau
3b0bcc9824
cmake: export to different directory, export more build info
2013-10-29 15:16:44 -04:00
Marc-André Moreau
37450da55d
cmake: fix exporting of targets on pre-2.8.11
2013-10-29 14:47:40 -04:00
Marc-André Moreau
55565e056c
freerdp: export targets
2013-10-28 23:06:39 -04:00
Marc-André Moreau
c0a1c259f3
freerdp: start exporting targets automatically
2013-10-28 22:09:31 -04:00
Marc-André Moreau
7e58dfd22b
winpr: fix wlog function prototypes
2013-10-28 18:21:14 -04:00
Marc-André Moreau
89d45690c6
libwinpr-synch: don't use timed waits on OS X until they are properly ported
2013-10-25 10:48:37 -04:00
Marc-André Moreau
723e423799
libwinpr-synch: fix build on Mac OS X
2013-10-25 10:03:57 -04:00
Martin Haimberger
ad7be5a4ee
improved wlog so new logger inhertit the loglevel
...
of the root logger
2013-10-25 05:41:01 -07:00
Marc-André Moreau
deff2217b8
Merge pull request #14 from MartinHaimberger/VOIDFix
...
WINPR Void Fix
2013-10-24 11:04:36 -07:00
Marc-André Moreau
fb4ac3b5dd
Merge pull request #13 from MartinHaimberger/EnvMerge
...
added merge function for environmentblocks
2013-10-24 11:04:09 -07:00
Martin Haimberger
b2ca632f79
WINPR Void Fix
...
c++ only allows only void to define empty parameter list
typedef defines a new type therfore its not valid in c++
2013-10-24 06:39:09 -07:00
Marc-André Moreau
5fb65101e9
libwinpr-nt: make test successfully call NtCreateFile on Windows
2013-10-23 19:32:32 -04:00
Marc-André Moreau
e2fe00fd37
libwinpr-nt: load and make use of original Rtl* functions on Windows
2013-10-23 18:57:41 -04:00
Marc-André Moreau
1de70aa064
libwinpr-nt: dynamically load original NtCreateFile functions on Windows, extend tests
2013-10-23 18:15:10 -04:00
Marc-André Moreau
d30f66b1b7
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2013-10-23 14:18:40 -04:00
Martin Haimberger
8479462b5e
changed the interface of SetEnvironmentVariableEBA
2013-10-23 03:43:06 -07:00
Armin Novak
2ba55a48f8
Added missing variable declaration.
2013-10-23 12:25:04 +02:00
Armin Novak
17a024dcd1
Returing WAIT_TIMEOUT for MUTEX objects now too.
2013-10-23 12:16:23 +02:00
Armin Novak
c1051fe4c6
Always including <errno.h> now.
2013-10-23 12:13:53 +02:00
Armin Novak
7704788474
Implemented fallback functions for pthread_timedjoin_np and
...
pthread_mutex_timedlock functions for systems without PTHREAD_GNU_EXT
Now returning WAIT_TIMEOUT if the operation timed out.
2013-10-23 12:09:09 +02:00
Martin Haimberger
fdacd898f5
MergeEnvironmentStrings works also for a null original env
2013-10-23 03:00:22 -07:00
Martin Haimberger
97ef519a54
added Set/GetEnvironmentVariableEBA
...
did some bugfixing within the MergeEnvironmentVariable
added Tests
2013-10-23 02:27:31 -07:00
Martin Haimberger
87ce6f28cf
added merge function for environmentblocks
2013-10-23 00:58:33 -07:00
Marc-André Moreau
9c536cfe01
libwinpr-wtsapi: fix build after changes to libwinpr-nt
2013-10-22 21:43:59 -04:00
Marc-André Moreau
ebc096f2b2
libwinpr-nt: fix conflict for NtCreateFile on Windows
2013-10-22 21:38:16 -04:00
Marc-André Moreau
888812eaa0
libwinpr-nt: stub more of the native file API
2013-10-22 20:47:29 -04:00
Marc-André Moreau
8609a19cac
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2013-10-17 17:34:16 -04:00
Marc-André Moreau
d2d1226292
Merge pull request #1537 from bmiklautz/windowsbuild
...
Windows build fixes
2013-10-17 14:31:27 -07:00
Marc-André Moreau
0417e552cf
libwinpr-utils: fix bug in ListDictionary
2013-10-17 17:27:47 -04:00
Marc-André Moreau
490f18a7aa
channels/rdpdr: don't use deprecated LIST util, use ListDictionary for faster lookups
2013-10-17 16:30:36 -04:00
Marc-André Moreau
0276b095eb
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2013-10-17 13:08:30 -04:00
Marc-André Moreau
dfcab616f8
Merge pull request #12 from bmiklautz/listdict
...
Improvements and new function for ListDictionary
2013-10-15 08:02:42 -07:00
Bernhard Miklautz
7c61b16da5
ListDictionary: added Remove_Head function
...
ListDictionary_Remove_Head removed the first object from the dictionary
and returns it's value.
2013-10-15 16:15:44 +02:00
Bernhard Miklautz
95bed71dbc
ListDictionary: support for wObject added
2013-10-15 15:51:53 +02:00
Bernhard Miklautz
86e53aed9a
ListDictionary_Remove: return value if removed
...
Update tests accordingly.
2013-10-15 15:49:57 +02:00
Bernhard Miklautz
96e267fcdf
winpr-file: fixed memory leak in error case
2013-10-15 13:22:34 +02:00
Bernhard Miklautz
d2790d92c8
winpr-handle: fixed compiler warning
2013-10-15 13:22:01 +02:00
Bernhard Miklautz
bab5c22f9e
winpr-pipe: fixed memory leak in WaitNamedPipeA
2013-10-15 13:09:13 +02:00
Bernhard Miklautz
0cc918a1d5
winpr-handle: fixed mem leak when closing named pipes
2013-10-15 13:03:30 +02:00
Marc-André Moreau
b70ecbbf62
libfreerdp-core: decouple initialization of rdpSettings from freerdp* instance
2013-10-12 18:20:25 -04:00
Norbert Federa
6f9a8dbc1e
winpr: greatly improved NtCurrentTeb performance
...
Use pthread_setspecific/pthread_getspecific to store/retrieve the thread
environment block (TEB). Use pthread_once to trigger the creation of that
data from within NtCurrentTeb.
This allows us to get rid of the process environment block stuff which
was only used to provide serialized access to a thread table in order to
retrieve the TEB.
NtCurrentTeb is currently only as a per-thread storage location for the
last error value used by SetLastError and GetLastError.
Also made the TestErrorSetLastError CTest a bit more demanding.
It makes sure the 4 threads run for at least 2 seconds.
Each thread constantly calls SetLastError with a random value and checks
if GetLastError returns the same value again. The total amount of
these iterations is calculated in order to measure the performance.
This change increases the NtCurrentTeb performance by roughly 50% on
linux and by several thousand percent (yes) on Mac OS X.
Thanks for watching.
2013-10-11 19:34:23 +02:00
Marc-André Moreau
7dd95b9587
libwinpr-crypto: improve Schannel unit test
2013-10-11 04:01:07 -04:00
Marc-André Moreau
3d7d4c50db
libwinpr-utils: fix IPv4 checksum and TCP sequence numbers with wlog packet messages
2013-10-09 16:37:45 -04:00
Marc-André Moreau
90b90ad496
libwinpr-utils: improve quality of data for reconstructed IP headers
2013-10-09 15:11:56 -04:00
Marc-André Moreau
7bdb63ad89
libwinpr-utils: initial wlog packet header reconstruction
2013-10-09 14:23:38 -04:00
Marc-André Moreau
166e3fbf2d
libwinpr-utils: start reconstructing IP headers for wlog packet message
2013-10-09 13:37:53 -04:00
Marc-André Moreau
a3f0f4c8dc
libfreerdp-core: started logging packets to pcap file
2013-10-08 23:43:57 -04:00
Marc-André Moreau
684db03578
libwinpr-utils: start implement wlog packet appender
2013-10-08 23:18:59 -04:00
Marc-André Moreau
07afc88878
libwinpr-utils: add some configurability to wlog with environment variables
2013-10-08 22:35:14 -04:00
Marc-André Moreau
a87e7deac4
libwinpr-utils: fix wlog build warnings
2013-10-08 19:39:03 -04:00
Marc-André Moreau
c96207fd69
Merge pull request #10 from MartinHaimberger/fixLogWarnings
...
fixed warining fo not constant log format string
2013-10-08 15:54:32 -07:00
Marc-André Moreau
85e6729854
Merge pull request #9 from hardening/awakecoding
...
Fix function prototype
2013-10-08 15:54:21 -07:00
Marc-André Moreau
1ee2fa73cf
Merge pull request #8 from MartinHaimberger/wlogfix
...
fixed memory leak in wlog
2013-10-08 15:54:09 -07:00
Marc-André Moreau
353816e050
Merge pull request #6 from MartinHaimberger/loglevel
...
Loglevel
2013-10-08 15:53:54 -07:00
Marc-André Moreau
fdae43aafc
mfreerdp: fix keyboard mapping for toggle keys
2013-10-07 16:43:23 -04:00
Bernhard Miklautz
57d295441f
windows build: use different .def file for xp
...
Use different def file for windows < 5.1.
2013-10-07 15:03:50 +02:00
Martin Haimberger
7d35c1adaf
fixed warining fo not constant log format string
2013-10-07 02:20:01 -07:00
Bernhard Miklautz
e6f3cd7dff
build: link winpr-synch against winpr-sysinfo
2013-10-05 14:09:04 +02:00
Hardening
c37c86601d
Fix function prototype
...
This patch fixes the prototypes with warnings enabled.
2013-10-04 23:07:31 +02:00
Marc-André Moreau
97447420c9
Merge branch 'master' of github.com:awakecoding/FreeRDP
2013-10-04 11:34:00 -04:00
Marc-André Moreau
e37981e57c
libwinpr-utils: improved binary appender
2013-10-04 11:33:49 -04:00
Martin Haimberger
fea6d83367
fixed memory leak in wlog
2013-10-04 03:51:10 -07:00
Martin Haimberger
5e073f5f17
loglevel filtering fix
2013-10-03 06:32:12 -07:00
Martin Haimberger
02487da987
added c++ declaration in wlog
2013-10-03 05:07:37 -07:00
Marc-André Moreau
aaeb4ea0b2
libwinpr-utils: add wlog support for image and binary data
2013-10-02 15:41:46 -04:00
Marc-André Moreau
0569de167d
libwinpr-utils: further split wlog framework into more source files, add some thread safety for write operations
2013-10-02 13:38:21 -04:00
Bernhard Miklautz
5c3ce890b1
winpr-thread: close fds before exec new process
...
Close all open file handles, except stdion/stdout/stderr before executing a new process
to make sure that no file descriptors leak or kept open.
2013-10-02 17:21:56 +02:00
Marc-André Moreau
3fb2724536
libwinpr-utils: fix default WLog behaviour
2013-10-01 20:45:20 -04:00
Marc-André Moreau
2684b829d0
libwinpr-utils: add simple parent/child hierarchy
2013-10-01 18:19:50 -04:00
Marc-André Moreau
0b29f72cc4
libwinpr-utils: added default file output path for wlog
2013-10-01 16:50:47 -04:00
Marc-André Moreau
a374525e6a
libwinpr-utils: split wlog framework
2013-10-01 16:08:26 -04:00
Marc-André Moreau
8695c5226b
libwinpr-file: added more error checking
2013-10-01 12:03:08 -04:00
Marc-André Moreau
480071cdeb
libwinpr-io: improve overlapped io with server-side named pipes
2013-09-25 23:16:33 -04:00
Marc-André Moreau
f4e98f29ec
libwinpr-pipe: add server-side named pipe waiting
2013-09-25 19:13:39 -04:00
Marc-André Moreau
8c72211eea
libwinpr-thread: fix link libraries
2013-09-25 16:38:41 -04:00
Marc-André Moreau
b3b6ee57f0
libwinpr-thread: add missing link dependencies for tests
2013-09-25 16:26:54 -04:00
Marc-André Moreau
7ec19ac0f2
libwinpr-thread: fix build on Windows
2013-09-25 15:47:18 -04:00
Marc-André Moreau
f6ee26f15a
winpr: fix noreturn warnings
2013-09-24 14:35:03 -04:00
Marc-André Moreau
9a124a1d60
libwinpr-thread: initial CreateProcessAsUser implementation
2013-09-24 13:08:29 -04:00
Marc-André Moreau
f363b93819
libwinpr-process: add searching of system path
2013-09-24 11:03:42 -04:00
Marc-André Moreau
4a77f12b32
libwinpr-security: expand stubs
2013-09-24 00:07:48 -04:00
Marc-André Moreau
0506bd1ac6
libwinpr-security: initial stub module
2013-09-23 22:39:28 -04:00
Marc-André Moreau
979ed1b756
libwinpr-pipe: implement WaitNamedPipe
2013-09-23 18:10:21 -04:00
Marc-André Moreau
3d2754e8ed
libwinpr-environment: implement required functions for CreateProcess
2013-09-23 14:44:59 -04:00
Marc-André Moreau
8d142eb85f
libwinpr-thread: initial CreateProcess() implementation
2013-09-22 17:23:00 -04:00
Marc-André Moreau
bb9db97204
libwinpr-thread: improve CommandLineToArgv completeness
2013-09-21 20:05:14 -04:00
Marc-André Moreau
83e124f909
libwinpr-thread: partial support for character escaping in CommandLineToArgv
2013-09-21 19:49:00 -04:00
Marc-André Moreau
56672023db
libwinpr-thread: start implementing CommandLineToArgv
2013-09-21 17:16:49 -04:00
Marc-André Moreau
e841e6068b
winpr: fix inclusion of winternl.h
2013-09-20 14:39:31 -04:00
Marc-André Moreau
b9a3ff3c85
winpr: fix build on Linux
2013-09-19 15:47:54 -04:00
Marc-André Moreau
e8a8c1cf7f
winpr: fix crashing tests
2013-09-19 14:17:00 -04:00
Marc-André Moreau
0c17eb1a23
winpr: fix unit tests on Windows
2013-09-19 13:50:00 -04:00
Marc-André Moreau
929d292f35
wfreerdp: fix compilation
2013-09-19 12:08:20 -04:00
Marc-André Moreau
10f1a898ef
libfreerdp-client: fix command-line parsing with .rdp file
2013-09-17 17:03:35 -04:00
Marc-André Moreau
c0ba0fb337
libwinpr-utils: fix BufferPool test
2013-09-16 17:59:29 -04:00
Marc-André Moreau
8f1aceac6a
libwinpr-nt: add missing link dependency
2013-09-16 17:49:16 -04:00
Marc-André Moreau
8a6b545a36
libwinpr-print: add missing include headers
2013-09-16 17:43:24 -04:00
Marc-André Moreau
518995a05e
freerdp: merge with master
2013-09-16 17:10:27 -04:00
Marc-André Moreau
3b7994a9a6
Merge pull request #1467 from akallabeth/cmdline_enhanced
...
Cmdline enhanced
2013-09-16 13:33:04 -07:00
Marc-André Moreau
22ce171261
libwinpr-utils: added custom prefix formatter in logger
2013-09-16 16:30:49 -04:00
Marc-André Moreau
5386d5cd60
libwinpr-utils: make use of logMessage structure and macro for logging
2013-09-16 13:24:50 -04:00
Marc-André Moreau
a4c8d97b4c
libwinpr-utils: start implementing FileAppender
2013-09-16 12:56:22 -04:00
Marc-André Moreau
af1ea7573c
libwinpr-utils: start implementing ConsoleAppender
2013-09-16 12:05:08 -04:00
Bernhard Miklautz
1b304321ef
winpr/registry: Fixed double free
...
fixes #1479
2013-09-16 17:23:26 +02:00
Marc-André Moreau
968ef14349
libwinpr-utils: introduce trace levels
2013-09-15 16:48:09 -04:00
Marc-André Moreau
6a8b5f2283
libwinpr-utils: start implementing WinPR logger
2013-09-15 15:46:02 -04:00
Marc-André Moreau
4fbebba528
libwinpr-wait: add support for waiting on named pipes (non-standard)
2013-09-11 19:00:32 -04:00
Marc-André Moreau
22855c933b
Merge branch 'xrdp-ng' of github.com:awakecoding/FreeRDP into xrdp-ng
2013-09-10 17:53:28 -04:00
Marc-André Moreau
7574e7bfc9
Merge branch 'master' of github.com:awakecoding/FreeRDP into xrdp-ng
2013-09-10 17:02:36 -04:00
Marc-André Moreau
4a4a36d5c4
cmake: remove vendor-specific options
2013-09-10 14:03:15 -04:00
Bernhard Miklautz
8c796e9afc
winpr/synch: link against librt
2013-09-10 10:38:23 +02:00
Armin Novak
21127ec33b
Added a new flag to indicate the presence of a single not escaped argument
...
allowing the legacy command line <server>:<port> syntax.
2013-09-10 10:29:45 +02:00
Armin Novak
a7a7bab619
Fixed optional argument parsing.
2013-09-09 17:21:15 +02:00
Armin Novak
4274b266c0
Fixed command line parser, now printing help, if an invalid option is detected.
2013-09-09 16:07:14 +02:00
Marc-André Moreau
f790831e7d
Merge branch 'master' of github.com:awakecoding/FreeRDP into xrdp-ng
2013-09-05 15:23:19 -04:00
Armin Novak
07139276b5
Added newlines at end of file, prevents clang from crashing...
2013-09-05 12:14:35 +02:00
Armin Novak
cf20efb4c6
Simplified code for FindFirstFileA, now always using FindClose
...
for cleanup.
2013-09-05 12:14:35 +02:00
Armin Novak
62356e667c
Fixed erroneous patch.
2013-09-05 12:14:34 +02:00
Armin Novak
4331fa1f8b
Fixed invalid API usage, ...
2013-09-05 12:14:34 +02:00
Armin Novak
e5c138a5b9
Fixed various memory leaks, allocation size issues and API misuse
...
warnings shown by clang as well as some compiler warnings.
2013-09-05 12:14:34 +02:00
Armin Novak
2a7ab454ba
Fixed static library compilation, using -fPIC now to allow linking
...
to dynamic lib.
2013-09-05 12:14:34 +02:00
Armin Novak
a3b531c036
Fixed issues found with clang-analyzer
2013-09-05 12:14:33 +02:00
Armin Novak
62330ca669
Fixed variable mixup.
2013-09-05 12:14:33 +02:00
Armin Novak
1e2455fa4a
Fixed various memory leaks and compiler warnings.
2013-09-05 12:14:33 +02:00
Armin Novak
a355093219
Fixed coverity issue 1047645
2013-09-05 12:14:33 +02:00
Armin Novak
96285eec58
Fixed coverity issue 1047647
2013-09-05 12:14:33 +02:00
Armin Novak
d519bc3115
Fixed coverity issue 1047592
2013-09-05 12:14:33 +02:00
Armin Novak
629ac4ad28
Fixed coverity issue 1047588
2013-09-05 12:14:33 +02:00
Armin Novak
87a9a24ef2
Fixed coverity issue 1047593
2013-09-05 12:14:33 +02:00
Armin Novak
020bae25d7
Fixed coverity issue 1047594
2013-09-05 12:14:32 +02:00