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
Ekin Dursun ef1a9f57c5
Set session id context while creating SSLContext (#2633)
When using client certificates, session id context needs to be set.
OpenSSL documentation covers it like this:

If the session id context is not set on an SSL/TLS server and client
certificates are used, stored sessions will not be reused but a fatal
error will be flagged and the handshake will fail. Details:
https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set_session_id_context.html

Ruby OpenSSL wrapper conforms to this by setting the session id context
to a random sequence of bytes whenever a context is created:
http://github.com/ruby/openssl/blob/master/lib/openssl/ssl.rb#L493

I am open to suggestions about generating random bytes. I feel like
there can be a better way than this.
2021-06-04 07:01:34 -06:00
..
no_ssl Adjust code for compiling without SSL (MRI & JRuby), add SSL detection 2020-09-14 12:20:00 -05:00
org/jruby/puma Fail build if compiling extensions raises warnings (#1953) (#2494) 2020-12-01 06:51:16 -07:00
ext_help.h ext_help.h, minissl.c, puma_http11.c - change Data -> TypedData (#2430) 2020-10-16 07:36:08 -06:00
extconf.rb Fix SSL Context - minissl.c, minissl.rb, extconf.rb (#2519) 2021-01-26 14:18:51 -07:00
http11_parser.c Fail build if compiling extensions raises warnings (#1953) (#2494) 2020-12-01 06:51:16 -07:00
http11_parser.h Reduce puma_parser struct size 2021-04-04 06:48:55 +08:00
http11_parser.java.rl Fail build if compiling extensions raises warnings (#1953) (#2494) 2020-12-01 06:51:16 -07:00
http11_parser.rl Fail build if compiling extensions raises warnings (#1953) (#2494) 2020-12-01 06:51:16 -07:00
http11_parser_common.rl Allow semicolon in url-path (#1934) 2019-08-28 17:08:01 +00:00
mini_ssl.c Set session id context while creating SSLContext (#2633) 2021-06-04 07:01:34 -06:00
puma_http11.c Fix typo in local #define name (#2502) 2020-12-01 06:46:57 -07:00
PumaHttp11Service.java Missed 1 reference to IOBuffer 2020-03-08 21:46:09 -06:00