Armin Novak
4be62f7047
Fixed OpenSSL 1.1 no legacy compile issues.
2017-04-06 11:25:25 +02:00
Armin Novak
09d43a66f4
Fixed tests and dead store warnings.
2017-03-28 16:49:56 +02:00
Bernhard Miklautz
8aeb9df0f5
makecert: fix a regression with > 2048 bit
...
When certificates with more than 2048 bits were generated and written to
file the read function used a erroneous calculated length causing the
used buffer to overflow.
2017-01-16 11:11:59 +01:00
Bernhard Miklautz
960f4644cd
winpr-makecert: use sha256 and update command line
...
* use sha256 instead of sha1 as default hash algorithm
* fix command line parser
* mark not implemented command line switches as unsupported
2017-01-16 11:11:59 +01:00
Martin Fleisz
ac090520c3
Fix compilation with OpenSSL 1.1.0 using MSVC
2017-01-09 16:43:28 +01:00
Armin Novak
e223684fcb
args arrays static.
...
When creating static builds the args arrays collided due
to global visibility.
2015-12-15 12:07:21 +01:00
Marc-André Moreau
87780a850d
Merge branch 'master' of github.com:FreeRDP/FreeRDP into mbedtls
2015-10-09 15:58:50 -04:00
Marc-André Moreau
54292f29ea
libwinpr-crypto: add generic cipher API with OpenSSL/mbedtls support
2015-10-09 12:15:31 -04:00
Marc-André Moreau
94a2f9533e
winpr: start porting to non-OpenSSL
2015-10-05 16:23:44 -04:00
Martin Fleisz
899d0874b8
makecert: Remove key usage attribute
...
The original makecert tool won't add this tribute to a generated
certificate. Adding this attribute might cause problems when using the
certificate with other apps (i.e. Qt SSL).
2015-09-07 10:43:19 +02:00
Armin Novak
d557690426
x509_get_default_name tries to get FQDN before hostname now.
2015-08-25 17:44:03 +02:00
Martin Fleisz
1a6aba0130
winpr/tools: Fixed x509_get_default_name failing with long computer names
2015-07-15 11:47:01 +02:00
Norbert Federa
1c43a6e115
Merge pull request #2738 from bmiklautz/ffuncs
...
hardening: check fread and fwrite return values
2015-07-01 13:02:32 +02:00
Martin Fleisz
d64195d46a
makecert: Fix incorrect return value check
2015-06-30 08:14:28 +02:00
Martin Fleisz
15473557da
makecert: Formatting
2015-06-29 18:10:59 +02:00
Martin Fleisz
bdf02d631e
makecert: Add strdup checks
2015-06-29 18:07:26 +02:00
Martin Fleisz
5632773808
makecert: Fix double free crashes
2015-06-29 17:49:13 +02:00
Bernhard Miklautz
1cee185e3c
hardening: check fread and fwrite return values
2015-06-26 20:38:30 +02:00
Bernhard Miklautz
af81a91ea7
windows: fix compilation and warnings
2015-06-22 19:31:25 +02:00
Bernhard Miklautz
06502e6a91
misc: integrate pull request feedback
2015-06-22 19:24:30 +02:00
David FORT
7c3f8f33ab
Fixes for malloc / calloc + other fixes
...
This patch contains:
* checks for malloc return value + treat callers;
* modified malloc() + ZeroMemory() to calloc();
* misc fixes of micro errors seen during the code audit:
** some invalid checks in gcc.c, also there were some possible
integer overflow. This is interesting because at the end the data are parsed
and freed directly, so it's a vulnerability in some kind of dead code (at least
useless);
** fixed usage of GetComputerNameExA with just one call, when 2 were used
in misc places. According to MSDN GetComputerNameA() is supposed to return
an error when called with NULL;
** there were a bug in the command line parsing of shadow;
** in freerdp_dynamic_channel_collection_add() the size of array was multiplied
by 4 instead of 2 on resize
2015-06-22 19:21:47 +02:00
Bernhard Miklautz
bf73f4e4f1
Fix unchecked strdups
...
* add missing checks
* adapt function return values where necessary
* add initial test for settings
2015-06-22 19:09:59 +02:00
Norbert Federa
1eff1a345e
free can handle NULL perfectly fine
2015-05-11 09:07:39 +02:00
Bernhard Miklautz
12e1d94567
winpr: fixes and cleanup
...
Integrated notes and issues for the pending pull request
* wf_info:
* cleanup: remove unnecessary breaks
* fix typo
* change usage of calloc
* print.c: fix incorrect check
* makecert.c: cleanup includes
2015-04-08 11:34:37 +02:00
Bernhard Miklautz
850de59b55
winpr: add checks for *alloc
...
Add missing checks if memory allocation was successful. Also adapt
caller(s) when possible.
2015-04-08 11:34:37 +02:00
Zhang Zhaolong
21d5ed6512
tool: fix incorrect usage of realloc.
...
Signed-off-by: Zhang Zhaolong <zhangzl2013@126.com>
2015-03-11 15:00:05 +08:00
Armin Novak
ee8563504d
Fixed memory leak.
2014-11-17 00:47:54 +01:00
Armin Novak
8302b169d0
Fixed memory leak
2014-11-17 00:13:50 +01:00
Armin Novak
3d108f0bca
Fixed memory leaks.
2014-11-17 00:09:50 +01:00
Marc-André Moreau
7da4621334
librdtk: improve text positioning
2014-10-01 12:18:17 -04:00
Marc-André Moreau
a00ef5d044
winpr-makecert: remove dependency on OPENSSL_Applink on Windows
2014-09-19 16:23:19 -04:00
Marc-André Moreau
a23d5ea527
winpr/makecert: improve command line options
2014-07-17 16:47:29 -04:00
Marc-André Moreau
0fb3bf1dfd
winpr/tools/makecert: add pfx support
2014-07-16 17:13:02 -04: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
839bcb42ae
wfreerdp: fix build against static openssl library
2014-01-29 15:27:43 -05:00
Marc-André Moreau
7dd95b9587
libwinpr-crypto: improve Schannel unit test
2013-10-11 04:01:07 -04:00
Marc-André Moreau
fae24b1ef9
xfreerdp-server: auto-generate self-signed certificate
2013-04-23 18:17:01 -04:00
Marc-André Moreau
890c418536
winpr-makecert: added file output functions
2013-03-22 17:34:57 -04:00
Marc-André Moreau
c715ff69bc
winpr-makecert: improve library/executable separation
2013-03-22 16:59:54 -04:00
Marc-André Moreau
48419c0a0a
libwinpr-tools: start splitting makecert tool into library and executable
2013-03-22 16:36:44 -04:00
Marc-André Moreau
79638db42c
winpr-makecert: only include OpenSSL's applink.c on Windows
2013-03-13 17:57:13 -04:00
Marc-André Moreau
f0de7c88a8
winpr-makecert: fix OpenSSL applink error
2013-03-13 17:55:42 -04:00
Marc-André Moreau
9eaa530d49
makecert: generate self-signed RDP certificate
2013-03-13 00:26:10 -04:00
Marc-André Moreau
91c12fa312
makecert: accept more parameters
2013-03-12 21:53:41 -04:00
Marc-André Moreau
00cbfdb2af
winpr-makecert: start implementing
2013-03-12 17:57:16 -04:00
Marc-André Moreau
fbacea6bad
winpr/tools/makecert: stubbed basic makecert wrapper
2012-11-26 22:42:40 -05:00