O'Reilly logo
  • Sean Maher thinks this is interesting:

SSL_CTX_set_tmp_dh

From

Cover of Network Security with OpenSSL

Note

OpenSSL documentation says to prefer using this function over the callback unless you have need for supporting export ciphers.

If you want to use EECDH, use SSL_CTX_set_tmp_ecdh.