Kyle Evans
f8c391876f
Pull in the LibreSSL compatibility patches from FreeBSD
2018-05-01 08:43:36 -05:00
Armin Novak
d249335708
Removed winpr_exit
...
As the cleanup functions are called by atexit a dedicated
cleanup call is no longer required.
2018-04-03 12:56:33 +02:00
Armin Novak
2d58e96dcc
Exit main thread with winpr_exit to trigger resource cleanup.
...
When using pthread_once with destructors they are only called,
if each thread (including the main thread) is exited with pthread_exit.
Introducing winpr_exit as a wrapper for that purpose.
2018-02-12 10:33:02 +01:00
Armin Novak
4eb5b8e349
Replaced atoi
2017-11-15 15:52:16 +01:00
Bernhard Miklautz
3626676ac6
winpr/makecert: fix linking against libcrypto
...
Use OPENSSL_CRYPTO_LIBRARIES instead of linking against crypto directly.
2017-09-23 14:13:39 +02:00
Armin Novak
7e32e90d4c
Fixed RSA generation for OpenSSL >= 1.1
2017-08-17 13:16:32 +02:00
Mike Gabriel
dc075fb133
Fix warning in man pages
...
"warning: can't find macro file `www.tmac))'""`"
2017-08-03 08:41:50 +02:00
Mike Gabriel
c045bddf3f
Fix typos in some error messages
2017-08-03 08:38:05 +02:00
Valery Kartel
9bf9ff9e8a
Fix build with LibreSSL
2017-07-26 17:12:14 +03:00
Armin Novak
0490aeb018
Fixed clang malloc integer overflow warnings.
2017-07-20 09:29:48 +02:00
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
Martin Fleisz
c2eacd3b31
Build: Use correct pdb names when installing with symbols
2017-01-31 13:32:51 +01:00
Bernhard Miklautz
2a6bac64ae
Fix typos in man pages.
2017-01-17 13:25:47 +01:00
Bernhard Miklautz
d817469b78
Install man pages
...
* man pages are only build/installed if WITH_MANPAGES is enabled
* create a new cmake function install_freerdp_man to unified install man
pages
* install all man pages using the new function
* update the nightly packages accordingly
2017-01-16 11:34:32 +01:00
Bernhard Miklautz
84b542ec85
winpr-makecert: add initial man page
2017-01-16 11:11:59 +01: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
Bernhard Miklautz
2f93c0f452
winpr-hash: cleanup cmd line and add man page
...
* add a initial man page
* clean up the command line a little bit (basically error messages)
2017-01-16 11:11:59 +01:00
Bernhard Miklautz
bbb6bf6b43
Include major version number in library names
...
Currently it is not possible to cleanly install multiple major version
of FreeRDP concurrently as some of the development libraries (.so files)
files can conflict.
This change renames all libraries to include the major version number in
the library name to fix this limitation.
The list of changed libraries:
libwinpr-tools.so -> libwinpr-tools2.so
libwinpr.so -> libwinpr2.so
libfreerdp.so -> libfreerdp2.so
libfreerdp-client.so -> libfreerdp-client2.so
libfreerdp-shadow.so -> libfreerdp-shadow2.so
libfreerdp-server.so -> libfreerdp-server2.so
libfreerdp-shadow-subsystem.so -> libfreerdp-shadow-subsystem2.so
libuwac.so -> libuwac0.so
As the library names have changed, projects that use FreeRDP will need to
update their dependencies. -
If pkg-config or cmake find modules are used, reconfiguration might be
sufficient.
Fixes #3460
2017-01-16 11:11:58 +01:00
Martin Fleisz
ac090520c3
Fix compilation with OpenSSL 1.1.0 using MSVC
2017-01-09 16:43:28 +01:00
Norbert Federa
f71b6b46e8
fix string format specifiers
...
- fixed invalid, missing or additional arguments
- removed all type casts from arguments
- added missing (void*) typecasts for %p arguments
- use inttypes defines where appropriate
2016-12-16 13:48:43 +01:00
Bernhard Miklautz
59fbfdb24b
Add library libwinpr-tools
...
libwinpr-tools is a replacement for winpr-makecert-tool.a. Currently
it's basically the same as winpr-makecert-tool.a but in future
functionality that doesn't fit directly in winpr will be added here.
2016-05-03 14:42:08 +02:00
Bernhard Miklautz
9e8c6c99b6
First shot on fixing over linking
...
If a target is linked against libraries with cmake
(target_link_libraries) and the libraries are not marked as PRIVATE
they are "exported" and in case a other target is linked against this
target it is also linked against *all* (not private) libraries.
Without declaring private libraries PRIVATE a lot of over linking
(linking against unneeded libraries) was done.
2016-03-29 18:14:34 +02:00
Bernhard Miklautz
79707cb7fd
makecert: fix installation of .a file
...
Since cb958ba9c6
libwinpr-makecert-tool.a
wasn't installed anymore.
2015-12-16 17:45:59 +01:00
Armin Novak
6ed43cd6ec
Updated pdb file locations.
...
Now supporting generators NMake and Visual Studio.
2015-12-15 12:08:35 +01:00
Armin Novak
cb958ba9c6
Added pdb files to package target.
...
Fixed name collision with freerdp-shadow targets.
2015-12-15 12:07:21 +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
Armin Novak
89bb28adb2
Fixed setting of RV_VERSION_PATCH, now BUILD_NUMBER is used for every library.
...
Executable names are now correctly set, using CMAKE_EXECUTABLE_SUFFIX now.
Fixed version defines for winpr executables.
2014-10-09 16:18:35 +02:00
Armin Novak
5364a834c4
Added windows version information to build.
2014-10-03 15:17:40 +02: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
6a49bcfe40
winpr: always build "monolitic"
...
winpr is now always build as single library.
The build option MONOLITHIC_BUILD doesn't influence this behavior anymore.
The only exception is winpr-makecert-tool which is still build as extra
library.
This obsoletes complex_libraries for winpr.
2014-07-10 11:10:58 +02:00
Marc-André Moreau
948d137426
libwinpr-sspi: add support for passing NTLMv2 hash
2014-06-18 16:02:13 -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
Bernhard Miklautz
b817e92e5e
cmake: mark required libraries for export
2014-04-23 10:16:02 +02:00
Marc-André Moreau
839bcb42ae
wfreerdp: fix build against static openssl library
2014-01-29 15:27:43 -05:00
Marc-André Moreau
c73c558d1f
winpr-hash: fix building against openssl in static mode
2014-01-28 22:41:11 -05: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
7dd95b9587
libwinpr-crypto: improve Schannel unit test
2013-10-11 04:01:07 -04:00
Marc-André Moreau
929d292f35
wfreerdp: fix compilation
2013-09-19 12:08:20 -04:00
Marc-André Moreau
518995a05e
freerdp: merge with master
2013-09-16 17:10:27 -04:00
Marc-André Moreau
4a4a36d5c4
cmake: remove vendor-specific options
2013-09-10 14:03:15 -04: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
Benoît LeBlanc
03a401b8e6
CMakelists:
...
disabled installation of headers and libraries for the wayk client.
2013-07-25 21:59:21 -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
140b44006b
winpr-makecert: fix linking against OpenSSL
2013-03-13 17:43:33 -04:00
Marc-André Moreau
10e09ed846
winpr-makecert: fix CMakeLists.txt
2013-03-13 14:04:18 -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
Marc-André Moreau
06fa85f31c
cmake: refactoring of MONOLITHIC_BUILD
2012-10-13 17:30:59 -04:00
Marc-André Moreau
40eea7c76b
cmake: rename WITH_MONOLITHIC_BUILD to MONOLITHIC_BUILD
2012-10-08 22:55:06 -04:00
Marc-André Moreau
659a901450
cmake: add solution folder subdirectories
2012-10-01 11:48:53 -04:00
Marc-André Moreau
403d85f080
cmake: bump soname version to 1.1.0
2012-09-20 20:45:56 -04:00
Marc-André Moreau
cf7c65ba00
libwinpr: add support for monolithic build (single libwinpr.so)
2012-08-14 14:37:31 -04:00
Marc-André Moreau
6155e3718f
libwinpr-sspi: store NTLM hashes in SAM, generate NTLMv2 hashes on the fly
2012-07-22 23:23:23 -04:00
Marc-André Moreau
5ed9796e96
libwinpr-sspi: fix compilation on Windows
2012-06-06 02:59:37 -04:00
Marc-André Moreau
ce08f3a6d0
libwinpr-registry: add support for reading simple values from a .reg file
2012-06-05 21:50:03 -04:00
Marc-André Moreau
18a8a5c6c4
libwinpr-registry: reduce API stubs to MinWin
2012-06-05 19:40:49 -04:00
Marc-André Moreau
fa4fc7d2ee
libwinpr-registry: start implementation
2012-06-05 18:56:31 -04:00
Marc-André Moreau
4a5de37c00
libwinpr-sspi: improve SAM management
2012-06-03 19:59:35 -04:00
Marc-André Moreau
3325098009
libwinpr-utils: started SAM utils
2012-06-02 23:31:15 -04:00
Marc-André Moreau
e8f2f7b30e
winpr/tools/hash: added NTLM hashing tool
2012-06-02 18:21:04 -04:00