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! :)
ext/openssl/ossl_ssl.c: add ECDH callback support. [Feature #11356]
test/openssl/test_pair.rb: test for ECDH callback support
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Updated by nobu (Nobuyoshi Nakada) over 4 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.