Skip to content

Add support for OpenSSL 3.0

Bi0T1N requested to merge Bi0T1N/free-pascal-source:openssl30 into main

Summary

Discover and prioritize OpenSSL 3.0 libraries.

What is the current bug behavior?

The new library names for OpenSSL 3.0 are missing.

What is the behavior after applying this patch?

The OpenSSL 3.0 library names are known and can be loaded automatically.
Only the Linux changes have been tested but since it's just about the names the Windows ones should be fine as well.

Closes #39659 (closed) (please also merge it to upcoming 3.2.4)

Relevant logs and/or screenshots

Output from test1.pas:

Load OK, missing functions: 
SSL_library_init (handled in unit)
SSL_load_error_strings (handled in unit)
SSLv2_method (method not supported by lib)
SSLv3_method (method not supported by lib)
SSLv23_method (method not supported by lib)
SSL_get_peer_certificate
ERR_load_crypto_strings (handled in unit)
ERR_load_CRYPTOlib_strings (handled in unit)
X509_NAME_hash
X509_set_notBefore (handled in unit)
X509_set_notAfter (handled in unit)
EVP_cleanup (handled in unit)
SSLeay_version (handled in unit)
ERR_free_strings (handled in unit)
RAND_screen (handled in unit)
CRYPTO_num_locks (handled in unit)
CRYPTO_set_locking_callback (handled in unit)
RAND_SSLeay (handled in unit)
RAND_cleanup (handled in unit)
RAND_query_egd_bytes (method not supported by lib)
RAND_egd (method not supported by lib)
RAND_egd_bytes (method not supported by lib)
OpenSSL_add_all_algorithms (handled in unit)
OpenSSL_add_all_ciphers (handled in unit)
OpenSSL_add_all_digests (handled in unit)
EVP_PKEY_size
EVP_CIPHER_CTX_init (handled in unit)
EVP_CIPHER_CTX_cleanup (handled in unit)
BN_mod (handled in unit)

Version : OpenSSL 3.0.2 15 Mar 2022

Merge request reports