Fix OpenSSL 3.0 API deprecations
This series supersedes !211 (closed). Second commit is supposed to be merged in first one (from @elmarco). It reduces the conditional code replacing new APIs. A partial test is added (DH parameter). Another test is being prepared (for RSA ticket, working but need a bit of tidying).
Edited by Frediano Ziglio