Hardening
0ce300125b
Drop unused field
2014-06-03 11:04:12 +02:00
Marc-André Moreau
d2ad5f698b
libfreerdp-core: fix VerifyX509Certificate to make distinction between gateway and direct connection
2014-05-30 14:36:18 -04:00
Hardening
dd6d829550
Allow transport_write calls to be non-blocking
...
This big patch allows to have non-blocking writes. To achieve
this, it slightly changes the way transport is handled. The misc transport
layers are handled with OpenSSL BIOs. In the chain we insert a
bufferedBIO that will bufferize write calls that couldn't be honored.
For an access with Tls security the BIO chain would look like this:
FreeRdp Code ===> SSL bio ===> buffered BIO ===> socket BIO
The buffered BIO will store bytes that couldn't be send because of
blocking write calls.
This patch also rework TSG so that it would look like this in the
case of SSL security with TSG:
(TSG in)
> SSL BIO => buffered BIO ==> socket BIO
/
FreeRdp => SSL BIO => TSG BIO
\
> SSL BIO => buffered BIO ==> socket BIO
(TSG out)
So from the FreeRDP point of view sending something is only BIO_writing
on the frontBio (last BIO on the left).
2014-05-21 17:42:31 +02:00
Hardening
9f1d0201ec
Changes for base64
...
This patch changes the prototype for decode_base64 so that the encode / decode
method are consistant (encode(BYTE *) => char* and decode(char*) => BYTE*).
It also does some improvements with unrolling loops so that end conditions are
tested only at the end.
The patch also adds some unitary tests.
Before the patch base64_decode() made valgrind complain about uninitialized
bits, after valgrind is happy and very quiet.
2014-05-11 22:49:10 +02: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
42a88b93dd
libfreerdp-crypto: fix tls_verify_certificate declaration
2014-04-01 21:17:44 -04:00
Marc-André Moreau
feea87b42f
libfreerdp-crypto: make distinction between TLS connection error and user cancellation
2014-04-01 16:23:27 -04:00
Marc-André Moreau
51ad85e0ee
libfreerdp-core: send Access Denied TLS alert when server-side NLA fails
2013-12-18 19:44:18 -05:00
Benoît LeBlanc
8c1f836ac8
- SSL verification callback: send correct hostname and port
...
- Gateway Authentication callback.
- Handling “use same credentials”
2013-12-06 22:15:45 -05:00
Benoît LeBlanc
56c517170f
Added hostname and port to callback function for SSL certification verification.
2013-11-25 14:30:43 -05:00
Marc-André Moreau
1fc2d780f7
libfreerdp-core: fix memory leaks reported by valgrind
2013-10-31 23:35:24 -04:00
Marc-André Moreau
d30f66b1b7
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2013-10-23 14:18:40 -04:00
Daryl Poe
076b8a84c2
commandline session reconnect
2013-10-22 09:14:29 -06:00
Marc-André Moreau
08eadc2ee3
libfreerdp-core: start implement TSG OpenSSL BIO
2013-10-11 06:12:50 -04:00
Armin Novak
ddab90ece4
Fixed alt_names free, now using cleanup function to wrap details.
2013-09-05 12:14:35 +02:00
Daryl Poe
f71f179c28
fix per-device CAL licensing
...
(cherry picked from commit d6d0d81d08
)
2013-08-26 09:37:48 +02:00
Chris
13466349bc
1) Add support for Wildcard Certificates
...
2) For Gateway connections compare against gateway host name instead of target host
2013-06-17 21:19:01 +02:00
Marc-André Moreau
ac86310993
Merge pull request #1257 from simon-engledew/master
...
Ber Encoding Issue
2013-05-22 05:06:52 -07:00
Simon Engledew
0dc22d5a30
Fixed a range of BER boundary encoding bugs which would occur when any NLA packet hit the 127 character mark. Removed ber#get_content_length as it was not behaving deterministically.
2013-05-21 16:06:00 +01:00
Bernhard Miklautz
9e59fc905d
client: print detected path to known_host file
...
Use detected path instead of hard coded for error messages
2013-05-21 15:48:27 +02:00
Marc-André Moreau
8c8a82c31f
libfreerdp-utils: purge old STREAM utils
2013-03-21 16:45:25 -04:00
Marc-André Moreau
a8201b0d1b
libwinpr-utils: combine old and new stream utils
2013-03-21 15:19:33 -04:00
Marc-André Moreau
0de89ab4c9
libfreerdp-core: enable non-null licensing client random
2013-02-05 09:46:25 -05:00
rdp.effort
376731315b
Checks stream size when reading in BER format
2013-01-11 01:11:03 +01:00
Marc-André Moreau
1d893ed268
libwinpr-sspi: add support for NTLMv2 Channel Binding Token (CBT)
2013-01-09 00:20:08 -05:00
Vic Lee
ed5ad30d4f
libfreerdp-core/transport: select sockfd instead of sleep when blocking.
2012-12-21 16:24:26 +08:00
Marc-André Moreau
808fc210e3
libfreerdp-utils: remove hexdump utils in favor of WinPR utils
2012-12-13 23:54:54 -05:00
Marc-André Moreau
8a32de3801
libfreerdp: purged source tree from deprecated memory utils
2012-11-21 21:22:06 -05:00
Marc-André Moreau
f19f3a6024
libfreerdp-crypto: move nla.c to libfreerdp-core
2012-11-14 21:19:17 -05:00
Marc-André Moreau
98dcdcfb8f
libfreerdp-core: transport refactoring to split in/out channels
2012-11-14 20:46:51 -05:00
Marc-André Moreau
9d064171a7
freerdp: get rid of old types
2012-10-09 03:26:39 -04:00
Marc-André Moreau
1bf8a45519
freerdp: change uint8, sint8, uint16, sint16 to BYTE, INT8, UINT16, INT16
2012-10-09 03:01:37 -04:00
Marc-André Moreau
1ed644786c
freerdp: change boolean type to BOOL type
2012-10-09 02:38:39 -04:00
Marc-André Moreau
e60a092d81
freerdp: fix headers
2012-10-08 23:02:04 -04:00
Marc-André Moreau
6dcc8e73ee
libfreerdp-utils: get rid of rdpBlob
2012-09-24 04:40:32 -04:00
Marc-André Moreau
92e46af233
libwinpr-sspi: add support for dynamic loading of SSPI module
2012-08-10 18:05:37 -04:00
Marc-André Moreau
e4c920c946
Merge branch 'master' of github.com:FreeRDP/FreeRDP into winpr
2012-06-29 08:55:58 -04:00
Dorian Johnson
3b3f05a0b1
libfreerdp-crypto: Allow clients to accept a changed cert
2012-06-28 20:05:10 -05:00
Marc-André Moreau
1aa0512490
libfreerdp-rail: rename UNICODE_STRING to RAIL_UNICODE_STRING to avoid conflict
2012-06-19 17:26:37 -04:00
Marc-André Moreau
72d2c7c1d8
libfreerdp-core: use DER for parts of TSRequest encoding, just like mstsc
2012-06-18 15:56:40 -04:00
Marc-André Moreau
33d0d59306
wfreerdp-server: fix server-side TLS on Windows
2012-06-12 23:09:30 -04:00
Marc-André Moreau
5624b4450a
libwinpr-sspi: partially fix encoding of credentials on Windows
2012-06-06 21:16:47 -04:00
Marc-André Moreau
c90326cc16
libwinpr-sspi: added support for Service Principal Name (SPN)
2012-06-06 19:59:17 -04:00
Marc-André Moreau
b70683af9e
libwinpr-sspi: move NLA code out of CredSSP module
2012-05-25 01:50:46 -04:00
Marc-André Moreau
f897159058
libwinpr-sspi: parse CredSSP plaintext credentials
2012-05-24 15:52:20 -04:00
Marc-André Moreau
e1e3f12114
winpr: move wtypes.h and windows.h
2012-05-04 19:36:35 -04:00
Marc-André Moreau
97391dc782
libfreerdp-core: cleanup RTS header encoding
2012-04-19 15:43:20 -04:00
Marc-André Moreau
88b8380b4c
libfreerdp-core: simplify HTTPS sending
2012-04-18 02:28:05 -04:00
Marc-André Moreau
fa7900d293
libfreerdp-core: start using HTTP utils for NTLM HTTP authentication
2012-04-16 16:21:46 -04:00
Marc-André Moreau
f5b91f0b84
libfreerdp-core: start integrating terminal server gateway code
2012-03-26 02:45:01 -04:00