FreeRDP/winpr
Ondrej Holy 67f3fff2c8
winpr/crypto: Load legacy provider to fix rc4 with OpenSSL 3.0 (#7210)
* winpr/crypto: Exit cleanly when EVP_EncryptInit_ex fails

The `EVP_EncryptInit_ex` function may fail in certain configurations.
Consequently, FreeRDP segfaults in `EVP_CIPHER_CTX_set_key_length`.
Let's handle the `EVP_EncryptInit_ex` failures and exit cleanly in
such case.

* winpr/crypto: Load legacy provider to fix rc4 with OpenSSL 3.0

Currently, the `EVP_EncryptInit_ex` function fails for rc4 with OpenSSL 3.0.
This is becuase rc4 is provided by the legacy provider which is not loaded
by default. Let's explicitly load the legacy provider to make FreeRDP work
with OpenSSL 3.0.

Relates: https://github.com/openssl/openssl/issues/14392
Fixes: https://github.com/FreeRDP/FreeRDP/issues/6604
2021-08-03 15:28:58 +02:00
..
include winpr/include/winpr/file.h: fix build on uclibc 2021-08-01 09:37:24 +02:00
libwinpr winpr/crypto: Load legacy provider to fix rc4 with OpenSSL 3.0 (#7210) 2021-08-03 15:28:58 +02:00
test Fixed compilation warnings 2021-08-02 10:28:06 +02:00
tools Replaced CMAKE_[SOURCE|BINARY]_DIR with PROJECT_[SOURCE|BINARY]_DIR 2021-06-22 08:54:18 +02:00
.gitignore Fixed rdtk, uwac and winpr standalone builds 2021-06-22 08:54:18 +02:00
buildflags.h.in Fixed rdtk, uwac and winpr standalone builds 2021-06-22 08:54:18 +02:00
CMakeLists.txt Fixed CMake options, define in library that use them. (#7141) 2021-07-01 16:19:12 +02:00
config.h.in Fixed CMake options, define in library that use them. (#7141) 2021-07-01 16:19:12 +02:00
winpr.pc.in Include major version number in library names 2017-01-16 11:11:58 +01:00
WinPRConfig.cmake.in build: remove FREERDP_MONOLITHIC_BUILD 2016-01-12 17:32:32 +01:00
wlog.7 Fix issues in wlog man page 2016-12-01 15:36:31 +01:00