Add ECDH support to OpenSSL wrapper
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! :)
Updated by nobu (Nobuyoshi Nakada) about 7 years ago
static VALUE ossl_call_tmp_ecdh_callback(VALUE *args)
I think this argument should be a
VALUE and casted in the function.
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.