You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
517 B

  1. Not needed for 8.16
  2. --- a/sendmail/tls.c
  3. +++ b/sendmail/tls.c
  4. @@ -1325,13 +1325,8 @@ inittls(ctx, req, options, srv, certfile, keyfile, cacertpath, cacertfile, dhpar
  5. }
  6. #if _FFR_TLS_EC
  7. - ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
  8. - if (ecdh != NULL)
  9. - {
  10. - SSL_CTX_set_options(*ctx, SSL_OP_SINGLE_ECDH_USE);
  11. - SSL_CTX_set_tmp_ecdh(*ctx, ecdh);
  12. - EC_KEY_free(ecdh);
  13. - }
  14. + SSL_CTX_set_options(*ctx, SSL_OP_SINGLE_ECDH_USE);
  15. + SSL_CTX_set_ecdh_auto(*ctx, 1);
  16. #endif /* _FFR_TLS_EC */
  17. }