akallabeth
1319c08bba
Cleaned up use of rdpSettings in channels
2022-03-28 15:52:32 +02:00
Armin Novak
e5b50c550b
Use GetComputerName instead of gethostname
2022-03-22 10:59:58 +01:00
Armin Novak
4d03d7c0bf
Freerdp remove #ifdef HAVE_CONFIG_H
2022-03-03 11:26:48 +01:00
Armin Novak
b2ad47a809
Reorganized FreeRDP headers
2022-03-03 11:26:48 +01:00
akallabeth
8cc6582044
Unify struct definitions ( #7633 )
...
* Unified enum/struct definitions, fixed include issues
* Fixed mac compilation issues
* Added missing include
* Fixed windows server build warnings
* Fixed VS2010 build issue
* Removed unnecessary library linking
* Fixed ThreadPool WinXP compatibility
* Fixed pr review remarks
2022-02-14 14:59:22 +01:00
akallabeth
7dedfbb0b0
Added support for getpwuid_r, replaced duplicate code
...
* Use GetUserNameExA to get current user name when required.
* Add support for getpwuid_r if available
2022-01-25 15:33:04 +01:00
james
2d4850de66
Fix hotplug
2022-01-25 08:49:46 +01:00
Armin Novak
3c72cc3306
Refactored rdpdr and dependent channels
...
* Move parsing code to core library
* Move definitions to public API to allow access from outside
* Move smartcard related parsing to core library
2022-01-11 12:34:43 +01:00
Armin Novak
b598a7b2a3
Remove failed redirected device from list
2021-12-14 13:46:34 +01:00
Armin Novak
223da39eac
Updated RDPDR version checks
2021-12-14 13:46:34 +01:00
Alexandru Bagu
a8cc80851f
fixes argument order for rdpdr_load_drive
2021-10-22 09:31:25 +02:00
Armin Novak
6e410e6dd4
Fixed broken message queue free function
2021-10-18 12:49:38 +02:00
Armin Novak
7d80c74e97
Cleaned up RDPDR channel interhitance
...
* All channels inheriting from RDPDR_DRIVE base struct
* Add functions to create/free a new device of a type
* Fixed settings array resize code, prevent 0 sizes
2021-10-18 09:21:02 +02:00
akallabeth
e0a531f728
Channel fixes ( #7309 )
...
* Added missing CHANNEL_NAME defines.
* Fixed FreeRDP_ChannelDefArray setter
* Fixed code duplication due to merge error
* Added public function freerdp_channels_from_mcs
* Fixed const correctness in mcs
2021-09-22 14:27:21 +02:00
akallabeth
a3a935283b
Fixed invalid read in rdpdr
2021-09-20 10:59:59 +02:00
Armin Novak
0fe1e2359e
Fixed all reserved-id-macro warnings
2021-09-10 08:16:25 +02:00
Armin Novak
95ecc6929a
Refactored channel error handling
...
* Fix WINPR_ASSERT if a client can not allocate new resources,
terminated cleanly instead.
* Add WINPR_ASSERT for lots of channel arguments
2021-09-09 08:53:20 +02:00
Armin Novak
467f7c3f6a
Fixed proxy ulimit graceful client disconnect
2021-09-09 08:53:20 +02:00
Armin Novak
275f9ab2f6
Added listforeach wrapper
2021-07-29 15:09:53 +02:00
Armin Novak
4e3a7562af
Clarified log message for device redirection
2021-07-29 15:09:53 +02:00
Armin Novak
da57b0b91b
Fixed resource cleanup
2021-07-29 15:09:53 +02:00
Armin Novak
55592049dc
WINPR_ASSERT for drive redirection
2021-07-29 15:09:53 +02:00
Armin Novak
a788145519
Fixed wrong error message
2021-07-29 15:09:53 +02:00
Martin Fleisz
6ecdd82e28
rdpdr: Fix length calculation for client name response
2021-07-07 11:48:56 +02:00
Armin Novak
8276c145e0
Fixed rdpdr related warnings
2021-06-18 11:32:16 +02:00
Armin Novak
ccfe0c129e
Removed checks already done by WINPR_ASSERT
2021-06-16 11:46:42 +02:00
Armin Novak
d039a1ac8f
Filter RDPDR types other than drives on windows hotplug
2021-03-09 13:58:28 +01:00
Armin Novak
c7bf33aad0
Fixed drive hotplug path comparison.
2021-01-27 09:27:08 +01:00
akallabeth
9e8d3fbbf5
Check drive to hotplug for already being redirected
...
some hotplug implementations report the same drive multiple times.
to avoid redirecting the same drive multiple times check if it is
already in the list before adding.
2021-01-15 10:41:12 +01:00
Martin Fleisz
c78e31e451
channel/rdpdr: Fix hotplug for drive redirection on Windows
...
The path was incorrectly cut of after the drive letter causing hot
plugged drives to show up empty and disconnecting the client if the
device was removed later on.
2020-11-13 12:26:29 +01:00
akallabeth
66dc4cc9ee
Fixed compilation warnings.
2020-11-10 08:53:43 +01:00
akallabeth
6e3c00725a
Cleaned up collections:
...
ArrayList, MessageQueue, Queue, PubSub, BipBuffer
ObjectPool and BufferPool
2020-11-06 12:30:13 +01:00
akallabeth
6e5f5de439
Do not abort disc hotplug if no access to mount tab.
2020-10-27 15:45:56 +01:00
Alexandr
616af2d5b8
fixed build on freebsd ( #6395 )
...
* fixed build on freebsd
2020-07-27 11:36:24 +02:00
Marco van Wieringen
9db147c317
Add support for getmntent support on Illumos
...
This implements reading mount entries on Solarish operating systems like
OpenIndiana etc using the somewhat different getmntent support available
there.
2020-07-24 09:16:46 +02:00
akallabeth
b971c5c97f
Use CMake to detect availability of getlogin_r
2020-07-01 16:50:20 +02:00
akallabeth
caff01877d
Fixed fallback to getlogin for android
2020-06-22 12:09:36 +02:00
akallabeth
1c6a6923f8
Fixed broken const variable.
2020-06-22 11:51:39 +02:00
akallabeth
36478d3d0b
Replaced getlogin with getlogin_r
2020-06-22 11:51:38 +02:00
qarmin
fe8bad1698
Don't allow to overflow dev_array array
2020-05-01 20:34:59 +02:00
Armin Novak
30db616cec
Added a free function to erase streams not processed.
...
When shutting down the streams still in the queue were not properly
freed.
2020-02-21 11:31:15 +01:00
Armin Novak
d2aef75004
Fix #5852 : handle CHANNEL_EVENT_WRITE_CANCELLED
...
When channels are cleaned up OpenHandle is most of the time
already 0. Ignore the argument checks for
CHANNEL_EVENT_WRITE_CANCELLED and CHANNEL_EVENT_WRITE_COMPLETE
only check where actually required (CHANNEL_EVENT_DATA_RECEIVED)
2020-01-29 08:52:25 +01:00
Armin Novak
ac553e1bb5
Fix #5805 : windows hotplug drive detection.
2020-01-07 10:35:12 +01:00
ajlex140
2f2f4f91d8
reply with empty irp package with error code, if irp device is unavailable
2019-12-09 11:43:02 +01:00
Armin Novak
9f3adf10f8
Fixed #5727 : use getmntent to read /proc/mounts
2019-11-18 15:25:18 +01:00
Armin Novak
72ca88f49c
Reformatted to new style
2019-11-07 10:53:54 +01:00
Armin Novak
75ed12f1f0
Fixed userdata pointer and CHANNEL_EVENT_WRITE_CANCELLED message.
2019-11-06 13:01:43 +01:00
Armin Novak
1bcb799560
Listen to CHANNEL_EVENT_WRITE_CANCELLED and emit if queue is cleared.
2019-11-06 13:01:43 +01:00
Armin Novak
1b78b59926
Fixed #4809 : Properly process CHANNEL_EVENT_WRITE_COMPLETE
2019-11-06 13:01:43 +01:00
Armin Novak
09d14a2462
Fixed VirtualChannelWriteEx error case leaks.
2019-11-06 13:01:43 +01:00