OpenSSL: use nondeprecated D-H functions under 3.0.0.