Skip to content

Support for OpenSSL 3.0

Summary

Provide support for loading and prioritizing OpenSSL 3.0 for openssl package.

System Information

  • Operating system: Ubuntu Jammy
  • Processor architecture: all
  • Device: Computer, Tablet, Mobile

Example Ubuntu Jammy Bash Output

apt install openssl libssl-dev
-rw-r--r--  1 root root 9088208 Mar 16 08:35 libcrypto.a
lrwxrwxrwx  1 root root      14 Mar 16 08:35 libcrypto.so -> libcrypto.so.3
-rw-r--r--  1 root root 4447536 Mar 16 08:35 libcrypto.so.3
...
-rw-r--r--  1 root root 1231340 Mar 16 08:35 libssl.a
lrwxrwxrwx  1 root root      11 Mar 16 08:35 libssl.so -> libssl.so.3
-rw-r--r--  1 root root  667864 Mar 16 08:35 libssl.so.3

Possible Solution for Linux

For now adding .3 to the DLLVersions array in the openssl.pas might be enough to prioritize the latest OpenSSL version as it already supports OpenSSL 1.1.1 and should therefore work fine with OpenSSL 3.0 as well. Real code changes may be required in the long run as some APIs are deprecated.

Relevant 3rd party information

https://www.openssl.org/docs/man3.0/man7/migration_guide.html
https://wiki.openssl.org/index.php/OpenSSL_3.0
https://www.openssl.org/blog/blog/2021/09/07/OpenSSL3.Final/
https://forum.lazarus.freepascal.org/index.php/topic,59015.msg439982.html

Edited by Bi0T1N
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information