1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/ext/puma_http11
Victor Koronen 12a856ee63 Make get_dh1024 compatible with OpenSSL v1.1.0
Fixes the following error:

```
../../../../ext/puma_http11/mini_ssl.c: In function ‘get_dh1024’:
../../../../ext/puma_http11/mini_ssl.c:90:5: error: dereferencing pointer to incomplete type ‘DH {aka struct dh_st}’
   dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL);
     ^~
```

These changes are based on the following patch to nginx:
<789abf2b8c>
("SSL: default DH parameters compatible with OpenSSL 1.1.0").

Relevant parts of the nginx source code in their full context can be
found here:
<https://github.com/nginx/nginx/blob/release-1.10.2/src/event/ngx_event_openssl.c#L954-L980>.

For reference:

> *) Made DH and DH_METHOD opaque. The structures for managing DH objects
>    have been moved out of the public header files. New functions for managing
>    these have been added.
>    [Matt Caswell]

<https://www.openssl.org/news/cl110.txt>

Fixes #1136.
2016-12-16 15:22:02 +01:00
..
org/jruby/puma Allow a bare % in a query string. Fixes #958 2016-04-22 17:06:18 -07:00
ext_help.h Allow compilation with -Werror=format-security option 2012-07-10 22:47:49 +00:00
extconf.rb More gracefully deal with SSL sessions. Fixes #1002 2016-07-25 18:44:48 -07:00
http11_parser.c Add license indicators. Fixes #1075 2016-09-06 13:23:59 -07:00
http11_parser.h Add license indicators. Fixes #1075 2016-09-06 13:23:59 -07:00
http11_parser.java.rl Fix java parser generation 2016-01-31 18:56:33 +01:00
http11_parser.rl Add license indicators. Fixes #1075 2016-09-06 13:23:59 -07:00
http11_parser_common.rl Allow a bare % in a query string. Fixes #958 2016-04-22 17:06:18 -07:00
io_buffer.c Use MRI macros when allocating heap memory 2016-09-06 13:16:52 -07:00
mini_ssl.c Make get_dh1024 compatible with OpenSSL v1.1.0 2016-12-16 15:22:02 +01:00
puma_http11.c Add license indicators. Fixes #1075 2016-09-06 13:23:59 -07:00
PumaHttp11Service.java Start java version of MiniSSL 2012-08-23 16:56:37 -07:00