Martin Fleisz
2d641c4dd4
Merge pull request #2864 from bjcollins/smartcard_same_name_readers
...
Give unique aliases for smartcards with the same name, so that two re…
2015-10-01 13:45:20 +02:00
Marc-André Moreau
70b037145e
libwinpr-synch: fix broken FD_ISSET check caused by hidden type cast from int to char
2015-09-18 11:38:27 -04:00
Marc-André Moreau
8a5c55788b
libwinpr-sspi: don't warn about non-error security statuses
2015-09-17 11:16:20 -04:00
Martin Fleisz
912cd96321
Merge pull request #2887 from FreeRDP/mh-file-api-extension
...
winpr/file: extend API
2015-09-15 15:57:56 +02:00
MartinHaimberger
db2ce49a98
Merge pull request #2763 from akallabeth/nla_null_auth
...
Fixed server and client NLA state machine for NULL identity.
2015-09-15 14:53:55 +02:00
MartinHaimberger
d4d360f6a4
Merge pull request #2859 from akallabeth/resource_leak_fix
...
Fixes API misuse and logic errors
2015-09-15 14:45:42 +02:00
Martin Haimberger
925e4ea4d4
winpr/file: extend API
...
added windows code
fixed compiler issue
2015-09-15 04:14:30 -07:00
Bernhard Miklautz
074854735f
winpr/file: extend API
...
Add function GetFileHandleForFileDescriptor to get
a file handle for a valid file descriptor.
2015-09-15 02:16:36 -07:00
Bryan Everly
37b3881f06
Merge remote-tracking branch 'upstream/master'
2015-09-14 13:21:00 -04:00
Bryan Everly
bd149a284d
Cleaned up previous OpenBSD change per recommendation
2015-09-14 13:20:11 -04:00
Bernhard Miklautz
0d9dfb974d
winpr/file: integrate pull request feedback
...
* simplify RemoveDirectory
* move std handle function into an extern C block
2015-09-10 11:50:10 +02:00
Bernhard Miklautz
0f5e7c60a7
winpr/file: don't close stdin/stdout/stderr
...
If the handle is closed stdin/stdout/stderr should be left open.
2015-09-09 17:07:40 +02:00
Bernhard Miklautz
8091530779
winpr/file: fix ios build
...
comm is only build on linux.
2015-09-09 17:07:13 +02:00
Bernhard Miklautz
6b52a2e5cc
winpr/file: initial regular file support
...
Add initial support for "regular" files. First implemented call is
GetStdHandle to get stdin/stdout/stderr.
2015-09-09 16:47:03 +02:00
Bernhard Miklautz
204ae5462a
winpr/file: refactoring
...
The used method for initalizing and registering the handle creators
had certain disadvantages like that it was necessary to have the creators
initialized before the first call to CreateFile. In case of comm it
wouldn't have been possible to open an comm port without calling any
other call related function first.
Now the handle creators are initialized the first time CreateFile is
called. This way it is also possible to ensure a certain order of the
handler invocations.
This commit also splits out the client side named pipe code from
the generic file handling (now called generic.c instead of file.c) and
uses the new handle creator infrastructure to register.
2015-09-09 15:48:59 +02:00
MartinHaimberger
d971116457
Merge pull request #2765 from akallabeth/connect_abort
...
Connect abort and unified TCP connect
2015-09-07 10:05:24 +02:00
Armin Novak
7d8ab23877
WSAEvent fixes ported from realjiangms pull 2870.
2015-09-05 15:18:01 +02:00
Armin Novak
ce479e312a
Fixed uninitialized environment block.
2015-09-03 13:37:16 +02:00
bjcollins
ac67e25007
Give unique aliases for smartcards with the same name, so that two readers do not end up with the same alias.
2015-09-02 12:11:47 -05:00
Armin Novak
6c74dbbe25
Reverted broken malloc size fix.
2015-09-02 13:57:04 +02:00
MartinHaimberger
74817efbdb
Merge pull request #2852 from bmiklautz/process_env
...
Update CreateProcess and rfx
2015-09-02 10:09:11 +02:00
Armin Novak
6c288bd0f2
Fixed zero length allocation.
2015-09-01 12:25:43 +02:00
Armin Novak
2c7a20d8c0
Fixed uninitialized memory.
2015-09-01 12:25:43 +02:00
Armin Novak
205878383d
Fixed array out of bound access.
2015-09-01 12:25:43 +02:00
Armin Novak
cdf884fd45
Fixed broken structure comparison.
2015-09-01 12:25:43 +02:00
Armin Novak
cb7927756d
Fixed resource leak.
2015-09-01 11:31:12 +02:00
Armin Novak
5cad081cc8
Fixed memory leak.
2015-08-28 11:07:25 +02:00
Bernhard Miklautz
72f13aeacb
CreateProcess: add stdin/out/err redirection
...
When launching a new process stdin/stdout/stderr can be redirected by
passing the corresponding HANDLEs in the passed lpStartupInfo structure.
This is required for example if a pipe should be used as stdin/stdout.
If set in lpStartupInfo the file descriptor of the passed handle is
now used. The test was updated accordingly.
2015-08-28 10:41:23 +02:00
Marc-André Moreau
e1e4d2ae98
Merge pull request #2827 from HenryJacques/winpr_cleanup
...
Remove unused variable in RegQueryValueExA()
2015-08-27 10:11:50 -04:00
Armin Novak
134a16d522
Fixed WSAEventSelect mode reset.
2015-08-27 15:33:06 +02:00
Armin Novak
1abd652530
Fixed GetComputerNameExA and GetComputerNameA.
2015-08-25 17:43:22 +02:00
HenryJacques
e9a7da3b4e
Remove unused variable
2015-08-05 18:38:50 +02:00
Martin Haimberger
008d9f3b79
fixed misc *_free functions to accept NULL
...
Following types of collections support now
NULL in the free call:
* ArrayList
* BitStream
* ContdownEvent
* Dictionary
* KeyValuePair
* MessageQueue
2015-07-30 07:02:36 -07:00
Martin Haimberger
479157b69c
winpr: WaitFor*Ojbect/s set lastError now
2015-07-30 02:52:11 -07:00
Marc-André Moreau
611c194f80
Merge pull request #2801 from bmiklautz/fix/thread
...
winpr/thread: small cleanups
2015-07-28 08:47:06 -04:00
Marc-André Moreau
b33ea8aee9
Merge pull request #2804 from bmiklautz/fix/misc
...
Misc fixes
2015-07-28 08:46:27 -04:00
Marc-André Moreau
06c3f2fca4
Merge pull request #2793 from rkondratenko/pcsclite-transactions
...
Fix for transactions support for Smart Cards
2015-07-28 08:44:58 -04:00
Bernhard Miklautz
c3ea07f3d9
winpr/thread: don't close invalid file descriptors
...
In case the file descriptor is -1 don't call close.
2015-07-24 14:57:47 +02:00
Bernhard Miklautz
81d422588e
winrp/thread: don't call pthread_exit on return
...
As the pthread_exit man page states pthread_exit is called implicitly
when the start function returns.
2015-07-24 14:52:31 +02:00
Bernhard Miklautz
4250f3f030
winpr/event: remove critical section
...
The critical section isn't required and not used anymore since
commit 8a2220a3d9
.
2015-07-24 13:29:48 +02:00
Bernhard Miklautz
ca150f2255
winpr/thread: small cleanups
...
Also adds error checking of winpr_StartThread in winpr_StartThread.
2015-07-23 11:52:49 +02:00
Rostislav Kondratenko
3f81ff87a6
Removing private context on hCard so that transaction will properly unlock when context is released.
2015-07-17 18:13:41 +03:00
Rostislav Kondratenko
f2863fabf5
Re-enabled PCSC-Lite transactions and fixed smartcard deinitialization so it will release all contexts to unblock calls waiting for transactions
2015-07-17 16:37:44 +03:00
Armin Novak
9af2e22d51
Fixed mutex unlocking and return checks.
2015-07-16 17:07:29 +02:00
MartinHaimberger
b06d83ba80
Merge pull request #2766 from akallabeth/snprintf_to_sprintf_s
...
Replaced snprintf with sprintf_s
2015-07-15 09:47:43 +02:00
Bernhard Miklautz
68e8569110
winpr/synch: remove the dependency on winsock.h
...
winsock.h pulls in a lot of defines and dependencies that are not
required and partially unwanted in winpr's core (for parts that are not
related to network). In order to get rid of this dependency and have an
independent defines for extended winpr functions the WINPR_FD_* defines
are used internally (and for exposed functions). Where required, like in
WSAEventSelect, the FD_* is mapped to WINPR_FD_*.
2015-07-14 11:39:41 +02:00
Armin Novak
48ccf73a36
More SSPI logging.
2015-07-08 17:41:22 +02:00
Armin Novak
7360cb638a
Erasing memory on credentials or SecBuffer free.
2015-07-08 17:41:21 +02:00
Armin Novak
cf9f975341
Replaced snprintf with sprintf_s
2015-07-03 13:26:15 +02:00
Armin Novak
776f15e135
Fixed inverted bAttached setting.
...
If bAttached is TRUE, the resources of the event are not
cleaned up on CloseHandle.
2015-07-03 12:42:04 +02:00