Stop using APIs deprecated in OpenSSL 3.0.0
In #34139 (closed), we note that these APIs are deprecated in OpenSSL 3.0.0:
- DH_compute_key
- DH_generate_key
- DH_size
- ECDH_compute_key
- EC_GFp_mont_method
- EC_GFp_nist_method
- EC_GFp_simple_method
- EC_GROUP_method_of
- ENGINE_by_id
- ENGINE_ctrl_cmd_string
- ENGINE_free
- ENGINE_get_cipher_engine
- ENGINE_get_default_DH
- ENGINE_get_default_EC
- ENGINE_get_default_RAND
- ENGINE_get_default_RSA
- ENGINE_get_digest_engine
- ENGINE_get_id
- ENGINE_get_name
- ENGINE_load_builtin_engines
- ENGINE_register_all_complete
- ENGINE_set_default
- ERR_func_error_string
- HMAC
- RSA_check_key
- RSA_generate_key_ex
- RSA_private_decrypt
- RSA_private_encrypt
- RSA_public_decrypt
- RSA_public_encrypt
- RSA_size
We should stop using them.