FreeRDP/winpr/libwinpr
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
..
asn1 Reformatted to new style 2019-11-07 10:53:54 +01:00
bcrypt Reformatted to new style 2019-11-07 10:53:54 +01:00
clipboard Fixed compilation warnings and typos 2021-06-16 15:21:56 +02:00
comm Fixed compilation warnings 2021-08-02 10:28:06 +02:00
credentials Reformatted to new style 2019-11-07 10:53:54 +01:00
credui Reformatted to new style 2019-11-07 10:53:54 +01:00
crt Fixed compilation warnings 2021-08-02 10:28:06 +02:00
crypto winpr/crypto: Load legacy provider to fix rc4 with OpenSSL 3.0 (#7210) 2021-08-03 15:28:58 +02:00
dsparse Reformatted to new style 2019-11-07 10:53:54 +01:00
environment WinPR: Fixed warnings, added assertions 2021-06-18 11:32:16 +02:00
error Fixed compilation warnings 2021-08-02 10:28:06 +02:00
file Fixed compilation warnings 2021-08-02 10:28:06 +02:00
handle Fixed warnings 2021-06-17 10:35:22 +02:00
heap Removed windows module.def files. 2016-02-29 15:18:47 +01:00
input Fixed compilation warnings 2021-08-02 10:28:06 +02:00
interlocked Fixed warnings 2021-06-17 10:35:22 +02:00
io Replace fopen and path functions with wrappers (#7043) 2021-05-31 11:42:03 +02:00
library Fixed integer warnings 2021-06-18 09:41:02 +02:00
locale Reformatted to new style 2019-11-07 10:53:54 +01:00
memory Reformatted to new style 2019-11-07 10:53:54 +01:00
nt Fixed NtStatus2Tag return. 2020-10-27 07:41:04 +01:00
path Replace fopen and path functions with wrappers (#7043) 2021-05-31 11:42:03 +02:00
pipe Fixed compilation warnings 2021-08-02 10:28:06 +02:00
pool Fixed compilation warnings 2021-08-02 10:28:06 +02:00
registry WinPR: Fixed warnings, added assertions 2021-06-18 11:32:16 +02:00
rpc Fixed compilation warnings 2021-08-02 10:28:06 +02:00
security Reformatted to new style 2019-11-07 10:53:54 +01:00
shell Reformatted to new style 2019-11-07 10:53:54 +01:00
smartcard Fixed smartcard related warnings 2021-06-18 11:32:16 +02:00
sspi Fixed compilation warnings 2021-08-02 10:28:06 +02:00
sspicli Use CMake to detect availability of getlogin_r 2020-07-01 16:50:20 +02:00
synch Fixed compilation warnings 2021-08-02 10:28:06 +02:00
sysinfo Added const to function arguments 2021-02-17 11:29:56 +01:00
thread Fixed compilation warnings 2021-08-02 10:28:06 +02:00
timezone fixup! Improvement: Add a way to get timezone from environment. Firstly get timezone from environment. If not present, use file method 2021-07-20 15:31:57 +02:00
utils Fixed warnings in TestLinkedList 2021-08-02 10:28:06 +02:00
winhttp Reformatted to new style 2019-11-07 10:53:54 +01:00
winsock Reformatted to new style 2019-11-07 10:53:54 +01:00
wnd Fixed compilation warnings 2021-08-02 10:28:06 +02:00
wtsapi Silenced warning due to missing define guard. 2020-03-10 14:04:53 +01:00
CMakeLists.txt Replaced CMAKE_[SOURCE|BINARY]_DIR with PROJECT_[SOURCE|BINARY]_DIR 2021-06-22 08:54:18 +02:00
dummy.c freerdp: various missing link dependencies and symbol exports 2013-09-03 21:48:26 -04:00
log.h Fixed compilation warnings and typos 2021-06-16 15:21:56 +02:00