This is the patch currently used for Ubuntu development release to make Qt work with OpenSSL 3.0.
It is a backport of commits 3186ca3e, 408656c6, ae6590e3 and a small part of 4c0f8149 (there are too many conflicts when backporting it fully).