Issue #11356 has been updated by Nobuyoshi Nakada.


> ~~~c
> static VALUE
> ossl_call_tmp_ecdh_callback(VALUE *args)

I think this argument should be a `VALUE` and casted in the function.

> ~~~c
>     success = rb_protect((VALUE(*)_((VALUE)))ossl_call_tmp_ecdh_callback,
>                          (VALUE)args, NULL);

Then we can remove the cast of the function and an indirect cast.


----------------------------------------
Feature #11356: Add ECDH support to OpenSSL wrapper
https://bugs.ruby-lang.org/issues/11356#change-53434

* Author: Aaron Patterson
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
FireFox wants to use ECDH on HTTP/2 connections, and there is no way to add it to the SSL context.  This patch adds an ECDH callback (similar to the DH callback).

With this patch and #9390, I am able to get an HTTP/2 server running in Chrome and FireFox! :)

---Files--------------------------------
0001-add-ecdh-support.patch (6.81 KB)


-- 
https://bugs.ruby-lang.org/